ReadonlyidUnique request ID (generated or propagated by middleware).
ReadonlyparamsPath parameters extracted by the router (e.g. :id).
ReadonlyqueryQuery string parameters.
Optional ReadonlyrawThe undisturbed web-standard Request, preserved for WebSocket upgrade
and gRPC dispatch after the middleware pipeline.
Threaded from IRequest.raw by the kernel's request-context
factory. Absent when the adapter did not provide one (injected or test
requests).
ReadonlyrequestThe incoming request.
ReadonlyresponseThe response builder.
ReadonlyservicesService resolution (application-scoped plus request-scoped services).
ReadonlysignalAn abort signal that fires when the underlying HTTP connection is severed
(client disconnect, timeout). Populated by the kernel's request-context
factory from the native Request.signal; falls back to a non-aborting
sentinel so handlers always have a live signal to listen on.
Used by streaming producers (SSE heartbeats, channel cleanup) to stop work on client disconnect and avoid leaking producers.
ReadonlystartHigh-resolution timestamp captured when the context was created.
ReadonlystateRequest-scoped state for passing data between middleware and handlers.
OptionaldeferRegisters cleanup in reverse registration order. Buffered responses wait for cleanup; streaming responses clean up on end, error, or cancellation. Calls after completion run immediately. Failures are reported at warn. Each asynchronous cleanup is bounded at 5000 ms; expiry warns once and continues with the next cleanup. Later settlement is ignored. Synchronous cleanups stay synchronous and are not timed.
Work to run at completion
Nothing
OptionalslotReturns this request's value for an owner key, creating it on first use.
Keys compare by object identity. Entries cannot be enumerated or deleted
and live only as long as this context; calls after completion work alike.
A throwing factory stores nothing, so a later call can retry.
create must not call slot with its own key.
The stored value type
A private object identifying the owner of the value
Factory called only when this key has no stored value
The cached or newly created value, including undefined
Per-request context passed to middleware and route handlers. Each request gets a fresh context; request-scoped data lives here, never in globals.
Since
0.1.0