pub async fn forward_anthropic(
client: &Client,
base: &str,
headers: &HeaderMap,
body: Bytes,
) -> Result<(StatusCode, HeaderMap, Bytes), ProxyError>Expand description
Forward one POST /v1/messages request and return its response buffered (full body).
Used for non-streaming requests, where the assembled body also feeds the audit trace.
§Errors
Returns ProxyError::Upstream if the upstream request fails at the transport level
(DNS, connect, timeout). A non-2xx HTTP response from upstream is not an error here —
it is returned to the caller as-is, matching observe mode’s “forward unchanged” contract.