| 139 | } |
| 140 | |
| 141 | std::string_view Uri::getPath() const { |
| 142 | if (!this->isValid()) { |
| 143 | return {}; |
| 144 | } |
| 145 | |
| 146 | // Remove leading '/' |
| 147 | return this->_url->get_pathname(); |
| 148 | } |
| 149 | |
| 150 | std::string_view Uri::getFileName() const { |
| 151 | if (!this->isValid()) { |