Struct hyper::header::common::cookie::Cookies
[-]
[+]
[src]
pub struct Cookies(pub Vec<Cookie>);
The Cookie
header. Defined in RFC6265:
If the user agent does attach a Cookie header field to an HTTP request, the user agent must send the cookie-string as the value of the header field.
When the user agent generates an HTTP request, the user agent MUST NOT attach more than one Cookie header field.
Methods
impl Cookies
fn to_cookie_jar(&self, key: &[u8]) -> CookieJar<'static>
This method can be used to create CookieJar that can be used
to manipulate cookies and create a corresponding SetCookie
header afterwards.
fn from_cookie_jar(jar: &CookieJar) -> Cookies
Extracts all cookies from CookieJar
and creates Cookie header.
Useful for clients.