| 12649 | } |
| 12650 | |
| 12651 | [[nodiscard]] std::string url::get_search() const noexcept { |
| 12652 | // If this's URL's query is either null or the empty string, then return the |
| 12653 | // empty string. Return U+003F (?), followed by this's URL's query. |
| 12654 | return (!query.has_value() || (query.value().empty())) ? "" |
| 12655 | : "?" + query.value(); |
| 12656 | } |
| 12657 | |
| 12658 | [[nodiscard]] const std::string& url::get_username() const noexcept { |
| 12659 | return username; |
no test coverage detected