Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient Class Reference
Inheritance diagram for cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient:
Collaboration graph
[legend]

Public Member Functions

 CurlClient (const bool use_logging_debug_function)
 
 ~CurlClient ()
 
Result< HttpResponse< void > > DownloadToCallback (HttpRequest request, DataCallback callback) override
 
- Public Member Functions inherited from cuttlefish::HttpClient
virtual ~HttpClient ()
 
virtual Result< HttpResponse< void > > DownloadToCallback (HttpRequest, DataCallback callback)=0
 

Private Attributes

CURL * curl_
 
std::mutex mutex_
 
bool use_logging_debug_function_
 

Additional Inherited Members

- Public Types inherited from cuttlefish::HttpClient
typedef std::function< bool(char *, size_t)> DataCallback
 

Constructor & Destructor Documentation

◆ CurlClient()

cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::CurlClient ( const bool  use_logging_debug_function)
inline

◆ ~CurlClient()

cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::~CurlClient ( )
inline

Member Function Documentation

◆ DownloadToCallback()

Result< HttpResponse< void > > cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::DownloadToCallback ( HttpRequest  request,
DataCallback  callback 
)
inlineoverridevirtual

Member Data Documentation

◆ curl_

CURL* cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::curl_
private

◆ mutex_

std::mutex cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::mutex_
private

◆ use_logging_debug_function_

bool cuttlefish::anonymous_namespace{curl_http_client.cc}::CurlClient::use_logging_debug_function_
private

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