31 #include <boost/optional/optional.hpp>
36 #include "storages/http_abstract_invoke.h"
37 #include "net/http_auth.h"
38 #include "net/http_client.h"
39 #include "net/net_ssl.h"
40 #include "string_tools.h"
52 , boost::optional<epee::net_utils::http::login> user
53 , epee::net_utils::ssl_options_t ssl_options
58 epee::string_tools::get_ip_string_from_int32(ip), std::to_string(port), std::move(user), std::move(ssl_options)
62 template <
typename T_req,
typename T_res>
66 , std::string
const & method_name
89 template <
typename T_req,
typename T_res>
93 , std::string
const & method_name
94 , std::string
const & fail_msg
108 fail_msg_writer() << fail_msg <<
" -- json_rpc_request: " << res.status;
117 template <
typename T_req,
typename T_res>
121 , std::string
const & relative_url
122 , std::string
const & fail_msg
127 bool ok = connection.
is_open();
#define CORE_RPC_STATUS_OK
Definition: core_rpc_server_commands_defs.h:78