Skip to main content

serve_http

Function serve_http 

Source
pub(crate) async fn serve_http(
    state: RuntimeState,
    shutdown_token: CancellationToken,
) -> Result<()>
Expand description

Binds the configured HTTP address and serves until shutdown completes.

ยงErrors

Returns io::Error if binding or reading the listener address fails.