pub fn brotli(
    head: Parts,
    body: CompressableBody<Body, Error>
) -> Response<Body>
Available on crate features compression and compression-brotli only.
Expand description

Create a wrapping handler that compresses the Body of a Response using brotli, adding content-encoding: br to the Response’s HeaderMap