Skip to main content

handle_request

Function handle_request 

Source
pub async fn handle_request(
    state: Arc<ProxyState>,
    req: Request<Incoming>,
    client_addr: SocketAddr,
) -> Result<Response<Full<Bytes>>, Infallible>
Expand description

Top-level request handler. Returns a hyper response wrapping a buffered body. Websocket upgrades are handled out of band by the connection driver (see serve_connection).