| 296 | } |
| 297 | |
| 298 | static bool hasPathUnsafeBytes(SC::StringSpan value) |
| 299 | { |
| 300 | const SC::Span<const char> bytes = value.toCharSpan(); |
| 301 | for (size_t idx = 0; idx < bytes.sizeInBytes(); ++idx) |
| 302 | { |
| 303 | const unsigned char c = static_cast<unsigned char>(bytes[idx]); |
| 304 | if (c < ' ' or c == 0x7f) |
| 305 | { |
| 306 | return true; |
| 307 | } |
| 308 | } |
| 309 | return false; |
| 310 | } |
| 311 | |
| 312 | static SC::Result validateProxyOptions(const SC::HttpClientRequestProxyOptions& proxy) |
| 313 | { |
no test coverage detected