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, DataCallback callback) override
 
- Public Member Functions inherited from cuttlefish::HttpClient
virtual ~HttpClient ()
 
virtual Result< HttpResponse< void > > DownloadToCallback (HttpRequest, DataCallback callback)=0
 

Private Attributes

HttpClientinner_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)> DataCallback
 

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,
DataCallback  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: