Struct hyper::header::common::set_cookie::SetCookie
[-]
[+]
[src]
pub struct SetCookie(pub Vec<Cookie>);
The Set-Cookie
header
Informally, the Set-Cookie response header contains the header name "Set-Cookie" followed by a ":" and a cookie. Each cookie begins with a name-value-pair, followed by zero or more attribute-value pairs.
Methods
impl SetCookie
fn from_cookie_jar(jar: &CookieJar) -> SetCookie
Use this to create SetCookie header from CookieJar using calculated delta.
fn apply_to_cookie_jar(&self, jar: &mut CookieJar)
Use this on client to apply changes from SetCookie to CookieJar.
Note that this will panic!
if CookieJar
is not root.