Method HTTPRouter.match

Adds a new route for request that match the path and method

Prototypes

HTTPRouter match(
  HTTPMethod method,
  string path,
  void delegate(HTTPServerRequest, HTTPServerResponse) cb
) abstract;

HTTPRouter match(
  HTTPMethod method,
  string path,
  HTTPServerRequestHandler cb
) final abstract;

HTTPRouter match(
  HTTPMethod method,
  string path,
  void function(HTTPServerRequest, HTTPServerResponse) cb
) final abstract;

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.