Skip to content

Check if a content type can be compressed using compression algorithms like gzip, brotli, deflate, etc.

License

Notifications You must be signed in to change notification settings

satyarohith/compressible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Check if a content type can be compressed using compression algorithms like gzip, brotli, deflate, etc.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages