Skip to main content

decode_headers

Function decode_headers 

Source
pub fn decode_headers(blob: &[u8]) -> HeaderMap
Expand description

Decode a blob produced by encode_headers back into a HeaderMap. Returns an empty map on malformed input rather than failing the replay — a corrupt headers blob is a recoverable curiosity, not a reason to drop the response status and body the caller is waiting for.