Crates.io | compressible |
lib.rs | compressible |
version | 0.2.0 |
source | src |
created_at | 2021-06-07 07:39:21.345366 |
updated_at | 2021-07-03 07:19:58.474946 |
description | Check if a content-type can be compressed using gzip, deflate, brotli, etc. |
homepage | https://github.com/satyarohith/compressible |
repository | https://github.com/satyarohith/compressible |
max_upload_size | |
id | 407206 |
size | 32,550 |
Check if a content type is compressible using compression algorithms like gzip, brotli, deflate, etc.
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);