pub struct CookieMiddleware<S> { /* private fields */ }
Expand description
Middleware for handling HTTP requests and responses with cookies.
This middleware parses cookies from requests and adds Set-Cookie
headers to responses.
Trait Implementations§
Source§impl<S: Clone> Clone for CookieMiddleware<S>
impl<S: Clone> Clone for CookieMiddleware<S>
Source§fn clone(&self) -> CookieMiddleware<S>
fn clone(&self) -> CookieMiddleware<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S, ReqBody> Service<Request<ReqBody>> for CookieMiddleware<S>
impl<S, ReqBody> Service<Request<ReqBody>> for CookieMiddleware<S>
Source§type Future = Pin<Box<dyn Future<Output = Result<<CookieMiddleware<S> as Service<Request<ReqBody>>>::Response, <CookieMiddleware<S> as Service<Request<ReqBody>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<CookieMiddleware<S> as Service<Request<ReqBody>>>::Response, <CookieMiddleware<S> as Service<Request<ReqBody>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for CookieMiddleware<S>where
S: Freeze,
impl<S> RefUnwindSafe for CookieMiddleware<S>where
S: RefUnwindSafe,
impl<S> Send for CookieMiddleware<S>where
S: Send,
impl<S> Sync for CookieMiddleware<S>where
S: Sync,
impl<S> Unpin for CookieMiddleware<S>where
S: Unpin,
impl<S> UnwindSafe for CookieMiddleware<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more