Module pavex::cookie

source ·
Expand description

Everything you need to work with HTTP cookies.

§Guide

Check out the “Cookies” section of Pavex’s guide for a thorough introduction to cookies.

§Implementation details

Most types and functions are re-exports of the biscotti@0.3 crate.

Modules§

Structs§

  • A collection of components required to work with request and response cookies.
  • A cryptographic master key to sign or encrypt cookies.
  • Transforms cookies before they are sent to the client, or after they have been parsed from an incoming request.
  • Config specifies how the server should handle incoming and outgoing cookies with respect to security and encoding.
  • A ResponseCookie that, when sent to the client, removes a cookie with the same ResponseCookieId from the client’s machine, if it exists.
  • A cookie set by a client in an HTTP request using the Cookie header.
  • A collection of RequestCookies attached to an HTTP request using the Cookie header.
  • A cookie set by a server in an HTTP response using the Set-Cookie header.
  • A unique identifier for a ResponseCookie.
  • A collection of ResponseCookies to be attached to an HTTP response using the Set-Cookie header.

Enums§

  • A cookie’s expiration: either a date-time or session.
  • The SameSite cookie attribute.

Functions§