23#include <boost/asio/executor_work_guard.hpp>
24#include <boost/asio/strand.hpp>
25#include <boost/beast/core.hpp>
26#include <boost/beast/http.hpp>
27#include <boost/beast/ssl.hpp>
28#include <boost/beast/version.hpp>
71 GET =
static_cast<int>(boost::beast::http::verb::get),
72 POST =
static_cast<int>(boost::beast::http::verb::post),
73 PUT =
static_cast<int>(boost::beast::http::verb::put),
84 explicit ClHttp(
const std::string & server,
const int & timeout = 1500);
92 const std::string & body =
"",
93 const std::unordered_map<std::string, std::string> & headers = {});
std::string getServerName() const
std::string getPort() const
Server(const std::string &server_name)
std::thread tcp_connection_runner_
void makeRequest(const kHttpRequestMethod http_method, const std::string &path="/", const std::string &body="", const std::unordered_map< std::string, std::string > &headers={})
boost::asio::io_context io_context_
http_session_base::TResponse TResponse
boost::asio::executor_work_guard< decltype(io_context_)::executor_type > worker_guard_
std::function< void(TResponse)> callbackHandler
void onInitialize() override
boost::asio::ssl::context ssl_context_
boost::signals2::connection onResponseReceived(void(T::*callback)(const TResponse &), T *object)
smacc2::SmaccSignal< void(const TResponse &)> onResponseReceived_
boost::beast::http::response< boost::beast::http::string_body > TResponse
ISmaccStateMachine * getStateMachine()
boost::signals2::connection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)