Struct hyper::header::Cookie
[-] [+]
[src]
pub struct Cookie(pub Vec<CookiePair>);
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 Cookie
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) -> Cookie
Extracts all cookies from CookieJar
and creates Cookie header.
Useful for clients.
impl Cookie
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) -> Cookie
Extracts all cookies from CookieJar
and creates Cookie header.
Useful for clients.