Method HTTPServerRequest.rootDir
The relative path
the the root folder.
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.
Prototype
string rootDir() const @property;
Authors
Sönke Ludwig, Jan Krüger
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.