Module static_web_server::compression
source · Expand description
Auto-compression module to compress responses body.
Structs
- A wrapper around any type that implements
Streamto be compatible with async_compression’sStreambased 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-encodingvia theaccept-encodingheader.