Module static_web_server::compression
source · Expand description
Auto-compression module to compress responses body.
Structs
- A wrapper around any type that implements
Stream
to be compatible with async_compression’sStream
based encoders.
Constants
- Contains a fixed list of common text-based MIME types in order to apply compression.
Functions
- Given an optional existing encoding header, appends to the existing or creates a new one.
- Try to get the prefered
content-encoding
via theaccept-encoding
header.