| 376 | } |
| 377 | |
| 378 | static SC::Result validateRequestOptionsShape(const SC::HttpClientRequestOptions& options) |
| 379 | { |
| 380 | SC_TRY_MSG(isValidRedirectMode(options.redirect.mode), "HttpClientRequestOptions: invalid redirect mode"); |
| 381 | SC_TRY_MSG(isValidProtocolPreference(options.protocol.preference), |
| 382 | "HttpClientRequestOptions: invalid protocol preference"); |
| 383 | SC_TRY_MSG(not hasPathUnsafeBytes(options.tls.caCertificatesPath), |
| 384 | "HttpClientRequestOptions: TLS CA path contains control bytes"); |
| 385 | SC_TRY(validateProxyOptions(options.proxy)); |
| 386 | return SC::Result(true); |
| 387 | } |
| 388 | |
| 389 | static SC::Result validateRequestShape(const SC::HttpClientRequest& request) |
| 390 | { |
no test coverage detected