Module predicate
Expand description
Predicates for influencing compression of responses.
Structs§
- Always
- Predicate to always compress.
- And
- Two predicates combined into one.
- Default
Predicate - The default predicate used by
CompressionandCompressionLayer. - Default
Stream Predicate - Mirror
Decompressed Predicatethat enables compression only for responses previously decompressed by Rama’scrate::layer::decompression::DecompressionLayer, while preferring the original upstream encoding for recompression.- 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.
Enums§
- Preferred
Encoding - Preferred response encoding requested by a compression predicate.
Traits§
- Predicate
- Predicate used to determine if a response should be compressed or not.