http::cookie
Cookies (RFC 6265): the Cookie request header and Set-Cookie.
Structs
SetCookieSource
pub struct SetCookieA Set-Cookie header. expires is kept as written (an HTTP date).
Strict,LaxorNone.Parse as a user agent does:
nonewhen there is no=or the name is empty; unknown or malformed attributes are ignored.The header value; throws if the name, value or an attribute could break the header.
Functions
parse_cookie_headerSource
pub fn parse_cookie_header(s: str) -> List<(str, str)> name=value pairs of a Cookie header, in order.
cookie_headerSource
pub fn cookie_header(pairs: List<(str, str)>) throws (HttpError) -> str A Cookie header value from pairs; throws on an invalid name or
value.