Expand description
Predicates for disabling compression of responses.
Predicates are applied with Compression::compress_when or
CompressionLayer::compress_when.
Structs§
- And
 - Two predicates combined into one.
 - Default
Predicate  - The default predicate used by 
CompressionandCompressionLayer. - NotFor
Content Type  - Predicate that wont allow responses with a specific 
content-typeto be compressed. - Size
Above  Predicatethat will only allow compression of responses above a certain size.
Traits§
- Predicate
 - Predicate used to determine if a response should be compressed or not.