Skip to main content

Crate topcoat_cookie

Crate topcoat_cookie 

Source

Re-exports§

pub use time;

Macros§

cookie
Builds a Cookie using syntax similar to the Set-Cookie header.

Structs§

Cookie
Representation of an HTTP cookie.
CookieJar
The root cookie jar for a request.
CookieJarCell
Request-context storage for the lazily built cookie jar.
CookieLayerrouter
A router layer that makes cookies available for the current request and writes pending cookie changes onto the response.
CookieStore
A typed value backed by a single cookie.
Key
A cryptographic master key for use with Signed and/or Private jars.
Map
A Cookies adapter that applies a transform to every cookie written through it.
Prefixed
A Cookies adapter that scopes cookies to a name Prefix.
PrivateJar
A Cookies adapter that encrypts cookies written through it and decrypts cookies read through it, using a Key.
SignedJar
A Cookies adapter that signs cookies written through it and verifies cookies read through it, using a Key.
UnparsedCookieStore
A CookieStore that has not yet read its backing cookie.

Enums§

Expiration
A cookie’s expiration: either a date-time or session.
Prefix
A RFC 6265bis cookie name prefix.
SameSite
The SameSite cookie attribute.

Traits§

Cookies
A request-scoped cookie jar.
RouterBuilderCookieExtrouter
Installs cookie support on a RouterBuilder.

Functions§

cookie_store
Builds an UnparsedCookieStore for the cookie named key, backed by jar.
cookies
Returns the request’s root CookieJar, parsing the incoming Cookie header on first access and memoizing it for the rest of the request.
private_cookies
Returns the root jar wrapped in a PrivateJar, using the Key registered as app context.
signed_cookies
Returns the root jar wrapped in a SignedJar, using the Key registered as app context.