Expand description
Utility for handling Content-Encoding with hyper
This crate currently only supports gzip
, deflate
and identity
Structs§
- Compressor
- A hyper service that compresses responses
- Hyper
Content Encoding Error - The error used in hyper-content-encoding
Enums§
- Encoding
- The different supported encoding types
Functions§
- encode_
response - Compresses a response with the desired compression algorithm.
- full
- Creates a boxed body from a Byte like type
- response_
to_ string - Extracts the body of a response as a String.
The response must contain a
Content-Type
with the wordtext