Skip to main content

header_value_from_slice

Function header_value_from_slice 

Source
pub fn header_value_from_slice(raw: &[u8]) -> HeaderValue
Expand description

Build a HeaderValue from a borrowed slice, normalizing obs-fold per RFC 9112 section 5.2. The slice is copied into an owned buffer.

Precondition and panic behavior are the same as header_value_from_raw.