Struct iron::headers::Cookie  
            [-] [+]
        [src]
pub struct Cookie(pub Vec<Cookie>);
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.
Example values
SID=31d4d96e407aad42SID=31d4d96e407aad42; lang=en-US
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.