pub trait CompressRequest: Compress + CloneCompressRequest {
    // Required method
    fn header_value(&self) -> HeaderValue;

    // Provided method
    fn header_name(&self) -> HeaderName { ... }
}
Available on crate feature http-body-1-x only.
Expand description

Implementors of this trait can be used to compress HTTP requests.

Required Methods§

source

fn header_value(&self) -> HeaderValue

Return the header value for the content-encoding header.

Provided Methods§

source

fn header_name(&self) -> HeaderName

Return the header name for the content-encoding header.

Trait Implementations§

source§

impl Clone for Box<dyn CompressRequest>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§