compressible 0.2.0

Check if a content-type can be compressed using gzip, deflate, brotli, etc.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 32.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • satyarohith/compressible
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • satyarohith

compressible

Check if a content type is compressible using compression algorithms like gzip, brotli, deflate, etc.

Usage

Cargo.toml

[dependencies]
compressible = "0.2.0"

main.rs

use compression::is_compressible;

assert_eq!(is_compressible("text/plain"), true);
assert_eq!(is_compressible("image/jpeg"), false);