Module headers

Module headers 

Source
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§

AcceptNoneDenyBad
Will accept no value. But will deny if the header is not valid. Such as if it is not valid UTF-8
Host
The Host header.
Origin
The Origin header.
OriginOrHost
Attempts to get the Origin header. If not tries the Host Header
RawAuthorization
The Authorization header.
UserAgent
The user-agent header.

Traits§

HeaderType
A type that can be extracted from a request header