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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)