Class http_session_base
Defined in File http_session_base.hpp
Inheritance Relationships
Derived Types
public cl_http::http_session
(Class http_session)public cl_http::ssl_http_session
(Class ssl_http_session)
Class Documentation
-
class http_session_base
Subclassed by cl_http::http_session, cl_http::ssl_http_session
Public Types
-
using TResponse = boost::beast::http::response<boost::beast::http::string_body>
Public Functions
-
inline virtual ~http_session_base()
-
virtual void run(const std::string &host, const std::string &target, const boost::beast::http::verb http_method, const int &version) = 0
-
virtual std::string getPort() = 0
-
virtual void setBody(const std::string &body) = 0
-
virtual void setHeaders(const std::unordered_map<std::string, std::string> &headers) = 0
Protected Functions
-
virtual void on_resolve(boost::beast::error_code ec, boost::asio::ip::tcp::resolver::results_type results) = 0
-
virtual void fail(boost::beast::error_code ec, const char *what) = 0
-
virtual void on_connect(boost::beast::error_code ec, boost::asio::ip::tcp::resolver::results_type::endpoint_type) = 0
-
virtual void on_write(boost::beast::error_code ec, std::size_t bytes_transferred) = 0
-
virtual void on_read(boost::beast::error_code ec, std::size_t bytes_transferred) = 0
-
inline virtual void on_handshake(boost::beast::error_code ec)
-
inline virtual void on_shutdown(boost::beast::error_code ec)
-
using TResponse = boost::beast::http::response<boost::beast::http::string_body>