Method UrlRouter.match

Adds a new route for requests matching the specified HTTP method and pattern.

Prototypes

void match(
  HttpMethod method,
  string path,
  IHttpServerRequestHandler cb
);

void match(
  HttpMethod method,
  string path,
  void function(HttpServerRequest req, HttpServerResponse res) cb
);

void match(
  HttpMethod method,
  string path,
  void delegate(HttpServerRequest req, HttpServerResponse res) cb
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.