salvo-compression

Compress HTTP responses in Salvo web services with gzip, brotli, zstd, or deflate.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-compression-tdcare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-compression
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-compression
Command: npx skills add https://github.com/tdcare/genies --skill salvo-compression-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compress HTTP responses to reduce bandwidth and improve load times.

Core Features & Use Cases

  • Supports gzip, brotli, zstd, and deflate for both dynamic and static content.
  • Applies per-route or global compression with configurable thresholds and content-type filtering.
  • Use case: accelerate API responses and static assets in high-latency networks.

Quick Start

Enable a Compression middleware on your Salvo router and choose the desired algorithms.

Frequently Asked Questions about salvo-compression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress HTTP responses in a Salvo web service?

To compress HTTP responses in a Salvo web service, enable the compression middleware on your router and select algorithms like gzip, brotli, zstd, or deflate. This reduces bandwidth and improves load times for API endpoints and static assets.

Can I apply gzip or brotli compression to specific routes in Salvo?

Yes, you can apply gzip or brotli compression to specific routes in Salvo. The middleware supports per-route or global compression, allowing you to selectively reduce bandwidth for targeted API endpoints and static assets.

What compression algorithms are supported for HTTP responses?

Supported HTTP response compression algorithms include gzip, brotli, zstd, and deflate. These can be applied to both dynamic and static content to reduce bandwidth and improve load times.

When should I use zstd over gzip for compressing API responses?

Use zstd over gzip for compressing API responses when you need efficient bandwidth reduction with configurable thresholds. Both are supported algorithms for dynamic content, helping accelerate responses in high-latency networks.

Does Salvo compression middleware support content-type filtering?

Yes, Salvo compression middleware supports content-type filtering. You can configure thresholds and filter by content-type to selectively compress HTTP responses for specific static assets or API endpoints.