41 boost::asio::any_io_executor ioc,
const std::function<
void(
const TResponse &)> response);
47 const std::string & host,
const std::string & target,
48 const boost::beast::http::verb http_method,
const int & version)
override;
56 boost::beast::error_code ec, boost::asio::ip::tcp::resolver::results_type results)
override;
57 void fail(boost::beast::error_code ec,
const char * what)
override;
59 boost::beast::error_code ec,
60 boost::asio::ip::tcp::resolver::results_type::endpoint_type)
override;
61 void on_write(boost::beast::error_code ec, std::size_t bytes_transferred)
override;
62 void on_read(boost::beast::error_code ec, std::size_t bytes_transferred)
override;
63 void setBody(
const std::string & body)
override;
64 void setHeaders(
const std::unordered_map<std::string, std::string> & headers)
override {}
71 boost::beast::http::request<boost::beast::http::string_body>
req_;