vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

URLRouter.match - multiple declarations

Function URLRouter.match

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

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

Function HTTPRouter.match

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

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

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

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

Alias URLRouter.match

class URLRouter
{
  // ...
  alias match ;
  // ...
}
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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