Skip to main content

Module forwarding

Module forwarding 

Source

Structs§

UpstreamClient
Shared upstream connection config for forwarding requests.

Functions§

build_response
Build an axum Response from status, headers, and body.
forward_request
Send a request to the upstream server, forwarding relevant headers. When is_streaming is false, applies the configured request timeout.
read_body_capped
Read a response body with a size cap. Returns 502 if the upstream response exceeds max_bytes.