Module warp::filters::header

source ·
Expand description

Header Filters

These filters are used to interact with the Request HTTP headers. Some of them, like exact and exact_ignore_case, are just predicates, they don’t extract any values. The header filter allows parsing a type from any header.

Functions§

  • Create a Filter that requires a header to match the value exactly.
  • Create a Filter that requires a header to match the value exactly.
  • Create a Filter that tries to parse the specified header.
  • header2 🔒
  • Create a Filter that returns a clone of the request’s HeaderMap.
  • Create a Filter that tries to parse the specified header, if it exists.
  • optional2 🔒
  • Create a Filter that gets a HeaderValue for the name.