pub fn bind_server(
addr: impl ToSocketAddrs,
kernel: AsyncHttpKernel,
) -> Result<Server, Error>Expand description
Binds addr and returns the Actix actix_web::dev::Server (does not await).
Prefer listen for the usual “run until stop” path. Use this when the caller
needs a actix_web::dev::ServerHandle for graceful shutdown in tests.
§Errors
Propagates bind errors.