Struct hyper::header::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

Use this to create SetCookie header from CookieJar using calculated delta.

Use this on client to apply changes from SetCookie to CookieJar. Note that this will panic! if CookieJar is not root.

impl SetCookie

Use this to create SetCookie header from CookieJar using calculated delta.

Use this on client to apply changes from SetCookie to CookieJar. Note that this will panic! if CookieJar is not root.

Trait Implementations

impl Deref for SetCookie

type Target = Vec<Cookie>

fn deref<'a>(&'a self) -> &'a Vec<Cookie>

impl DerefMut for SetCookie

fn deref_mut<'a>(&'a mut self) -> &'a mut Vec<Cookie>

impl Header for SetCookie

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<SetCookie>

impl HeaderFormat for SetCookie

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Deref for SetCookie

type Target = Vec<Cookie>

fn deref<'a>(&'a self) -> &'a Vec<Cookie>

impl DerefMut for SetCookie

fn deref_mut<'a>(&'a mut self) -> &'a mut Vec<Cookie>

impl Header for SetCookie

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<SetCookie>

impl HeaderFormat for SetCookie

fn fmt_header(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for SetCookie

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for SetCookie

fn eq(&self, __arg_0: &SetCookie) -> bool

fn ne(&self, __arg_0: &SetCookie) -> bool

impl Clone for SetCookie

fn clone(&self) -> SetCookie

fn clone_from(&mut self, source: &Self)

impl Debug for SetCookie

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for SetCookie

fn eq(&self, __arg_0: &SetCookie) -> bool

fn ne(&self, __arg_0: &SetCookie) -> bool

impl Clone for SetCookie

fn clone(&self) -> SetCookie

fn clone_from(&mut self, source: &Self)