tide-compress
Outgoing compression middleware for the Tide web framework.
async
Features
- Support for Brotli, Gzip, and Deflate encodings, compile-time configurable through cargo feature flags.
- Prioritizes Brotli if available.
- Only pulls in the necessary dependencies for the desired configuration.
- Defaults to Brotli + Gzip.
Accept-Encodingchecking.- Minimum body size threshold.
- Configurable when created by
CompressMiddleware::with_threshold(usize).
- Configurable when created by
- Does not compress responses with a
Cache-Control: no-transformheader.
Caveats
- Does not do
Accept-Encodingpriority handling. - Does not do any
Content-Type/ MIME checking. - Does not adjust the
Varyheader.
License
Licensed under the BlueOak Model License 1.0.0 — Contributions via DCO 1.1