pub trait CookiesConnExt {
    fn with_cookie(self, cookie: Cookie<'_>) -> Self;
    fn cookies(&self) -> &CookieJar;
    fn cookies_mut(&mut self) -> &mut CookieJar;
Expand description

Extension trait adding cookie capacities to Conn.

Important: The CookiesHandler must be called before any of these functions can be called on a conn.

Required Methods

adds a cookie to the cookie jar and returns the conn

gets a reference to the cookie jar

gets a mutable reference to the cookie jar

Implementations on Foreign Types