CowHeaderName

Type Alias CowHeaderName 

Source
pub type CowHeaderName = Cow<'static, str>;
Expand description

Header name type using Cow for zero-allocation on common headers.

When the header name matches a well-known header, this borrows a static string instead of allocating. Unknown headers are stored as owned Strings.

Aliased Type§

pub enum CowHeaderName {
    Borrowed(&'static str),
    Owned(String),
}

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.