Struct hyper::header::common::cookie::Cookies [-]  [+] [src]

pub struct Cookies(pub Vec<Cookie>);

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 Cookies

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 Cookies

type Target = Vec<Cookie>

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

impl DerefMut for Cookies

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

impl Header for Cookies

fn header_name(_: Option<Cookies>) -> &'static str

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

impl HeaderFormat for Cookies

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

Derived Implementations

impl Show for Cookies

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

impl PartialEq for Cookies

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

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

impl Clone for Cookies

fn clone(&self) -> Cookies

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