[−][src]Trait hyper::header::Header
A trait for any object that will represent a header field and value.
This trait represents the construction and identification of headers, and contains trait-object unsafe methods.
Required Methods
fn header_name() -> &'static str
Returns the name of the header field this belongs to.
This will become an associated constant once available.
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
Parse a header from a raw stream of bytes.
It's possible that a request can include a header field more than once,
and in that case, the slice will have a length greater than 1. However,
it's not necessarily the case that a Header is allowed to have more
than one field value. If that's the case, you should return None
if raw.len() > 1
.
Implementors
impl Header for AccessControlAllowOrigin
[src]
impl Header for AccessControlAllowOrigin
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowOrigin>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowOrigin>
impl Header for Expect
[src]
impl Header for Expect
impl Header for IfMatch
[src]
impl Header for IfMatch
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for IfNoneMatch
[src]
impl Header for IfNoneMatch
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for IfRange
[src]
impl Header for IfRange
impl Header for Pragma
[src]
impl Header for Pragma
impl Header for Range
[src]
impl Header for Range
impl Header for ReferrerPolicy
[src]
impl Header for ReferrerPolicy
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<ReferrerPolicy>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ReferrerPolicy>
impl Header for Vary
[src]
impl Header for Vary
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Accept
[src]
impl Header for Accept
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AcceptCharset
[src]
impl Header for AcceptCharset
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AcceptEncoding
[src]
impl Header for AcceptEncoding
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AcceptLanguage
[src]
impl Header for AcceptLanguage
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AcceptRanges
[src]
impl Header for AcceptRanges
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlAllowCredentials
[src]
impl Header for AccessControlAllowCredentials
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowCredentials>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowCredentials>
impl Header for AccessControlAllowHeaders
[src]
impl Header for AccessControlAllowHeaders
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlAllowMethods
[src]
impl Header for AccessControlAllowMethods
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlExposeHeaders
[src]
impl Header for AccessControlExposeHeaders
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlMaxAge
[src]
impl Header for AccessControlMaxAge
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlRequestHeaders
[src]
impl Header for AccessControlRequestHeaders
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for AccessControlRequestMethod
[src]
impl Header for AccessControlRequestMethod
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Allow
[src]
impl Header for Allow
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for CacheControl
[src]
impl Header for CacheControl
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<CacheControl>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<CacheControl>
impl Header for Connection
[src]
impl Header for Connection
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for ContentDisposition
[src]
impl Header for ContentDisposition
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentDisposition>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentDisposition>
impl Header for ContentEncoding
[src]
impl Header for ContentEncoding
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for ContentLanguage
[src]
impl Header for ContentLanguage
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for ContentLength
[src]
impl Header for ContentLength
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentLength>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentLength>
impl Header for ContentRange
[src]
impl Header for ContentRange
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for ContentType
[src]
impl Header for ContentType
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Cookie
[src]
impl Header for Cookie
impl Header for Date
[src]
impl Header for Date
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for ETag
[src]
impl Header for ETag
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Expires
[src]
impl Header for Expires
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for From
[src]
impl Header for From
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Host
[src]
impl Header for Host
impl Header for IfModifiedSince
[src]
impl Header for IfModifiedSince
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for IfUnmodifiedSince
[src]
impl Header for IfUnmodifiedSince
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for LastModified
[src]
impl Header for LastModified
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Link
[src]
impl Header for Link
impl Header for Location
[src]
impl Header for Location
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Origin
[src]
impl Header for Origin
impl Header for Prefer
[src]
impl Header for Prefer
impl Header for PreferenceApplied
[src]
impl Header for PreferenceApplied
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<PreferenceApplied>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<PreferenceApplied>
impl Header for Referer
[src]
impl Header for Referer
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Server
[src]
impl Header for Server
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for SetCookie
[src]
impl Header for SetCookie
impl Header for StrictTransportSecurity
[src]
impl Header for StrictTransportSecurity
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<StrictTransportSecurity>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<StrictTransportSecurity>
impl Header for TransferEncoding
[src]
impl Header for TransferEncoding
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for Upgrade
[src]
impl Header for Upgrade
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl Header for UserAgent
[src]
impl Header for UserAgent
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
impl<S: Scheme + Any> Header for Authorization<S> where
<S as FromStr>::Err: 'static,
[src]
impl<S: Scheme + Any> Header for Authorization<S> where
<S as FromStr>::Err: 'static,
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
fn parse_header(raw: &[Vec<u8>]) -> Result<Authorization<S>>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Authorization<S>>