Trait hyperx::header::RawLike

source ·
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;
}
Expand description

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

Required Associated Types§

The associated type of Iterator over values.

Required Methods§

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

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

Iterate the values (lines) as raw bytes.

Implementations on Foreign Types§

Implementors§