http_types::headers

Trait ToHeaderValues

Source
pub trait ToHeaderValues {
    type Iter: Iterator<Item = HeaderValue>;

    // Required method
    fn to_header_values(&self) -> Result<Self::Iter>;
}
Expand description

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

Required Associated Types§

Source

type Iter: Iterator<Item = HeaderValue>

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

Required Methods§

Source

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

Converts this object to an iterator of resolved HeaderValues.

Implementations on Foreign Types§

Source§

impl ToHeaderValues for &String

Source§

impl ToHeaderValues for Cow<'_, str>

Source§

impl ToHeaderValues for String

Source§

impl<'a> ToHeaderValues for &'a str

Source§

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

Implementors§

Source§

impl ToHeaderValues for &Forwarded<'_>

Source§

impl ToHeaderValues for ETag

Source§

impl ToHeaderValues for Age

Source§

impl ToHeaderValues for CacheControl

Source§

impl ToHeaderValues for ClearSiteData

Source§

impl ToHeaderValues for Expires

Source§

impl ToHeaderValues for IfMatch

Source§

impl ToHeaderValues for IfModifiedSince

Source§

impl ToHeaderValues for IfNoneMatch

Source§

impl ToHeaderValues for IfUnmodifiedSince

Source§

impl ToHeaderValues for LastModified

Source§

impl ToHeaderValues for Vary

Source§

impl ToHeaderValues for Accept

Source§

impl ToHeaderValues for AcceptEncoding

Source§

impl ToHeaderValues for ContentEncoding

Source§

impl ToHeaderValues for Expect

Source§

impl ToHeaderValues for Forwarded<'_>

Source§

impl ToHeaderValues for TimingAllowOrigin

Source§

impl ToHeaderValues for Allow

Source§

impl ToHeaderValues for Mime

Source§

impl ToHeaderValues for ServerTiming

Source§

impl ToHeaderValues for TE

Source§

impl ToHeaderValues for TransferEncoding

Source§

impl ToHeaderValues for HeaderValue

Source§

impl<'a> ToHeaderValues for &'a HeaderValues