| 245 | } |
| 246 | |
| 247 | std::string Uri::getQueryValue(const std::string& uri, const std::string& key) { |
| 248 | Uri parsedUri(uri); |
| 249 | if (!parsedUri.isValid()) { |
| 250 | return {}; |
| 251 | } |
| 252 | |
| 253 | return std::string(UriQuery(parsedUri).getValue(key).value_or("")); |
| 254 | } |
| 255 | |
| 256 | // NOLINTEND(bugprone-unchecked-optional-access) |
| 257 |