pub async fn forward_request(
upstream: &UpstreamClient,
url: &str,
method: Method,
headers: &HeaderMap,
body: &Bytes,
is_streaming: bool,
) -> Result<Response, Error>Expand description
Send a request to the upstream server, forwarding relevant headers.
For streaming calls we still apply the per-request reqwest timeout:
the axum-edge TimeoutLayer (tower-http) cancels at response start
and can’t see mid-stream stalls. For non-streaming calls the tower
layer handles timeout budget end-to-end, so no reqwest timeout here.