Added more helpers to Request.

This commit is contained in:
Relintai 2021-11-01 21:20:42 +01:00
parent e7d4772ef3
commit 68ecd088c5
2 changed files with 14 additions and 1 deletions

View File

@ -235,6 +235,16 @@ String Request::get_url_site() const {
return path;
}
String Request::get_url_root_parent(const String &add) const {
return get_url_root_parent() + add;
}
String Request::get_url_root(const String &add) const {
return get_url_root() + add;
}
String Request::get_url_site(const String &add) const {
return get_url_site() + add;
}
String Request::get_host() const {
return "";
}

View File

@ -78,8 +78,11 @@ public:
String get_url_root_parent() const;
String get_url_root() const;
String get_url_site() const;
String get_url_root_parent(const String &add) const;
String get_url_root(const String &add) const;
String get_url_site(const String &add) const;
virtual void update();
virtual void pool();