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 | The |
| AcceptCharset | The |
| AcceptEncoding | The |
| AcceptLanguage | The |
| AccessControlAllowHeaders | The |
| AccessControlAllowMethods | The |
| AccessControlMaxAge | The |
| AccessControlRequestHeaders | The |
| AccessControlRequestMethod | The |
| Allow | The |
| Authorization | The |
| Basic | Credential holder for Basic Authentication |
| CacheControl | The Cache-Control header. |
| Connection | The |
| ContentLength | The |
| ContentType | The |
| Cookie | The |
| Date | The |
| EntityTag | An entity tag |
| Etag | The |
| Expires | The |
| 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 |
| IfModifiedSince | The |
| IfUnmodifiedSince | The |
| LastModified | The |
| Location | The |
| Quality | Represents a quality used in quality values. |
| QualityItem | Represents an item with a quality value as defined in RFC7231. |
| Referer | The |
| Server | The |
| SetCookie | The |
| TransferEncoding | The |
| Upgrade | The |
| UserAgent | The |
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 |
| IfMatch | The |
| IfNoneMatch | The |
| Pragma | The |
| Protocol | Protocol values that can appear in the Upgrade header. |
| Vary | The |
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 |