Added missing helper method to WebServerRequest.

This commit is contained in:
Relintai 2023-03-22 13:22:32 +01:00
parent 3fccbc6d23
commit eb33d812d0
2 changed files with 5 additions and 0 deletions

View File

@ -443,6 +443,9 @@ String WebServerRequest::get_url_root_parent_add(const String &add) const {
String WebServerRequest::get_url_root_add(const String &add) const {
return get_url_root() + add;
}
String WebServerRequest::get_url_root_current_add(const String &add) const {
return get_url_root_current() + add;
}
String WebServerRequest::get_url_site_add(const String &add) const {
return get_url_site() + add;
}
@ -597,6 +600,7 @@ void WebServerRequest::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_url_root_parent_add", "add"), &WebServerRequest::get_url_root_parent_add);
ClassDB::bind_method(D_METHOD("get_url_root_add", "add"), &WebServerRequest::get_url_root_add);
ClassDB::bind_method(D_METHOD("get_url_root_current_add", "add"), &WebServerRequest::get_url_root_current_add);
ClassDB::bind_method(D_METHOD("get_url_site_add", "add"), &WebServerRequest::get_url_site_add);
ClassDB::bind_method(D_METHOD("get_server"), &WebServerRequest::get_server);

View File

@ -115,6 +115,7 @@ public:
String get_url_root_parent_add(const String &add) const;
String get_url_root_add(const String &add) const;
String get_url_root_current_add(const String &add) const;
String get_url_site_add(const String &add) const;
virtual void update();