Expand description
Session management for Pavex.
Check out the session guide in Pavex’s documentation for a thorough introduction to sessions and how to use them in your application.
Modules§
- client
- Types to manipulate the client-side session state.
- config
- Types related to
SessionConfig
. - errors
- Errors that can occur when interacting with the session state.
- store
- Types and traits related to
SessionStore
.
Structs§
- Incoming
Session - The session information attached to the incoming request.
- Session
- The current HTTP session.
- Session
Config - Configure how sessions are managed.
- Session
Id - The identifier for a session.
- Session
Store - Where server-side session records are stored.
Constants§
- FINALIZE_
SESSION - A handle to add
finalize_session()
as a post-processing middleware to your Pavex application. - SESSION_
CONFIG - A strongly-typed id to register
SessionConfig
as a configuration type to your Pavex application. - SESSION_
CONFIG_ COOKIE_ CONFIG - A handle to add
SessionConfig::cookie_config()
as a constructor to your Pavex application. - SESSION_
CONFIG_ STATE_ CONFIG - A handle to add
SessionConfig::state_config()
as a constructor to your Pavex application.
Functions§
- finalize_
session - A post-processing middleware to attach a session cookie to the outgoing response, if needed.