Expand description
A collection of types that make extracting headers from requests easier
§Note
Headers are assumed to be valid strings. If they are not valid strings, then the request will fail If you want to handle invalid strings you will need to access the headers directly
The data is cloned out of the request. if you are wanting to prevent this. You will need to access the headers directly
Structs§
- Accept
None Deny Bad - Will accept no value. But will deny if the header is not valid. Such as if it is not valid UTF-8
- Host
- The
Hostheader. - Origin
- The
Originheader. - Origin
OrHost - Attempts to get the Origin header. If not tries the Host Header
- RawAuthorization
- The
Authorizationheader. - User
Agent - The
user-agentheader.
Traits§
- Header
Type - A type that can be extracted from a request header