1 #ifndef RAPP_ASIO_SOCKET_HTTPS
2 #define RAPP_ASIO_SOCKET_HTTPS
28 header_ =
"POST / HTTP/1.1\r\n";
38 boost::asio::ip::tcp::resolver::query & query,
39 boost::asio::ip::tcp::resolver & resolver,
40 boost::asio::io_service & io_service
54 void handle_write(
const boost::system::error_code & err);
76 boost::asio::ssl::context
ctx_;
std::unique_ptr< boost_tls_socket > tls_socket_
tls/ssl socket wrapper
std::string header_
Header that will be used.
base class for asio handling, including helper methods and most protected members ...
void handle_connect(const boost::system::error_code &error)
begin connect
boost::asio::ssl::context ctx_
tls context
bool verify_certificate(bool preverified, boost::asio::ssl::verify_context &ctx)
verify TLS certificate
void handle_read_headers(const boost::system::error_code &err)
Callback for Handling Headers.
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > boost_tls_socket
boost tls wraps around a tcp socket
asio_socket_https(const std::string token)
construct using:
void handle_write(const boost::system::error_code &err)
Callback for handling request and waiting for response.
void reset()
reset handler (clear data, bytes, etc) and stop connection
void check_timeout()
check timed-out
void handle_read_status_line(const boost::system::error_code &err)
Callback for handling HTTP Header Response Data.
void handle_handshake(const boost::system::error_code &error)
handle handshake
void schedule(boost::asio::ip::tcp::resolver::query &query, boost::asio::ip::tcp::resolver &resolver, boost::asio::io_service &io_service)
void handle_read_content(const boost::system::error_code &err)
Callback for Handling Actual Data Contents.
wrapper for SSL/TLS secure HTTP communication
Abstract Base ASIO Socket class Use for passing around to the service controller, various types of cl...