Expand description
Everything you need to work with HTTP cookies.
§Guide
Check out the “Cookies” section of Pavex’s guide for a thorough introduction to cookies.
§Implementation details
Most types and functions are re-exports of the
[email protected]
crate.
Modules§
- Configuration for a
Processor
. - Errors that can occur when working with cookies.
- Low-level types related to
RequestCookies
. - Low-level types related to
ResponseCookies
.
Structs§
- A collection of components required to work with request and response cookies.
- A cryptographic master key to sign or encrypt cookies.
- Transforms cookies before they are sent to the client, or after they have been parsed from an incoming request.
Config
specifies how the server should handle incoming and outgoing cookies with respect to security and encoding.- A
ResponseCookie
that, when sent to the client, removes a cookie with the sameResponseCookieId
from the client’s machine, if it exists. - A cookie set by a client in an HTTP request using the
Cookie
header. - A collection of
RequestCookie
s attached to an HTTP request using theCookie
header. - A cookie set by a server in an HTTP response using the
Set-Cookie
header. - A unique identifier for a
ResponseCookie
. - A collection of
ResponseCookie
s to be attached to an HTTP response using theSet-Cookie
header.
Enums§
- A cookie’s expiration: either a date-time or session.
- The
SameSite
cookie attribute.
Functions§
- Parse cookies out of the incoming request.
- Attach cookies to the outgoing response.