View Source accept_encoding_header (accept v0.3.6)
For parsing and negotiating Accept-Encoding headers.
Summary
Functions
Negotiates the most appropriate content_coding given the accept header
Parses Accept-Encoding header, returns a list of content_codings.
Types
Functions
-spec negotiate(Header, Alternatives) -> Match when Header :: undefined | binary() | string(), Alternatives :: [Alternative], Alternative :: binary() | {binary(), Tag}, Tag :: any(), Match :: Tag | nomatch.
Negotiates the most appropriate content_coding given the accept header
-spec parse(AcceptString) -> Result when AcceptString :: binary() | string(), Result :: [content_coding()].
Parses Accept-Encoding header, returns a list of content_codings.