Struct salvo_extra::compression::CompressionHandler [−][src]
pub struct CompressionHandler { /* fields omitted */ }
Expand description
CompressionHandler
Implementations
Create a new CompressionHandler
.
Create a new CompressionHandler
with algo.
get min_length.
Set minimum compression size, if body less than this value, no compression default is 1kb
Create a new CompressionHandler
with min_length.
Get content type list reference.
Get content type list mutable reference.
Create a new CompressionHandler
with content types list.
Trait Implementations
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Handle http request.
Auto Trait Implementations
impl RefUnwindSafe for CompressionHandler
impl Send for CompressionHandler
impl Sync for CompressionHandler
impl Unpin for CompressionHandler
impl UnwindSafe for CompressionHandler
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