| 12623 | } |
| 12624 | |
| 12625 | [[nodiscard]] std::string url::get_protocol() const noexcept { |
| 12626 | if (is_special()) { |
| 12627 | return helpers::concat(ada::scheme::details::is_special_list[type], ":"); |
| 12628 | } |
| 12629 | // We only move the 'scheme' if it is non-special. |
| 12630 | return helpers::concat(non_special_scheme, ":"); |
| 12631 | } |
| 12632 | |
| 12633 | [[nodiscard]] std::string url::get_host() const noexcept { |
| 12634 | // If url's host is null, then return the empty string. |
no test coverage detected