Struct httpcodec::Header
[−]
[src]
pub struct Header<'a> { /* fields omitted */ }
HTTP header.
Methods
impl<'a> Header<'a>
[src]
ⓘImportant traits for HeaderFields<'a>pub fn fields(&self) -> HeaderFields
[src]
ⓘImportant traits for HeaderFields<'a>
Returns an iterator over the fields in the header.
pub fn get_field(&self, name: &str) -> Option<&str>
[src]
Returns the value of the first field that has the name name
in the header.
Note that header names are compared by using str::eq_ignore_ascii_case
method.
pub fn parse_field<T>(&self, name: &str) -> Result<Option<T>, T::Err> where
T: FromStr,
[src]
T: FromStr,
Returns the parsed result of the value of the first field that has the name name
in the header.
Note that header names are compared by using str::eq_ignore_ascii_case
method.
Trait Implementations
impl<'a> Debug for Header<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more