32 #include <boost/optional/optional.hpp>
37 #include "storages/http_abstract_invoke.h"
38 #include "net/http_auth.h"
39 #include "net/http_client.h"
40 #include "net/net_ssl.h"
41 #include "string_tools.h"
53 , boost::optional<epee::net_utils::http::login> user
54 , epee::net_utils::ssl_options_t ssl_options
59 epee::string_tools::get_ip_string_from_int32(ip), std::to_string(port), std::move(user), std::move(ssl_options)
63 template <
typename T_req,
typename T_res>
67 , std::string
const & method_name
90 template <
typename T_req,
typename T_res>
94 , std::string
const & method_name
95 , std::string
const & fail_msg
100 bool ok = connection.
is_open();
109 fail_msg_writer() << fail_msg <<
" -- json_rpc_request: " << res.status;
118 template <
typename T_req,
typename T_res>
122 , std::string
const & relative_url
123 , std::string
const & fail_msg
128 bool ok = connection.
is_open();
#define CORE_RPC_STATUS_OK
Definition: core_rpc_server_commands_defs.h:76