Skip to main content

proxy_handler

Function proxy_handler 

Source
async fn proxy_handler(__arg0: State<ProxyState>, req: Request) -> Response
Expand description

The one handler this proxy has. Reads Host, looks up the backend, forwards the request (method/headers/body, streamed both ways so a large response body — or a long-lived one — isn’t buffered whole in memory), and streams the response back unchanged.