Skip to main content

parse_all

Function parse_all 

Source
pub fn parse_all(combined: &str) -> Vec<Cookie>
Expand description

Split a combined Set-Cookie header and parse each cookie (URI-decoding values).

let cookies = set_cookie_parser::parse_all("a=1, b=2; Path=/");
assert_eq!(cookies.len(), 2);
assert_eq!(cookies[1].path.as_deref(), Some("/"));