Struct poem::middleware::Compression
source · [−]pub struct Compression;
This is supported on crate feature
compression
only.Expand description
Middleware for decompress request body and compress response body.
It selects the decompression algorithm according to the request
Content-Encoding
header, and selects the compression algorithm according
to the request Accept-Encoding
header.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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