Skip to main content

forward_to_upstream

Function forward_to_upstream 

Source
pub async fn forward_to_upstream(
    state: &ProxyState,
    req: Request<Incoming>,
) -> Result<Response<Full<Bytes>>, String>
Expand description

Forward an HTTP request to the upstream service and copy the response back as a hyper response.