docs.rs failed to build tide-compress-0.10.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tide-compress-0.11.0
tide-compress
Outgoing compression middleware for the Tide server 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 including priority.- Minimum body size threshold (Default: 1024 bytes, configurable).
- Does not compress responses with a
Cache-Control: no-transformheader. - Sets the
Varyheader. - Checks the
Content-Typeheader (MIME).- Checks against jshttp's comprehensive database, which is compiled to a perfect hash function at build time.
- If not in the database, checks against a regular expression.
- Default:
^text/|\+(?:json|text|xml)$(case insensitive). - Fully override-able to any custom
Regex, withNoneas an option.
- Default:
- Functionality can be excluded in crate features if the
regexcrate or codegen poses build issues.
Note
This crate, in its current set up with the db-check feature enabled (which is by default),
pulls down a json MIME database from the network at build time.
License
Licensed under the BlueOak Model License 1.0.0 — Contributions via DCO 1.1