Future on(String method, RequestHandler handler)

Source

Future on(String method, RequestHandler handler) async {
  if (method.toLowerCase() == this.method.toLowerCase()) {
    await handler(this);
  }
}