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

This method can be used to create CookieJar that can be used to manipulate cookies and create a corresponding SetCookie header afterwards.

Extracts all cookies from CookieJar and creates Cookie header. Useful for clients.

impl Cookie

This method can be used to create CookieJar that can be used to manipulate cookies and create a corresponding SetCookie header afterwards.

Extracts all cookies from CookieJar and creates Cookie header. Useful for clients.

Trait Implementations

impl Deref for Cookie

type Target = Vec<CookiePair>

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

impl DerefMut for Cookie

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

impl Header for Cookie

fn header_name() -> &'static str

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

impl HeaderFormat for Cookie

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

impl Deref for Cookie

type Target = Vec<CookiePair>

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

impl DerefMut for Cookie

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

impl Header for Cookie

fn header_name() -> &'static str

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

impl HeaderFormat for Cookie

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

Derived Implementations

impl Debug for Cookie

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

impl PartialEq for Cookie

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

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

impl Clone for Cookie

fn clone(&self) -> Cookie

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

impl Debug for Cookie

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

impl PartialEq for Cookie

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

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

impl Clone for Cookie

fn clone(&self) -> Cookie

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