Re-exports§
pub use time;
Macros§
- cookie
- Builds a
Cookieusing syntax similar to theSet-Cookieheader.
Structs§
- Cookie
- Representation of an HTTP cookie.
- Cookie
Jar - The root cookie jar for a request.
- Cookie
JarCell - Request-context storage for the lazily built cookie jar.
- Cookie
Layer router - A router layer that makes cookies available for the current request and writes pending cookie changes onto the response.
- Cookie
Store - A typed value backed by a single cookie.
- Key
- A cryptographic master key for use with
Signedand/orPrivatejars. - Map
- A
Cookiesadapter that applies a transform to every cookie written through it. - Prefixed
- A
Cookiesadapter that scopes cookies to a namePrefix. - Private
Jar - A
Cookiesadapter that encrypts cookies written through it and decrypts cookies read through it, using aKey. - Signed
Jar - A
Cookiesadapter that signs cookies written through it and verifies cookies read through it, using aKey. - Unparsed
Cookie Store - A
CookieStorethat 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.
- Same
Site - The
SameSitecookie attribute.
Traits§
- Cookies
- A request-scoped cookie jar.
- Router
Builder Cookie Ext router - Installs cookie support on a
RouterBuilder.
Functions§
- cookie_
store - Builds an
UnparsedCookieStorefor the cookie namedkey, backed byjar. - cookies
- Returns the request’s root
CookieJar, parsing the incomingCookieheader on first access and memoizing it for the rest of the request. - private_
cookies - Returns the root jar wrapped in a
PrivateJar, using theKeyregistered as app context. - signed_
cookies - Returns the root jar wrapped in a
SignedJar, using theKeyregistered as app context.