31 bool connect(std::string_view server, std::string_view port);
35 std::string sendGet(
const std::string& target);
37 std::string sendCommand(boost::beast::http::verb command,
38 const std::string& target,
39 const std::string& body);
42 boost::asio::io_context ioc;
44 std::unique_ptr<boost::beast::tcp_stream> stream;
45 boost::beast::flat_buffer buffer;
47 std::string hostName{
"localHost"};
48 nlohmann::json config;
49 bool connected{
false};