client-cpp  0.10.0
kaa::HttpClient Class Reference

#include <HttpClient.hpp>

+ Inheritance diagram for kaa::HttpClient:
+ Collaboration diagram for kaa::HttpClient:

Public Member Functions

 HttpClient (IKaaClientContext &context)
 
virtual std::shared_ptr
< IHttpResponse
sendRequest (const IHttpRequest &request, EndpointConnectionInfo *connection=nullptr)
 
virtual void closeConnection ()
 
- Public Member Functions inherited from kaa::IHttpClient
virtual ~IHttpClient ()=default
 

Detailed Description

Definition at line 31 of file HttpClient.hpp.

Constructor & Destructor Documentation

kaa::HttpClient::HttpClient ( IKaaClientContext context)
inline

Definition at line 34 of file HttpClient.hpp.

Member Function Documentation

virtual void kaa::HttpClient::closeConnection ( )
virtual

Close HTTP connection.

Implements kaa::IHttpClient.

virtual std::shared_ptr<IHttpResponse> kaa::HttpClient::sendRequest ( const IHttpRequest request,
EndpointConnectionInfo connection = nullptr 
)
virtual

Send HTTP request.

Parameters
[in]requestthe http request which will be sent.
[in]connectionthe structure which is filled in case of successful connection establishment.
Returns
response to the request.

Implements kaa::IHttpClient.


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