close method
Stops accepting requests and closes the underlying HttpServer.
Implementation
Future<void> close({bool force = false}) async {
if (_isClosed) return;
_isClosed = true;
await _server.close(force: force);
await _serveSubscriptionDone;
}