start method

void start()

Implementation

void start() {
  HttpServer.bind(host, port).then((HttpServer server) {
    _server = server;
    server.listen((request) {
      if (request.uri.path == '/hook') {
        handleHookRequest(request);
      } else {
        request.response
          ..statusCode = 404
          ..write('404 - Not Found')
          ..close();
      }
    });
  });
}