Module aws_smithy_http::header
source · Expand description
Utilities for parsing information from headers
Structs§
- An error was encountered while parsing a header
Functions§
- Given two
HeaderMap
s, merge them together and return the mergedHeaderMap
. If the twoHeaderMap
s share any keys, values from the rightHeaderMap
be appended to the leftHeaderMap
. - Returns an iterator over pairs where the first element is the unprefixed header name that starts with the input
key
prefix, and the second element is the full header name. - Read all the dates from the header map at
key
according theformat
- Read exactly one or none from a headers iterator
- Conditionally quotes and escapes a header value if the header value contains a comma or quote.
- Convert a
HeaderValue
into aVec<T>
whereT: FromStr
- Convert a
HeaderValue
into aVec<T>
whereT: Parse
- Given an HTTP request, set a request header if that header was not already set.
- Given an HTTP response, set a response header if that header was not already set.