Skip to main content

parse_cookies

Function parse_cookies 

Source
pub fn parse_cookies(header: &str) -> Vec<(String, String)>
Expand description

Split a Cookie header, or a browser’s document.cookie, into pairs.

Both spell a cookie jar the same way: name=value pairs separated by ;. A pair with no = is skipped rather than guessed at.