| 307 | } |
| 308 | |
| 309 | std::string encodeQuery(const StringMap & ss) |
| 310 | { |
| 311 | std::string res; |
| 312 | bool first = true; |
| 313 | for (auto & [name, value] : ss) { |
| 314 | if (!first) |
| 315 | res += '&'; |
| 316 | first = false; |
| 317 | res += percentEncode(name, allowedInQuery); |
| 318 | res += '='; |
| 319 | res += percentEncode(value, allowedInQuery); |
| 320 | } |
| 321 | return res; |
| 322 | } |
| 323 | |
| 324 | std::string renderUrlPathNoPctEncoding(std::span<const std::string> urlPath) |
| 325 | { |
no test coverage detected