[][src]Trait tide::cookies::CookiesExt

pub trait CookiesExt {
    fn get_cookie(
        &mut self,
        name: &str
    ) -> Result<Option<Cookie<'static>>, StringError>;
fn set_cookie(&mut self, cookie: Cookie<'static>) -> Result<(), StringError>;
fn remove_cookie(
        &mut self,
        cookie: Cookie<'static>
    ) -> Result<(), StringError>; }

An extension to Context that provides cached access to cookies

Required methods

returns a Cookie by name of the cookie

Add cookie to the cookie jar

Removes the cookie. This instructs the CookiesMiddleware to send a cookie with empty value in the response.

Loading content...

Implementors

impl<AppData> CookiesExt for Context<AppData>[src]

Loading content...