Crate compressible[−][src]
Expand description
Compressible
Compressible checks if a provided media type is compressible using compression algorithms like brotli, gzip, deflate, etc.
Dataset from https://github.com/jshttp/mime-db/blob/fa5e4ef3cc8907ec3c5ec5b85af0c63d7059a5cd/db.json
use compressible::is_compressible; assert_eq!(is_compressible("text/plain"), true);
Functions
Returns bool
indicating whether the provided content type is compressible
using compression algorithms like brotli, gzip, deflate, etc.