Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpClientCapabilities Struct Reference

Compile-time backend capability report for the active HttpClient backend. More...

#include <HttpClient.h>

Public Types

enum  Backend : uint8_t {
  Unsupported ,
  AppleURLSession ,
  LibCurl ,
  WinHttp
}
 
enum  Feature : uint8_t {
  MultipleOperationsPerClient ,
  FixedRequestBody ,
  SizedStreamRequestBody ,
  ChunkedStreamRequestBody ,
  RedirectPolicy ,
  ProtocolHttp11Only ,
  ProtocolHttp2Preferred ,
  ProtocolHttp2Required ,
  TlsDisablePeerVerification ,
  TlsCustomCaPath ,
  ProxyNoProxy ,
  ProxyHttp ,
  ProxyAuthorization ,
  ProxyBypassList ,
  ContentCodingPolicy
}
 

Public Member Functions

bool hasBackend (Backend requiredBackend) const
 
bool supports (Feature feature) const
 
bool supportsRequestOptions (const HttpClientRequestOptions &options) const
 
bool supportsAll (Span< const Feature > features) const
 
Result requireBackend (Backend requiredBackend) const
 
Result requireFeatures (Span< const Feature > features) const
 
Result requireRequestOptions (const HttpClientRequestOptions &options) const
 
const char * getBackendName () const
 

Static Public Member Functions

static const char * getBackendName (Backend backend)
 
static const char * getFeatureName (Feature feature)
 

Public Attributes

Backend backend = Unsupported
 
bool multipleOperationsPerClient = false
 
bool fixedRequestBody = false
 
bool sizedStreamRequestBody = false
 
bool chunkedStreamRequestBody = false
 
bool redirectPolicy = false
 
bool protocolHttp11Only = false
 
bool protocolHttp2Preferred = false
 
bool protocolHttp2Required = false
 
bool tlsDisablePeerVerification = false
 
bool tlsCustomCaPath = false
 
bool proxyNoProxy = false
 
bool proxyHttp = false
 
bool proxyAuthorization = false
 
bool proxyBypassList = false
 
bool contentCodingPolicy = false
 

Detailed Description

Compile-time backend capability report for the active HttpClient backend.


The documentation for this struct was generated from the following file: