Function header_string_map

Source
pub fn header_string_map(
    raw_headers: &[u8],
) -> Result<(ScgiHeaders, usize), ScgiHeaderParseError>
Expand description

Parse the headers and pack them as strings into a map.

The value of the CONTENT_LENGTH header is returned in adition to the header map. The SCGI and CONTENT_LENGTH headers are not included in the header map.