mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02:00
Added get_url_root_parent helper to Request.
This commit is contained in:
parent
1a09dd13b0
commit
e7d4772ef3
@ -202,6 +202,17 @@ void Request::push_path() {
|
|||||||
_path_stack_pointer += 1;
|
_path_stack_pointer += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String Request::get_url_root_parent() const {
|
||||||
|
String path = "/";
|
||||||
|
|
||||||
|
for (uint32_t i = 0; i < _path_stack_pointer - 1; ++i) {
|
||||||
|
path += _path_stack[i];
|
||||||
|
path += "/";
|
||||||
|
}
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
String Request::get_url_root() const {
|
String Request::get_url_root() const {
|
||||||
String path = "/";
|
String path = "/";
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ public:
|
|||||||
void pop_path();
|
void pop_path();
|
||||||
void push_path();
|
void push_path();
|
||||||
|
|
||||||
|
String get_url_root_parent() const;
|
||||||
String get_url_root() const;
|
String get_url_root() const;
|
||||||
String get_url_site() const;
|
String get_url_site() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user