Skip to main content

Module cookie

Module cookie 

Source
Expand description

§modo::cookie

Cookie utilities: configuration, key derivation, and re-exports of axum_extra cookie jar types.

Provides:

The primary entry points are CookieConfig (loaded from YAML) and key_from_config (derives an HMAC Key at startup). The re-exported jar types are used by the session and flash middleware and can be used directly in handlers.

This module is always available; no feature flag is required.

Structs§

CookieConfig
Cookie security attributes used by the session and flash middleware.
CookieJar
Extractor that grabs cookies from the request and manages the jar.
Key
A cryptographic master key for use with Signed and/or Private jars.
PrivateCookieJar
Extractor that grabs private cookies from the request and manages the jar.
SignedCookieJar
Extractor that grabs signed cookies from the request and manages the jar.

Functions§

key_from_config
Derive an HMAC signing Key from a CookieConfig.