Expand description
Structs representing headers relevant in a WebSocket context.
These headers are commonly used in WebSocket requests and responses.
The Header trait from the hyper crate is used.
Re-exports
pub use self::extensions::WebSocketExtensions;Modules
Provides the Sec-WebSocket-Extensions header.
Utility functions for Header implementations.
Structs
Accept-Charset header, defined in
RFC7231Accept-Encoding header, defined in
RFC7231Accept-Language header, defined in
RFC7231Accept-Ranges header, defined in
RFC7233Access-Control-Allow-Credentials header, part of
CORSAccess-Control-Allow-Headers header, part of
CORSAccess-Control-Allow-Methods header, part of
CORSAccess-Control-Expose-Headers header, part of
CORSAccess-Control-Max-Age header, part of
CORSAccess-Control-Request-Headers header, part of
CORSAccess-Control-Request-Method header, part of
CORSAuthorization header, defined in RFC7235Credential holder for Basic Authentication
Token holder for Bearer Authentication, most often seen with oauth
Cache-Control header, defined in RFC7234Connection header, defined in
RFC7230A
Content-Disposition header, (re)defined in RFC6266Content-Encoding header, defined in
RFC7231Content-Language header, defined in
RFC7231Content-Length header, defined in
RFC7230Content-Range header, defined in
RFC7233Content-Type header, defined in
RFC7231HeaderFormatterDeprecated
A wrapper around any Header with a Display impl that calls fmt_header.
Returned with the
HeadersItems iterator.A map of header fields on requests and responses.
An
Iterator over the fields in a Headers map.The
Host header.A
time::Time with HTTP formatting and parsingIf-Modified-Since header, defined in
RFC7232If-Unmodified-Since header, defined in
RFC7232Last-Modified header, defined in
RFC7232Represents an Origin header
Preference-Applied header, defined in RFC7240Protocols that appear in the
Upgrade header fieldRepresents a quality used in quality values.
Represents an item with a quality value as defined in
RFC7231.
StrictTransportSecurity header, defined in RFC6797Transfer-Encoding header, defined in
RFC7230Represents a Sec-WebSocket-Accept header
Represents a Sec-WebSocket-Key header.
Represents a Sec-WebSocket-Protocol header
Enums
The
Access-Control-Allow-Origin response header,
part of CORSEach
Range::Bytes header can contain one or more ByteRangeSpecs.
Each ByteRangeSpec defines a range of bytes to fetchCacheControl contains a list of these directives.A Mime charset.
Values that can be in the
Connection header.Content-Range, described in RFC7233
A parameter to the disposition type
The implied disposition of the content of the HTTP body
A value to represent an encoding used in
Transfer-Encoding
or Accept-Encoding header.The
Expect header.If-None-Match header, defined in
RFC7232A Media Descriptors Enum based on:
https://www.w3.org/TR/html401/types.html#h-6.13
The
Pragma header defined by HTTP/1.0.Prefer contains a list of these preferences.
A protocol name used to identify a spefic protocol. Names are case-sensitive
except for the
WebSocket value.Referrer-Policy header, part of
Referrer PolicyA Link Relation Type Enum based on:
RFC5988
Represents a Sec-WebSocket-Version header
Traits
A trait for any object that will represent a header field and value.
Internal implementation detail.
A trait for any object that will represent a header field and value.
An Authorization scheme to be used in the header.