Skip to main content

forward_response

Function forward_response 

Source
pub async fn forward_response(
    upstream: &mut BoxStream,
    client: &mut BoxStream,
) -> Result<ForwardResult, HttpError>
Expand description

Forward the upstream response back to the client stream.

Writes the response status line and filtered headers to the client, then relays the body (if any) using content-length or chunked framing.