HeadersExt

Trait HeadersExt 

Source
pub trait HeadersExt {
    // Required method
    fn as_ref<'a>(&'a self) -> &'a [(&'a str, &'a str)];
}
Expand description

Marker trait for auto implementation of headers

Must be able to borrow as a map of header names to values

Required Methods§

Source

fn as_ref<'a>(&'a self) -> &'a [(&'a str, &'a str)]

Borrow the object as map from header names to values

Implementors§