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

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