Expand description
Pluggable route handler trait for pre-dispatch request interception.
Route handlers are checked in registration order before the main proxy
dispatch. Each handler can inspect the request and optionally return a
ProxyResult to short-circuit further processing. If no handler
matches, the request proceeds to the normal resolve/dispatch pipeline.
This module also defines the action/result types shared between route handlers and the proxy gateway.
Structs§
- Forward
Request - A presigned URL request for the runtime to execute.
- Params
- Extracted path parameters from route matching.
- Pending
Request - Opaque state for a multipart operation that needs the request body.
- Proxy
Result - The result of handling a proxy request.
- Request
Info - Parsed request metadata passed to route handlers.
Enums§
- Handler
Action - The action the handler wants the runtime to take.
- Proxy
Response Body - The body of a proxy response.
Constants§
- RESPONSE_
HEADER_ DENYLIST - Response headers that must NOT be forwarded to clients.
Traits§
- Route
Handler - A pluggable handler that can intercept requests before proxy dispatch.
Functions§
- filter_
response_ headers - Filter a
HeaderMapby removing headers in theRESPONSE_HEADER_DENYLIST.
Type Aliases§
- Route
Handler Future - The future type returned by
RouteHandler::handle.