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 HeaderValue
s.
Required Associated Types§
Sourcetype Iter: Iterator<Item = HeaderValue>
type Iter: Iterator<Item = HeaderValue>
Returned iterator over header values which this type may correspond to.
Required Methods§
Sourcefn to_header_values(&self) -> Result<Self::Iter>
fn to_header_values(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved HeaderValues
.