[][src]Trait conduit::Headers

pub trait Headers {
    fn find(&self, key: &str) -> Option<Vec<&str>>;
fn has(&self, key: &str) -> bool;
fn all(&self) -> Vec<(&str, Vec<&str>)>; }

Required methods

fn find(&self, key: &str) -> Option<Vec<&str>>

Find the value of a given header. Multi-line headers are represented as an array.

fn has(&self, key: &str) -> bool

Returns true if a particular header exists

fn all(&self) -> Vec<(&str, Vec<&str>)>

Iterate over all of the available headers.

Loading content...

Implementors

Loading content...