Struct viz_core::middleware::compression::Compress
source · pub struct Compress<T> { /* private fields */ }Available on crate feature
compression only.Expand description
Compresses the response body with the specified algorithm
and sets the Content-Encoding header.
Implementations§
Trait Implementations§
source§impl<T: IntoResponse> IntoResponse for Compress<T>
impl<T: IntoResponse> IntoResponse for Compress<T>
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert self to HTTP
Response.source§fn into_error(self) -> Error
fn into_error(self) -> Error
Convert self to the
Error.