start method

Future<void> start()

Start the server.

Implementation

Future<void> start() async {
  _server = await HttpServer.bind(host ?? InternetAddress.loopbackIPv4, port);

  _server!.listen(_handleRequest);
}