1 #ifndef RAPP_ASIO_SERVICE_HTTP
2 #define RAPP_ASIO_SERVICE_HTTP
32 boost::asio::ip::tcp::resolver::query & query,
33 boost::asio::ip::tcp::resolver & resolver,
34 boost::asio::io_service & io_service
44 const boost::system::error_code & err,
45 boost::asio::ip::tcp::resolver::iterator endpoint_iterator
54 const boost::system::error_code & err,
55 boost::asio::ip::tcp::resolver::iterator endpoint_iterator
78 std::unique_ptr<boost::asio::ip::tcp::socket>
socket_;
asio_service_http(const std::string token)
void handle_resolve(const boost::system::error_code &err, boost::asio::ip::tcp::resolver::iterator endpoint_iterator)
Callback for Handling Address Resolution.
base class for asio handling, including helper methods and most protected members ...
void check_timeout()
check timed-out
void handle_connect(const boost::system::error_code &err, boost::asio::ip::tcp::resolver::iterator endpoint_iterator)
void schedule(boost::asio::ip::tcp::resolver::query &query, boost::asio::ip::tcp::resolver &resolver, boost::asio::io_service &io_service)
void reset()
reset handler (clear data, bytes, etc) and stop connection
void handle_read_headers(const boost::system::error_code &err)
Callback for Handling Headers.
base class for asynchronous http websockets used for connecting to cloud services ...
void handle_read_content(const boost::system::error_code &err, std::size_t bytes)
Callback for Handling Actual Data Contents.
void handle_read_status_line(const boost::system::error_code &err)
Callback for handling HTTP Header Response Data.
std::unique_ptr< boost::asio::ip::tcp::socket > socket_
TCP Socket (plain-text)
void handle_write_request(const boost::system::error_code &err)
Callback for handling request and waiting for response.
Abstract Base ASIO Socket class Use for passing around to the service controller, various types of cl...