Expand description
RFC 6265 HTTP State Management Mechanism (Cookie Jar & Attributes).
Provides:
- Full parsing of
Set-Cookieheaders with attributes:Expires,Max-Age,Domain,Path,Secure,HttpOnly,SameSite. - Pure-Rust HTTP date parser (RFC 1123, RFC 850, asctime) with leap-year handling.
- RFC 6265 domain matching, path matching, and security domain boundaries.
- Thread-safe, serializable
CookieJarwith automatic cookie injection into requests and response extraction.
Structs§
- Cookie
- An authentic RFC 6265 HTTP Cookie.
- Cookie
Jar - In-memory and persistent cookie storage conforming to RFC 6265.
Enums§
- Same
Site - Cookie SameSite policy attribute.
Functions§
- can_
set_ cookie_ domain - Checks whether an origin host is authorized to set a cookie for
cookie_domain. - default_
path_ for_ request - Computes the default path for a cookie given a request URI path per RFC 6265 §5.1.4.
- domain_
matches - Verifies whether
request_hostdomain-matchescookie_domainper RFC 6265 §5.1.3. - parse_
http_ date - Parses an HTTP date string (RFC 1123, RFC 850, or asctime) into seconds since the UNIX epoch.
- path_
matches - Evaluates path matching between request path and cookie path per RFC 6265 §5.1.4.