44 boost::asio::any_io_executor ioc, boost::asio::ssl::context & ssl_context,
45 const std::function<
void(
const TResponse &)> response);
51 const std::string & host,
const std::string & target,
52 const boost::beast::http::verb http_method,
const int & version)
override;
57 const std::string
kPort =
"443";
60 boost::beast::error_code ec, boost::asio::ip::tcp::resolver::results_type results)
override;
61 void fail(boost::beast::error_code ec,
const char * what)
override;
63 boost::beast::error_code ec,
64 boost::asio::ip::tcp::resolver::results_type::endpoint_type)
override;
66 void on_write(boost::beast::error_code ec, std::size_t bytes_transferred)
override;
67 void on_read(boost::beast::error_code ec, std::size_t bytes_transferred)
override;
68 void on_shutdown(boost::beast::error_code ec)
override;
69 void setBody(
const std::string & body)
override;
70 void setHeaders(
const std::unordered_map<std::string, std::string> & headers)
override;
71 void appendToHeader(
const std::string & key,
const std::string & val);
77 boost::beast::ssl_stream<boost::beast::tcp_stream>
stream_;
79 boost::beast::http::request<boost::beast::http::string_body>
req_;