pub struct Cookie;
Expand description
Parser for HTTP Cookie headers.
Provides functionality to parse Cookie header strings into key-value pairs.
Implementations§
Source§impl Cookie
Implementation for Cookie
.
impl Cookie
Implementation for Cookie
.
Sourcepub fn parse(cookie_string: &str) -> Cookies
pub fn parse(cookie_string: &str) -> Cookies
Parses a Cookie
header string into a collection of key-value pairs.
This method takes a Cookie
header string (typically from a Cookie
request header)
and parses it into a map of cookie names to their values.
§Arguments
&str
- TheCookie
header string to parse.
§Returns
A Cookies
collection (a hash map) containing all parsed cookie key-value pairs.
Trait Implementations§
impl Eq for Cookie
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
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