run method

Future run()

Implementation

Future<dynamic> run() async {
  await bindServer();
  ProcessSignal.sigint.watch().listen((event) {
    if(event==ProcessSignal.sigint) exit(0);
  });

  print("Running server on http://${_host.address}:$_port");

  if(this._server!=null){
    await for (HttpRequest request in this._server!) {
      await handleRequest(request);
    }
  }
}