Skip to main content

IterHttpHeaderFields

Trait IterHttpHeaderFields 

Source
pub trait IterHttpHeaderFields<'a> {
    type Fields: Iterator<Item = (&'a str, &'a [u8])>;

    // Required method
    fn fields(&'a self) -> Self::Fields;
}
Expand description

This trait allows to iterate over the fields of a HTTP header.

Required Associated Types§

Source

type Fields: Iterator<Item = (&'a str, &'a [u8])>

Iterator for traversing HTTP header fields.

Required Methods§

Source

fn fields(&'a self) -> Self::Fields

Returns an iterator for traversing the HTTP header fields.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, K, V, S> IterHttpHeaderFields<'a> for HashMap<K, V, S>
where K: AsRef<str> + Eq + Hash, V: AsRef<[u8]>, S: BuildHasher,

Source§

type Fields = Box<dyn Iterator<Item = (&'a str, &'a [u8])> + 'a>

Source§

fn fields(&'a self) -> Self::Fields

Implementors§