Skip to main content

start_http_origin_server

Function start_http_origin_server 

Source
pub async fn start_http_origin_server() -> (SocketAddr, JoinHandle<()>)
Expand description

Start a minimal HTTP origin server that responds to any request.

Returns a 200 OK with a fixed body. Useful for testing HTTP forward proxying.