1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

WebServer: Rename {real_}root_path to {real_}document_root_path

The concept of a "document root" seems to be a de-facto industry
standard and doesn't make you wonder what kind of root path is meant.
This commit is contained in:
Thomas Keppler 2022-12-20 15:51:50 +01:00 committed by Andreas Kling
parent 4abafbbe3c
commit bb91857885
4 changed files with 15 additions and 14 deletions

View file

@ -14,18 +14,18 @@ namespace WebServer {
class Configuration {
public:
Configuration(DeprecatedString root_path);
Configuration(DeprecatedString document_root_path);
DeprecatedString const& root_path() const { return m_root_path; }
DeprecatedString const& document_root_path() const { return m_document_root_path; }
Optional<HTTP::HttpRequest::BasicAuthenticationCredentials> const& credentials() const { return m_credentials; }
void set_root_path(DeprecatedString root_path) { m_root_path = move(root_path); }
void set_document_root_path(DeprecatedString root_path) { m_document_root_path = move(root_path); }
void set_credentials(Optional<HTTP::HttpRequest::BasicAuthenticationCredentials> credentials) { m_credentials = move(credentials); }
static Configuration const& the();
private:
DeprecatedString m_root_path;
DeprecatedString m_document_root_path;
Optional<HTTP::HttpRequest::BasicAuthenticationCredentials> m_credentials;
};