Structs§
- Current
Session - NewSession
- Request
State - Request-scoped typed value.
- Request
State Key - Request
State Store - Request-scoped state storage.
Functions§
- current_
new_ session - current_
request_ path - Read the normalized endpoint path for this request, when available.
- current_
session - current_
session_ user - Read the current session user JSON for this request, when an endpoint resolved one.
- define_
request_ state - Define a typed request-scoped state value.
- has_
request_ state - Returns true when the current async task has request state.
- is_
external_ request - Returns true only when the current request is known to originate from the
internet-facing HTTP router. Absent request state is treated as a trusted
server-side call (
false). - run_
with_ request_ state - Run a future inside a fresh request state scope.
- set_
current_ new_ session - set_
current_ request_ path - Store the normalized endpoint path for hooks running in this request.
- set_
current_ session - set_
current_ session_ user - Store the current session user JSON for after-response hooks in this request.
- set_
request_ external - Mark whether the current request originated from the internet-facing HTTP
router. Trusted server-side invocations leave this
false. - set_
should_ skip_ session_ refresh - Mark whether session resolution should skip refresh for the current request.
- should_
skip_ session_ refresh - Returns true when the current request explicitly disables session refresh.