Struct poem::session::CookieConfig
source[−]pub struct CookieConfig { /* private fields */ }
This is supported on crate feature
session
only.Expand description
Cookie configuration for session.
Implementations
Sets the Path
to the session cookie. Default is /
.
Sets the Secure
to the session cookie. Default is true
.
Sets the HttpOnly
to the session cookie. Default is true
.
Sets the SameSite
to the session cookie.
Sets the MaxAge
to the session cookie.
Set the cookie value to CookieJar
.
Remove the cookie from CookieJar
.
Gets the cookie value from CookieJar
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CookieConfig
impl Send for CookieConfig
impl Sync for CookieConfig
impl Unpin for CookieConfig
impl UnwindSafe for CookieConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more