Expand description
Types that map to concepts in HTTP.
This module exports types that map to HTTP concepts or to the underlying HTTP library when needed.
Modules§
- ext
- Extension traits implemented by several HTTP types.
- uncased
- Case-preserving, ASCII case-insensitive string types.
- uri
- Types for URIs and traits for rendering URI components.
Macros§
- impl_
from_ uri_ param_ identity - Macro to automatically generate identity
FromUriParam
trait implementations.
Structs§
- Accept
- The HTTP Accept header.
- Content
Type - Representation of HTTP Content-Types.
- Cookie
- Representation of an HTTP cookie.
- Cookie
Jar - Collection of one or more HTTP cookies.
- Header
- Simple representation of an HTTP header.
- Header
Map - A collection of headers, mapping a header name to its many ordered values.
- Iter
- Iterator over all of the cookies in a jar.
- Media
Type - An HTTP media type.
- QMedia
Type - A
MediaType
with an associated quality value. - RawStr
- A reference to a string inside of a raw HTTP message.
- RawStr
Buf - An owned version of
RawStr
. - Status
- Structure representing an HTTP status: an integer code.
Enums§
- Http
Version - HTTP Protocol version
- Method
- An HTTP method.
- Proxy
Proto - Parsed
Config::proxy_proto_header
value: identifies a forwarded HTTP protocol (aka X-Forwarded-Proto). - Same
Site - The
SameSite
cookie attribute. - Status
Class - Enumeration of HTTP status classes.