vibe.d beta banner
get vibe.d
0.10.1

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

Function URLRouter.enableRootDir

Controls the computation of the "routerRootDir" parameter.

void enableRootDir (
  bool enable
) @property @safe;

This parameter is available as req.params["routerRootDir"] and contains the relative path to the base path of the router. The base path is determined by the prefix property.

Note that this feature currently is requires dynamic memory allocations and is opt-in for this reason.

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.