| 175 | } |
| 176 | |
| 177 | std::string Uri::password() const { |
| 178 | auto userpass = TextRangeToView(impl_->uri_.userInfo); |
| 179 | auto sep_pos = userpass.find_first_of(':'); |
| 180 | if (sep_pos == std::string_view::npos) { |
| 181 | return ""; |
| 182 | } |
| 183 | return UriUnescape(userpass.substr(sep_pos + 1)); |
| 184 | } |
| 185 | |
| 186 | std::string Uri::path() const { |
| 187 | const auto& segments = impl_->path_segments_; |