close static method
Stops server and waits for every accepted request task to settle.
Unlike HttpServer.close, this includes the detached adapter work that
writes and closes responses and reports failures. Concurrent and repeated
calls for a server returned by bind share one future. A later
force: true call escalates an earlier graceful close.
Implementation
static Future<void> close(HttpServer server, {bool force = false}) {
final lifecycle = _lifecycles[server];
if (lifecycle == null) return server.close(force: force);
return lifecycle.close(server, force: force);
}