stop method
Permanently stops the HttpServer server from listening for new connections. This closes the Stream of HttpRequests with a done event.
If force
is true
, active connections will be closed immediately.
Implementation
@override
Future<void> stop({bool force = false}) async {
await _server?.close();
_isStarted = false;
}