Expand description
Typed HTTP header serialization and deserialization.
This crate is still in its early, experimental stages. It currently takes a fairly pedantic view of parsing, and tries to support exactly what’s specified in the HTTP RFCs.
The HeaderMapExt
extension trait provides new methods on the http::HeaderMap
type to insert, retrieve, and
remove headers in a typed manner.
Re-exports§
Modules§
Structs§
- Accept
Accept
header, defined in RFC7231- Accept
Encoding Accept-Encoding
header, defined in RFC7231- Allow
Allow
header, defined in RFC7231- Auth
Scheme - An authorization scheme.
- Authorization
Authorization
header, defined in RFC7235- Content
Coding - A content coding, used in the
Accept-Encoding
andContent-Encoding
headers. - Content
Encoding Content-Encoding
header, defined in RFC7231- Content
Length Content-Length
header, defined in RFC7230- Content
Type Content-Type
header, defined in RFC7231- Credentials
- Authentication credentials, as described in RFC7235.
- Error
- An error serializing or deserializing a header.
- Host
- The
Host
header, defined in RFC7230. - Http
Date - Proxy
Authorization Proxy-Authorization
header, defined in RFC7235- Quality
- A quality value, as specified in RFC7231.
- Quality
Item - A value paired with its “quality” as defined in RFC7231.
- ToValues
- Token68
- A base68 value as defined in RFC7235.
Enums§
Traits§
- Header
- Header
MapExt - An extension trait adding typed getters and setters to
HeaderMap
.