Structs§
- Upstream
Client - 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_streamingis 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.