| 683 | bool SC::HttpClientCapabilities::hasBackend(Backend requiredBackend) const { return backend == requiredBackend; } |
| 684 | |
| 685 | bool SC::HttpClientCapabilities::supports(Feature feature) const |
| 686 | { |
| 687 | switch (feature) |
| 688 | { |
| 689 | case MultipleOperationsPerClient: return multipleOperationsPerClient; |
| 690 | case FixedRequestBody: return fixedRequestBody; |
| 691 | case SizedStreamRequestBody: return sizedStreamRequestBody; |
| 692 | case ChunkedStreamRequestBody: return chunkedStreamRequestBody; |
| 693 | case RedirectPolicy: return redirectPolicy; |
| 694 | case ProtocolHttp11Only: return protocolHttp11Only; |
| 695 | case ProtocolHttp2Preferred: return protocolHttp2Preferred; |
| 696 | case ProtocolHttp2Required: return protocolHttp2Required; |
| 697 | case TlsDisablePeerVerification: return tlsDisablePeerVerification; |
| 698 | case TlsCustomCaPath: return tlsCustomCaPath; |
| 699 | case ProxyNoProxy: return proxyNoProxy; |
| 700 | case ProxyHttp: return proxyHttp; |
| 701 | case ProxyAuthorization: return proxyAuthorization; |
| 702 | case ProxyBypassList: return proxyBypassList; |
| 703 | case ContentCodingPolicy: return contentCodingPolicy; |
| 704 | } |
| 705 | return false; |
| 706 | } |
| 707 | |
| 708 | bool SC::HttpClientCapabilities::supportsRequestOptions(const HttpClientRequestOptions& options) const |
| 709 | { |