Skip to main content

Module hooks

Module hooks 

Source

Structs§

CallbackContext
Owned native context for application callbacks, including background delivery. The schema accessor exposes the live instance and its hook-aware store; the request and hook data retain the actual transport and admitted endpoint input.
RequestHookContext
Request-derived data available to middleware, stores, and other hooks during request handling.
TransformedRequestBody
Request body after a plugin has transformed endpoint input. Original HTTP bytes remain available on AuthRequest and RequestHookContext.
ValidatedRequestBody
A trusted endpoint’s parsed body for adapter callbacks. Completed response callbacks still receive the original request body.

Functions§

current_request_hook_context
with_optional_request_hook_context
Scope an optional actual HTTP context, including absence for a trusted server call.
with_request_hook_context
Run a future with request context available to downstream integrations.
with_request_hook_context_value
Run a future with an explicit request hook context.