Skip to main content

Module middleware

Module middleware 

Source
Expand description

Session middleware utilities for proxy integration.

Provides session ID parsing from the X-Arbiter-Session header and error-to-status-code mapping. Session constraint validation is performed directly by the handler stages in crates/arbiter/src/stages/.

Functionsยง

parse_session_header
Extract a session ID from the X-Arbiter-Session header value.
status_code_for_error
HTTP status code that should be returned for each session error type.