[][src]Trait http_types::headers::ToHeaderValues

pub trait ToHeaderValues {
    type Iter: Iterator<Item = HeaderValue>;
    fn to_header_values(&self) -> Result<Self::Iter>;
}

A trait for objects which can be converted or resolved to one or more HeaderValues.

Associated Types

type Iter: Iterator<Item = HeaderValue>

Returned iterator over header values which this type may correspond to.

Loading content...

Required methods

fn to_header_values(&self) -> Result<Self::Iter>

Converts this object to an iterator of resolved HeaderValues.

Loading content...

Implementations on Foreign Types

impl<'a> ToHeaderValues for &'a [HeaderValue][src]

type Iter = Cloned<Iter<'a, HeaderValue>>

impl<'a> ToHeaderValues for &'a str[src]

impl ToHeaderValues for String[src]

Loading content...

Implementors

impl ToHeaderValues for HeaderValue[src]

impl ToHeaderValues for Mime[src]

Loading content...