Crate hyper_content_encoding

Source
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
HyperContentEncodingError
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 word text