Skip to main content

Module cookie

Module cookie 

Source
Expand description

Secure cookie construction (RFC-006 §13.2).

CookiePolicy encodes named profiles. HttpOnly and Secure are mandatory in all production profiles. SameSite=Strict is the default.

The resulting header values are plain strings so they can be passed to any HTTP framework without coupling to a specific Cookie crate.

Structs§

CookiePolicy
Policy governing cookie construction (RFC-006 §4).

Enums§

CookieProfile
Named cookie profile (RFC-006 §13.2).
SameSitePolicy
SameSite cookie attribute values (RFC-6265bis).