Expand description
Utilities for parsing information from headers
Structs§
- ParseError 
- An error was encountered while parsing a header
Functions§
- append_merge_ header_ maps 
- Given two HeaderMaps, merge them together and return the mergedHeaderMap. If the twoHeaderMaps share any keys, values from the rightHeaderMapbe appended to the leftHeaderMap.
- headers_for_ prefix 
- Returns an iterator over pairs where the first element is the unprefixed header name that
starts with the input keyprefix, and the second element is the full header name.
- many_dates 
- Read all the dates from the header map at keyaccording theformat
- one_or_ none 
- Read exactly one or none from a headers iterator
- quote_header_ value 
- Conditionally quotes and escapes a header value if the header value contains a comma or quote.
- read_many_ from_ str 
- Convert a HeaderValueinto aVec<T>whereT: FromStr
- read_many_ primitive 
- Convert a HeaderValueinto aVec<T>whereT: Parse
- set_request_ header_ if_ absent 
- Given an HTTP request, set a request header if that header was not already set.
- set_response_ header_ if_ absent 
- Given an HTTP response, set a response header if that header was not already set.