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.rebuild

Rebuilds the internal matching structures to account for newly added routes.

void rebuild() @safe;

This should be used after a lot of routes have been added to the router, to force eager computation of the match structures. The alternative is to let the router lazily compute the structures when the first request happens, which can delay this request.

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.