Module hyper::header
[−]
[src]
Headers container, and common header fields.
hyper has the opinion that Headers should be strongly-typed, because that's
why we're using Rust in the first place. To set or get any header, an object
must implement the Header
trait from this module. Several common headers
are already provided, such as Host
, ContentType
, UserAgent
, and others.
Modules
parsing |
Utility functions for Header implementations. |
Structs
Accept |
|
AcceptCharset |
|
AcceptEncoding |
|
AcceptLanguage |
|
AcceptRanges |
|
AccessControlAllowHeaders |
|
AccessControlAllowMethods |
|
AccessControlMaxAge |
|
AccessControlRequestHeaders |
|
AccessControlRequestMethod |
|
Allow |
|
Authorization |
|
Basic |
Credential holder for Basic Authentication |
CacheControl |
|
Connection |
|
ContentEncoding |
|
ContentLanguage |
|
ContentLength |
|
ContentType |
|
Cookie |
|
Date |
|
ETag |
|
EntityTag |
An entity tag, defined in RFC7232 |
Expires |
|
From |
|
HeaderFormatter |
A wrapper around any Header with a Display impl that calls fmt_header. |
HeaderView |
Returned with the |
Headers |
A map of header fields on requests and responses. |
HeadersItems |
An |
Host |
The |
HttpDate |
A |
IfModifiedSince |
|
IfUnmodifiedSince |
|
Language |
A language tag. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10 |
LastModified |
|
Location |
|
Protocol |
Protocols that appear in the |
Quality |
Represents a quality used in quality values. |
QualityItem |
Represents an item with a quality value as defined in RFC7231. |
Referer |
|
Server |
|
SetCookie |
|
TransferEncoding |
|
Upgrade |
|
UserAgent |
|
Enums
AccessControlAllowOrigin |
The |
CacheDirective |
CacheControl contains a list of these directives. |
Charset |
A Mime charset. |
ConnectionOption |
Values that can be in the |
Encoding |
A value to represent an encoding used in |
Expect |
The |
IfMatch |
|
IfNoneMatch |
|
IfRange |
|
Pragma |
The |
ProtocolName |
A protocol name used to identify a spefic protocol. Names are case-sensitive
except for the |
RangeUnit |
Range Units, described in RFC7233 |
Vary |
|
Traits
Header |
A trait for any object that will represent a header field and value. |
HeaderFormat |
A trait for any object that will represent a header field and value. |
Scheme |
An Authorization scheme to be used in the header. |
Functions
q |
Convenience function to create a |
qitem |
Convinience function to wrap a value in a |