Function get_preferred_encoding

Source
pub fn get_preferred_encoding(
    headers: &HeaderMap<HeaderValue>,
) -> Option<ContentCoding>
Available on crate features compression or compression-gzip or compression-brotli or compression-zstd or compression-deflate only.
Expand description

Try to get the preferred content-encoding via the accept-encoding header.