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-0-4-x
only.Expand description
Implementors of this trait can be used to compress HTTP requests.
Required Methods§
sourcefn header_value(&self) -> HeaderValue
fn header_value(&self) -> HeaderValue
Return the header value for the content-encoding header.
Provided Methods§
sourcefn header_name(&self) -> HeaderName
fn header_name(&self) -> HeaderName
Return the header name for the content-encoding header.