Trait actix_http::http::header::IntoHeaderPair[][src]

pub trait IntoHeaderPair: Sized {
    type Error: Into<HttpError>;
    fn try_into_header_pair(
        self
    ) -> Result<(HeaderName, HeaderValue), Self::Error>; }

Transforms structures into header K/V pairs for inserting into HeaderMaps.

Associated Types

Loading content...

Required methods

Loading content...

Implementations on Foreign Types

impl<V> IntoHeaderPair for (HeaderName, V) where
    V: IntoHeaderValue,
    V::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (&HeaderName, V) where
    V: IntoHeaderValue,
    V::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (&[u8], V) where
    V: IntoHeaderValue,
    V::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (&str, V) where
    V: IntoHeaderValue,
    V::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (String, V) where
    V: IntoHeaderValue,
    V::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

Loading content...

Implementors

Loading content...