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 HeaderMaps, merge them together and return the merged HeaderMap. If the two HeaderMaps share any keys, values from the right HeaderMap be appended to the left HeaderMap.
  • 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 the format
  • 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 a Vec<T> where T: FromStr
  • Convert a HeaderValue into a Vec<T> where T: 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.