pub struct Cookies { /* private fields */ }Available on crate feature
cookie only.Expand description
Extracts the cookies from the request.
Implementations§
Source§impl Cookies
impl Cookies
Source§impl Cookies
impl Cookies
Source§impl Cookies
impl Cookies
Sourcepub fn private_get(&self, name: impl AsRef<str>) -> Option<Cookie<'_>>
Available on crate feature cookie-private only.
pub fn private_get(&self, name: impl AsRef<str>) -> Option<Cookie<'_>>
cookie-private only.Returns a reference to the Cookie inside this jar with the specified name.
Sourcepub fn private_add(&self, cookie: Cookie<'_>)
Available on crate feature cookie-private only.
pub fn private_add(&self, cookie: Cookie<'_>)
cookie-private only.Adds cookie to the parent jar.
Sourcepub fn private_remove(&self, name: impl AsRef<str>)
Available on crate feature cookie-private only.
pub fn private_remove(&self, name: impl AsRef<str>)
cookie-private only.Removes cookie from the parent jar.
Sourcepub fn private_add_original(&self, cookie: Cookie<'_>)
Available on crate feature cookie-private only.
pub fn private_add_original(&self, cookie: Cookie<'_>)
cookie-private only.Adds an “original” cookie to parent jar.
Sourcepub fn private_decrypt(&self, cookie: Cookie<'_>) -> Option<Cookie<'_>>
Available on crate feature cookie-private only.
pub fn private_decrypt(&self, cookie: Cookie<'_>) -> Option<Cookie<'_>>
cookie-private only.Authenticates and decrypts cookie and returning the plain cookie.
Source§impl Cookies
impl Cookies
Sourcepub fn signed_get(&self, name: impl AsRef<str>) -> Option<Cookie<'_>>
Available on crate feature cookie-signed only.
pub fn signed_get(&self, name: impl AsRef<str>) -> Option<Cookie<'_>>
cookie-signed only.Returns a reference to the Cookie inside this jar with the specified name.
Sourcepub fn signed_add(&self, cookie: Cookie<'_>)
Available on crate feature cookie-signed only.
pub fn signed_add(&self, cookie: Cookie<'_>)
cookie-signed only.Adds cookie to the parent jar.
Sourcepub fn signed_remove(&self, name: impl AsRef<str>)
Available on crate feature cookie-signed only.
pub fn signed_remove(&self, name: impl AsRef<str>)
cookie-signed only.Removes cookie from the parent jar.
Sourcepub fn signed_add_original(&self, cookie: Cookie<'_>)
Available on crate feature cookie-signed only.
pub fn signed_add_original(&self, cookie: Cookie<'_>)
cookie-signed only.Adds an “original” cookie to parent jar.
Sourcepub fn signed_verify(&self, cookie: Cookie<'_>) -> Option<Cookie<'_>>
Available on crate feature cookie-signed only.
pub fn signed_verify(&self, cookie: Cookie<'_>) -> Option<Cookie<'_>>
cookie-signed only.Verifies the authenticity and integrity of cookie and returning the plain cookie.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cookies
impl RefUnwindSafe for Cookies
impl Send for Cookies
impl Sync for Cookies
impl Unpin for Cookies
impl UnwindSafe for Cookies
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