[−][src]Trait actix_web::http::header::IntoHeaderValue
A trait for any object that can be Converted to a HeaderValue
Associated Types
Loading content...Required methods
fn try_into(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a Header value.
Implementations on Foreign Types
impl IntoHeaderValue for Mime[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Mime as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for u64[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <u64 as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for usize[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <usize as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for Vec<u8>[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Vec<u8> as IntoHeaderValue>::Error>[src]
impl<'a> IntoHeaderValue for &'a str[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <&'a str as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for String[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <String as IntoHeaderValue>::Error>[src]
impl<'a> IntoHeaderValue for &'a [u8][src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <&'a [u8] as IntoHeaderValue>::Error>[src]
Implementors
impl IntoHeaderValue for ContentRangeSpec[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <ContentRangeSpec as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <ContentRangeSpec as IntoHeaderValue>::Error>
impl IntoHeaderValue for IfMatch[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <IfMatch as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for IfNoneMatch[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <IfNoneMatch as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <IfNoneMatch as IntoHeaderValue>::Error>
impl IntoHeaderValue for IfRange[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <IfRange as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for Accept[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Accept as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for AcceptCharset[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <AcceptCharset as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <AcceptCharset as IntoHeaderValue>::Error>
impl IntoHeaderValue for AcceptLanguage[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <AcceptLanguage as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <AcceptLanguage as IntoHeaderValue>::Error>
impl IntoHeaderValue for Allow[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Allow as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for CacheControl[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <CacheControl as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <CacheControl as IntoHeaderValue>::Error>
impl IntoHeaderValue for ContentDisposition[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <ContentDisposition as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <ContentDisposition as IntoHeaderValue>::Error>
impl IntoHeaderValue for ContentLanguage[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <ContentLanguage as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <ContentLanguage as IntoHeaderValue>::Error>
impl IntoHeaderValue for ContentRange[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <ContentRange as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <ContentRange as IntoHeaderValue>::Error>
impl IntoHeaderValue for ContentType[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <ContentType as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <ContentType as IntoHeaderValue>::Error>
impl IntoHeaderValue for Date[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Date as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for ETag[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <ETag as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for EntityTag[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <EntityTag as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for Expires[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <Expires as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for HeaderValue[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <HeaderValue as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <HeaderValue as IntoHeaderValue>::Error>
impl IntoHeaderValue for HttpDate[src]
type Error = InvalidHeaderValue
fn try_into(self) -> Result<HeaderValue, <HttpDate as IntoHeaderValue>::Error>[src]
impl IntoHeaderValue for IfModifiedSince[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <IfModifiedSince as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <IfModifiedSince as IntoHeaderValue>::Error>
impl IntoHeaderValue for IfUnmodifiedSince[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <IfUnmodifiedSince as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <IfUnmodifiedSince as IntoHeaderValue>::Error>
impl IntoHeaderValue for LastModified[src]
type Error = InvalidHeaderValue
fn try_into(
self
) -> Result<HeaderValue, <LastModified as IntoHeaderValue>::Error>[src]
self
) -> Result<HeaderValue, <LastModified as IntoHeaderValue>::Error>