Skip to main content

Module forwarding

Module forwarding 

Source

Structs§

UpstreamClient
Shared upstream connection config for forwarding requests.

Enums§

ReadBodyError
Reason the upstream body could not be read.

Functions§

build_response
Build an axum Response from status, headers, and body.
forward_request
Send a request to the upstream server, forwarding relevant headers.
read_body_capped
Read a response body with a size cap. Returns a typed error on overflow or stream failure — callers produce the appropriate Response variant (Upstream502) so the failure flows through the response chain like any other upstream problem.