Skip to main content

forward_http

Function forward_http 

Source
pub async fn forward_http(
    req: Request<Incoming>,
) -> Result<Response<Incoming>, Error>
Expand description

Forward a plain HTTP/1.1 request to its target host.

The target host is extracted from the request URI authority, falling back to the Host header. Port defaults to 80 if not specified.