[−][src]Function accept_encoding_fork::parse
pub fn parse(headers: &HeaderMap) -> Result<Option<Encoding>>
Parse a set of HTTP headers into a single option yielding an Encoding
that the client prefers.
If you're looking for an easy way to determine the best encoding for the client and support every Encoding
listed, this is likely what you want.
Note that a result of None
indicates there preference is expressed on which encoding to use.
Either the Accept-Encoding
header is not present, or *
is set as the most preferred encoding.