Skip to main content

Module request_endpoints

Module request_endpoints 

Source

Structs§

InboundRequest
RequestContext
RespondToken
Only needed if you don’t respond to the request inside your handle function. See respond_token.
ResponseCapacityExceeded

Enums§

Decline
RequestEndpointPolicy

Traits§

RequestEndpoint
RequestEndpointSet
A compile-time set of endpoints, produced by request_endpoints!; you probably want that macro rather than this trait directly.
ResponseSink

Functions§

dispatch_request
Route one request to the handler its path_hash selects, building the RequestContext over the app’s shared state and the runner’s grant sink. RequestEndpointSet::dispatch is a static fn, so the runner dispatches with only &state and the endpoint-set type R — no Router wrapper.
no_request_endpoints
The value request_endpoints! hands back when given no endpoints — the empty RequestEndpointSet. A named constructor so the macro needn’t expand to a bare (), which clippy::unused_unit flags at every call site.

Type Aliases§

RequestEndpointId
What a requester names to reach a RequestEndpoint: the stable hash of its ENDPOINT_ID string.