Skip to main content

parse_set_cookie

Function parse_set_cookie 

Source
pub fn parse_set_cookie(line: &str) -> Option<SetCookie>
Expand description

Parses one Set-Cookie header value, or None when it has no valid name=value pair. The attribute grammar is the cookie crate’s (the same crate that serializes Nitr’s own cookies), so a round trip cannot disagree with the writer.