Struct tower_http::compression::predicate::SizeAbove
source · [−]pub struct SizeAbove(_);This is supported on crate features
compression-br or compression-deflate or compression-gzip only.Expand description
Predicate that will only allow compression of responses above a certain size.
Implementations
Create a new SizeAbove predicate that will only compress responses larger than
min_size_bytes.
The response will be compressed if the exact size cannot be determined through either the
content-length header or Body::size_hint.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SizeAbove
impl UnwindSafe for SizeAbove
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more