vibe.d beta banner
get vibe.d
0.10.0

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

Function URLRouter.match

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

URLRouter match(Handler) (
  HTTPMethod method,
  string path,
  Handler handler
)
if (isValidHandler!Handler);

URLRouter match (
  HTTPMethod method,
  string path,
  @safe void delegate(HTTPServerRequest, HTTPServerResponse) handler
) @safe;
Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

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