Skip to main content

start_server

Function start_server 

Source
pub async fn start_server(config: ProxyConfig) -> Result<()>
Expand description

Start the proxy server, blocking until shutdown signal.

Uses axum::serve which auto-negotiates HTTP/1.1 and HTTP/2 (h2c) via hyper_util::server::conn::auto::Builder internally, and provides graceful shutdown that drains in-flight connections.