AWS SDK for C++  1.9.2
AWS SDK for C++
Public Member Functions | List of all members
Aws::Http::HttpClient Class Referenceabstract

#include <HttpClient.h>

+ Inheritance diagram for Aws::Http::HttpClient:

Public Member Functions

 HttpClient ()
virtual ~HttpClient ()
virtual std::shared_ptr< HttpResponseMakeRequest (const std::shared_ptr< HttpRequest > &request, Aws::Utils::RateLimits::RateLimiterInterface *readLimiter=nullptr, Aws::Utils::RateLimits::RateLimiterInterface *writeLimiter=nullptr) const =0
virtual bool SupportsChunkedTransferEncoding () const
void DisableRequestProcessing ()
void EnableRequestProcessing ()
bool IsRequestProcessingEnabled () const
void RetryRequestSleep (std::chrono::milliseconds sleepTime)
bool ContinueRequest (const Aws::Http::HttpRequest &) const

Detailed Description

Abstract HttpClient. All it does is make HttpRequests and return their response.

Definition at line 33 of file HttpClient.h.

Constructor & Destructor Documentation

◆ HttpClient()

Aws::Http::HttpClient::HttpClient ( )

◆ ~HttpClient()

virtual Aws::Http::HttpClient::~HttpClient ( )

Definition at line 37 of file HttpClient.h.

Member Function Documentation

◆ ContinueRequest()

bool Aws::Http::HttpClient::ContinueRequest ( const Aws::Http::HttpRequest ) const

◆ DisableRequestProcessing()

void Aws::Http::HttpClient::DisableRequestProcessing ( )

Stops all requests in progress and prevents any others from initiating.

◆ EnableRequestProcessing()

void Aws::Http::HttpClient::EnableRequestProcessing ( )

Enables/ReEnables request processing.

◆ IsRequestProcessingEnabled()

bool Aws::Http::HttpClient::IsRequestProcessingEnabled ( ) const

Returns true if request processing is enabled.

◆ MakeRequest()

virtual std::shared_ptr<HttpResponse> Aws::Http::HttpClient::MakeRequest ( const std::shared_ptr< HttpRequest > &  request,
Aws::Utils::RateLimits::RateLimiterInterface readLimiter = nullptr,
Aws::Utils::RateLimits::RateLimiterInterface writeLimiter = nullptr 
) const
pure virtual

Takes an http request, makes it, and returns the newly allocated HttpResponse.

Implemented in Aws::Http::WinSyncHttpClient, Aws::Http::IXmlHttpRequest2HttpClient, and Aws::Http::CurlHttpClient.

◆ RetryRequestSleep()

void Aws::Http::HttpClient::RetryRequestSleep ( std::chrono::milliseconds  sleepTime)

Sleeps current thread for sleepTime.

◆ SupportsChunkedTransferEncoding()

virtual bool Aws::Http::HttpClient::SupportsChunkedTransferEncoding ( ) const

If yes, the http client supports transfer-encoding:chunked.

Reimplemented in Aws::Http::IXmlHttpRequest2HttpClient.

Definition at line 49 of file HttpClient.h.

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