[]Trait actix_web::http::header::IntoHeaderValue

pub trait IntoHeaderValue {
    type Error: Into<Error>;
    fn try_into(self) -> Result<HeaderValue, Self::Error>;
}

A trait for any object that can be Converted to a HeaderValue

Associated Types

type Error: Into<Error>

The type returned in the event of a conversion error.

Loading content...

Required methods

fn try_into(self) -> Result<HeaderValue, Self::Error>

Try to convert value to a Header value.

Loading content...

Implementations on Foreign Types

impl<'a> IntoHeaderValue for &'a [u8]

type Error = InvalidHeaderValue

impl IntoHeaderValue for String

type Error = InvalidHeaderValueBytes

impl IntoHeaderValue for Vec<u8>

type Error = InvalidHeaderValueBytes

impl<'a> IntoHeaderValue for &'a str

type Error = InvalidHeaderValue

impl IntoHeaderValue for Mime

type Error = InvalidHeaderValueBytes

impl IntoHeaderValue for usize

type Error = InvalidHeaderValueBytes

impl IntoHeaderValue for u64

type Error = InvalidHeaderValueBytes

Loading content...

Implementors

impl IntoHeaderValue for ContentRangeSpec

impl IntoHeaderValue for IfMatch

impl IntoHeaderValue for IfNoneMatch

impl IntoHeaderValue for IfRange

impl IntoHeaderValue for Accept

impl IntoHeaderValue for AcceptCharset

impl IntoHeaderValue for AcceptLanguage

impl IntoHeaderValue for Allow

impl IntoHeaderValue for CacheControl

impl IntoHeaderValue for ContentDisposition

impl IntoHeaderValue for ContentLanguage

impl IntoHeaderValue for ContentRange

impl IntoHeaderValue for ContentType

impl IntoHeaderValue for Date

impl IntoHeaderValue for ETag

impl IntoHeaderValue for EntityTag

impl IntoHeaderValue for Expires

impl IntoHeaderValue for HeaderValue

impl IntoHeaderValue for HttpDate

impl IntoHeaderValue for IfModifiedSince

impl IntoHeaderValue for IfUnmodifiedSince

impl IntoHeaderValue for LastModified

impl IntoHeaderValue for Bytes

Loading content...