Skip to main content

parse_header_string

Function parse_header_string 

Source
pub fn parse_header_string(input: &str) -> Result<HashMap<String, String>>
Expand description

Parse a comma-separated header string into a HashMap.

Format: Key:Value,Key2:Value2

Known limitation: Header values containing commas will be incorrectly split. Cookie headers with semicolons work fine, but Cookie values with commas (e.g. expires=Thu, 01 Jan 2099) will break.