Skip to main content

start_admin_server

Function start_admin_server 

Source
pub async fn start_admin_server(
    addr: SocketAddr,
    state: Arc<AppState>,
    metrics: Arc<Metrics>,
) -> Result<(), ProxyError>
Expand description

Start the admin HTTP server on the given address.

The server runs indefinitely and handles requests against the shared application state. It should be spawned as a background task alongside the main proxy listeners.