compressible

Crates.iocompressible
lib.rscompressible
version0.2.0
sourcesrc
created_at2021-06-07 07:39:21.345366
updated_at2021-07-03 07:19:58.474946
descriptionCheck if a content-type can be compressed using gzip, deflate, brotli, etc.
homepagehttps://github.com/satyarohith/compressible
repositoryhttps://github.com/satyarohith/compressible
max_upload_size
id407206
size32,550
Satya Rohith (satyarohith)

documentation

README

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);
Commit count: 4

cargo fmt