Struct gotham::middleware::cookie::CookieParser [−][src]
pub struct CookieParser;
Expand description
A struct that can act as a cookie parsing middleware for Gotham.
We implement NewMiddleware
here for Gotham to allow us to work with the request
lifecycle correctly. This trait requires Clone
, so that is also included. Cookies
become availabe on the request state as the CookieJar
type.
Implementations
Public API for external re-use.
Parses a CookieJar
from a State
.
Trait Implementations
Middleware
trait implementation.
NewMiddleware
trait implementation.
Clones the current middleware to a new instance.
type Instance = Self
type Instance = Self
The type of Middleware
created by the NewMiddleware
.
Auto Trait Implementations
impl RefUnwindSafe for CookieParser
impl Send for CookieParser
impl Sync for CookieParser
impl Unpin for CookieParser
impl UnwindSafe for CookieParser
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