Struct tsukuyomi::context::Cookies[][src]

pub struct Cookies<'a> { /* fields omitted */ }

[unstable] A proxy object for managing Cookie values.

This object is a thin wrapper of 'CookieJar' defined at 'cookie' crate, and it provides some basic APIs for getting the entries of Cookies from an HTTP request or adding/removing Cookie values into an HTTP response.

Methods

impl<'a> Cookies<'a>
[src]

Gets a value of Cookie with the provided name from this jar.

Adds the provided entry of Cookie into this jar.

Removes the provided entry of Cookie from this jar.

Creates a proxy object to manage signed Cookies, and passes the value to a closure and get its result.

This method is available only if the feature session is enabled.

Creates a proxy object to manage encrypted Cookies, and passes the value to a closure and get its result.

This method is available only if the feature session is enabled.

Trait Implementations

impl<'a> Debug for Cookies<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for Cookies<'a>

impl<'a> !Sync for Cookies<'a>