[−][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]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowOrigin>[src]
impl Header for Expect[src]
impl Header for IfMatch[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for IfNoneMatch[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for IfRange[src]
impl Header for Pragma[src]
impl Header for Range[src]
impl Header for ReferrerPolicy[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ReferrerPolicy>[src]
impl Header for Vary[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Accept[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AcceptCharset[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AcceptEncoding[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AcceptLanguage[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AcceptRanges[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlAllowCredentials[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlAllowCredentials>[src]
impl Header for AccessControlAllowHeaders[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlAllowMethods[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlExposeHeaders[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlMaxAge[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlRequestHeaders[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for AccessControlRequestMethod[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Allow[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for CacheControl[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<CacheControl>[src]
impl Header for Connection[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for ContentDisposition[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentDisposition>[src]
impl Header for ContentEncoding[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for ContentLanguage[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for ContentLength[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<ContentLength>[src]
impl Header for ContentRange[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for ContentType[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Cookie[src]
impl Header for Date[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for ETag[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Expires[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for From[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Host[src]
impl Header for IfModifiedSince[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for IfUnmodifiedSince[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for LastModified[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Link[src]
impl Header for Location[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Origin[src]
impl Header for Prefer[src]
impl Header for PreferenceApplied[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<PreferenceApplied>[src]
impl Header for Referer[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Server[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for SetCookie[src]
impl Header for StrictTransportSecurity[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<StrictTransportSecurity>[src]
impl Header for TransferEncoding[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for Upgrade[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl Header for UserAgent[src]
fn header_name() -> &'static str[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>[src]
impl<S: Scheme + Any> Header for Authorization<S> where
<S as FromStr>::Err: 'static, [src]
<S as FromStr>::Err: 'static,