vibe.d beta banner
get vibe.d
0.7.30

Function URLRouter.rebuild

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

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.

Prototype

void rebuild();
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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