vibe.d beta banner
get vibe.d
0.10.0

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

Function HTTPServerRequest.rootDir

The relative path to the root folder.

string rootDir() @property scope @safe const;

Using this function instead of absolute URLs for embedded links can be useful to avoid dead link when the site is piped through a reverse-proxy.

The returned string always ends with a slash.

Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 Sönke Ludwig

License

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