17 #ifndef HTTPCLIENT_HPP_
18 #define HTTPCLIENT_HPP_
23 #include <boost/asio.hpp>
35 : io_(), sock_(io_), context_(context)
42 void checkError(
const boost::system::error_code& code);
46 boost::asio::io_service io_;
47 boost::asio::ip::tcp::socket sock_;
49 KAA_MUTEX_DECLARE(httpClientGuard_);
virtual std::shared_ptr< IHttpResponse > sendRequest(const IHttpRequest &request, EndpointConnectionInfo *connection=nullptr)
virtual void closeConnection()
HttpClient(IKaaClientContext &context)