[][src]Trait hyperx::header::RawLike

pub trait RawLike<'a> {
    type IntoIter: Iterator<Item = &'a [u8]> + 'a;
    fn len(&'a self) -> usize;
fn one(&'a self) -> Option<&'a [u8]>;
fn iter(&'a self) -> Self::IntoIter; }

Trait for raw bytes parsing access to header values (aka lines) for a single header name.

Associated Types

type IntoIter: Iterator<Item = &'a [u8]> + 'a

The associated type of Iterator over values.

Loading content...

Required methods

fn len(&'a self) -> usize

Return the number of values (lines) in the headers.

fn one(&'a self) -> Option<&'a [u8]>

Return the single value (line), if and only if there is exactly one. Otherwise return None.

fn iter(&'a self) -> Self::IntoIter

Iterate the values (lines) as raw bytes.

Loading content...

Implementations on Foreign Types

impl<'a> RawLike<'a> for GetAll<'a, HeaderValue>[src]

type IntoIter = ValueMapIter<'a>

impl<'a> RawLike<'a> for &'a HeaderValue[src]

type IntoIter = Once<&'a [u8]>

Loading content...

Implementors

impl<'a> RawLike<'a> for Raw[src]

type IntoIter = RawLines<'a>

Loading content...