Struct cocaine::hpack::RawHeader
[−]
[src]
pub struct RawHeader { pub name: Cow<'static, [u8]>, pub data: Cow<'static, [u8]>, }
Raw HPACK header.
Fields
name: Cow<'static, [u8]>
Header name.
data: Cow<'static, [u8]>
Header value.
Methods
impl RawHeader
[src]
fn new<N, V>(name: N, data: V) -> Self where
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
[src]
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
Constructs a raw HPACK header using the specified name and value.
Trait Implementations
impl Clone for RawHeader
[src]
fn clone(&self) -> RawHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more