[go: up one dir, main page]

Trait conduit::Headers [] [src]

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.

Implementors