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