Module tower_http::compression::predicate
source · [−]This is supported on crate features
compression-br
or compression-deflate
or compression-gzip
only.Expand description
Predicates for disabling compression of responses.
Predicates are applied with Compression::compress_when
or
CompressionLayer::compress_when
.
Structs
Two predicates combined into one.
The default predicate used by Compression
and CompressionLayer
.
Predicate that wont allow responses with a specific content-type
to be compressed.
Traits
Predicate used to determine if a response should be compressed or not.