Skip to main content

Module endpoint

Module endpoint 

Source
Expand description

Trusted endpoint calls keep logical input separate from an optional HTTP request.

Structs§

EndpointCall
Genuine logical endpoint data available to hooks and application callbacks.
EndpointContextPatch
Context patches accumulate without replacing the original input seen by later before hooks.
EndpointDefinition
An operation registered by an installed plugin, independently of its HTTP routes.
EndpointError
Actual application/API failure, with headers accumulated before an API error.
EndpointInput
Validated handler input. The dispatcher retains raw patched data for after hooks.
EndpointOptions
Per-call options. Absent headers remain distinct from an explicitly empty collection.
EndpointOutput
A successful call retains the actual value, since after hooks can replace its shape.
EndpointResponse
A returned value or intentional API error, available to completed endpoint hooks.
ServerEndpoint
Typed operation input. Dispatch decodes the final input after before-hook patches.

Enums§

BeforeEndpointAction
A before hook can accumulate input changes or finish without reaching the handler/after hooks.
EndpointPhase
Runtime normalization phase, retaining absence in original logical inputs.

Traits§

EndpointHook
Installed application middleware for logical endpoint calls.

Functions§

current_endpoint_call_context
is_endpoint_api_error
Intentional endpoint/API errors continue through after hooks; ordinary failures propagate.
with_endpoint_call_context
without_endpoint_call_context
Isolate an independent HTTP dispatch from an enclosing logical endpoint call.