close method

Future close({
  1. bool force = false,
})

Closes this MultiProtocolHttpServer.

Completes once everything has been successfully shut down.

Implementation

Future close({bool force = false}) =>
    _serverSocket.close().whenComplete(() => Future.wait([
          _http11Server.close(force: force),
          for (var c in _http2Connections) force ? c.terminate() : c.finish()
        ]));