Forward an allowed HTTP request to upstream and relay the response back. Returns the relay outcome indicating whether the connection is reusable, consumed, or has been upgraded (e.g. WebSocket via 101 Switching Protocols).
(
req: &L7Request,
client: &mut C,
upstream: &mut U,
)
| 355 | /// Returns the relay outcome indicating whether the connection is reusable, |
| 356 | /// consumed, or has been upgraded (e.g. WebSocket via 101 Switching Protocols). |
| 357 | async fn relay_http_request<C, U>( |
| 358 | req: &L7Request, |
| 359 | client: &mut C, |
| 360 | upstream: &mut U, |
| 361 | ) -> Result<RelayOutcome> |
| 362 | where |
| 363 | C: AsyncRead + AsyncWrite + Unpin, |
| 364 | U: AsyncRead + AsyncWrite + Unpin, |
| 365 | { |
| 366 | relay_http_request_with_resolver(req, client, upstream, None).await |
| 367 | } |
| 368 | |
| 369 | pub(crate) async fn relay_http_request_with_resolver<C, U>( |
| 370 | req: &L7Request, |
no test coverage detected