Skip to main content

Module value

Module value 

Source
Expand description

Header value storage. Values are kept as Cow<'static, str> so static defaults (e.g. "application/json") cost zero allocations while dynamic values (auth tokens, session IDs) heap-allocate on demand.

Structsยง

HeaderValue
A header value. Use HeaderValue::from_static for 'static str literals to avoid allocation.