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

Public Member Functions

 ServerErrorRetryClient (HttpClient &inner, int retry_attempts, std::chrono::milliseconds retry_delay)
 
Result< HttpResponse< void > > DownloadToCallback (HttpRequest request, ResultDataCallback callback) override
 
- Public Member Functions inherited from cuttlefish::HttpClient
virtual ~HttpClient ()
 
virtual Result< HttpResponse< void > > DownloadToCallback (HttpRequest, ResultDataCallback callback)=0
 

Private Attributes

HttpClient & inner_client_
 
int retry_attempts_
 
std::chrono::milliseconds retry_delay_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ServerErrorRetryClient()

cuttlefish::anonymous_namespace{retrying_http_client.cc}::ServerErrorRetryClient::ServerErrorRetryClient ( HttpClient &  inner,
int  retry_attempts,
std::chrono::milliseconds  retry_delay 
)
inline

Member Function Documentation

◆ DownloadToCallback()

Result< HttpResponse< void > > cuttlefish::anonymous_namespace{retrying_http_client.cc}::ServerErrorRetryClient::DownloadToCallback ( HttpRequest  request,
ResultDataCallback  callback 
)
inlineoverridevirtual

Member Data Documentation

◆ inner_client_

HttpClient& cuttlefish::anonymous_namespace{retrying_http_client.cc}::ServerErrorRetryClient::inner_client_
private

◆ retry_attempts_

int cuttlefish::anonymous_namespace{retrying_http_client.cc}::ServerErrorRetryClient::retry_attempts_
private

◆ retry_delay_

std::chrono::milliseconds cuttlefish::anonymous_namespace{retrying_http_client.cc}::ServerErrorRetryClient::retry_delay_
private

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