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!) {
      try{
        await handleRequest(request);
      }catch(e){
        continue;
      }
    }
  }
}