pub async fn read_body_capped( resp: Response, max_bytes: usize, ) -> Result<Bytes, Response>
Read a response body with a size cap. Returns 502 if the upstream response exceeds max_bytes.
max_bytes