Skip to main content

Module cookie

Module cookie 

Source
Expand description

Cookies: reading a request’s, and building Set-Cookie. Cookies: reading them off a request and building Set-Cookie.

Defaults are the safe ones. A cookie is a credential until proven otherwise, so Cookie::new sets HttpOnly, SameSite=Lax and Path=/; opt out deliberately rather than opt in.

Structs§

Cookie
A cookie to send with Response::with_cookie.

Enums§

SameSite
The SameSite attribute.