stop method

  1. @override
Future<void> stop({
  1. bool force = false,
})
override

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;
}