Crate pavex_session

Source
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§

IncomingSession
The session information attached to the incoming request.
Session
The current HTTP session.
SessionConfig
Configure how sessions are managed.
SessionId
The identifier for a session.
SessionStore
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.