Skip to main content

serve_router

Function serve_router 

Source
pub async fn serve_router(
    router: Router,
    config: HttpConfig,
    shutdown: impl Future<Output = ()> + Send + 'static,
) -> Result<(), HttpServeError>
Expand description

Starts an async HTTP server with graceful shutdown under the network boundary.