Wire Sysio Wire Sysion 1.0.0
|
Namespaces | |
namespace | detail |
Classes | |
struct | connection_param |
struct | parsed_url |
struct | resolved_url |
Typedefs | |
using | http_context = std::unique_ptr<detail::http_context_impl, detail::http_context_deleter> |
Functions | |
http_context | create_http_context () |
void | do_connect (tcp::socket &sock, const resolved_url &url) |
template<class T > | |
std::string | do_txrx (T &socket, boost::asio::streambuf &request_buff, unsigned int &status_code) |
parsed_url | parse_url (const string &server_url) |
resolved_url | resolve_url (const http_context &context, const parsed_url &url) |
string | format_host_header (const resolved_url &url) |
fc::variant | do_http_call (const connection_param &cp, const fc::variant &postdata, bool print_request, bool print_response) |
FC_DECLARE_EXCEPTION (connection_exception, 1100000, "Connection Exception") | |
Variables | |
const string | chain_func_base = "/v1/chain" |
const string | get_info_func = chain_func_base + "/get_info" |
const string | get_transaction_status_func = chain_func_base + "/get_transaction_status" |
const string | send_txn_func = chain_func_base + "/send_transaction" |
const string | push_txn_func = chain_func_base + "/push_transaction" |
const string | send2_txn_func = chain_func_base + "/send_transaction2" |
const string | compute_txn_func = chain_func_base + "/compute_transaction" |
const string | push_txns_func = chain_func_base + "/push_transactions" |
const string | json_to_bin_func = chain_func_base + "/abi_json_to_bin" |
const string | get_block_func = chain_func_base + "/get_block" |
const string | get_block_info_func = chain_func_base + "/get_block_info" |
const string | get_block_header_state_func = chain_func_base + "/get_block_header_state" |
const string | get_account_func = chain_func_base + "/get_account" |
const string | get_table_func = chain_func_base + "/get_table_rows" |
const string | get_table_by_scope_func = chain_func_base + "/get_table_by_scope" |
const string | get_code_func = chain_func_base + "/get_code" |
const string | get_code_hash_func = chain_func_base + "/get_code_hash" |
const string | get_abi_func = chain_func_base + "/get_abi" |
const string | get_raw_abi_func = chain_func_base + "/get_raw_abi" |
const string | get_raw_code_and_abi_func = chain_func_base + "/get_raw_code_and_abi" |
const string | get_currency_balance_func = chain_func_base + "/get_currency_balance" |
const string | get_currency_stats_func = chain_func_base + "/get_currency_stats" |
const string | get_producers_func = chain_func_base + "/get_producers" |
const string | get_schedule_func = chain_func_base + "/get_producer_schedule" |
const string | get_required_keys = chain_func_base + "/get_required_keys" |
const string | history_func_base = "/v1/history" |
const string | trace_api_func_base = "/v1/trace_api" |
const string | get_actions_func = history_func_base + "/get_actions" |
const string | get_transaction_trace_func = trace_api_func_base + "/get_transaction_trace" |
const string | get_block_trace_func = trace_api_func_base + "/get_block" |
const string | get_transaction_func = history_func_base + "/get_transaction" |
const string | get_key_accounts_func = history_func_base + "/get_key_accounts" |
const string | get_controlled_accounts_func = history_func_base + "/get_controlled_accounts" |
const string | net_func_base = "/v1/net" |
const string | net_connect = net_func_base + "/connect" |
const string | net_disconnect = net_func_base + "/disconnect" |
const string | net_status = net_func_base + "/status" |
const string | net_connections = net_func_base + "/connections" |
const string | wallet_func_base = "/v1/wallet" |
const string | wallet_create = wallet_func_base + "/create" |
const string | wallet_open = wallet_func_base + "/open" |
const string | wallet_list = wallet_func_base + "/list_wallets" |
const string | wallet_list_keys = wallet_func_base + "/list_keys" |
const string | wallet_public_keys = wallet_func_base + "/get_public_keys" |
const string | wallet_lock = wallet_func_base + "/lock" |
const string | wallet_lock_all = wallet_func_base + "/lock_all" |
const string | wallet_unlock = wallet_func_base + "/unlock" |
const string | wallet_import_key = wallet_func_base + "/import_key" |
const string | wallet_remove_key = wallet_func_base + "/remove_key" |
const string | wallet_create_key = wallet_func_base + "/create_key" |
const string | wallet_sign_trx = wallet_func_base + "/sign_transaction" |
const string | kiod_stop = "/v1/" + string(client::config::key_store_executable_name) + "/stop" |
using sysio::client::http::http_context = std::unique_ptr<detail::http_context_impl, detail::http_context_deleter> |
http_context sysio::client::http::create_http_context | ( | ) |
Definition at line 43 of file httpc.cpp.
void sysio::client::http::do_connect | ( | tcp::socket & | sock, |
const resolved_url & | url ) |
Definition at line 47 of file httpc.cpp.
fc::variant sysio::client::http::do_http_call | ( | const connection_param & | cp, |
const fc::variant & | postdata, | ||
bool | print_request, | ||
bool | print_response ) |
Definition at line 184 of file httpc.cpp.
std::string sysio::client::http::do_txrx | ( | T & | socket, |
boost::asio::streambuf & | request_buff, | ||
unsigned int & | status_code ) |
Definition at line 58 of file httpc.cpp.
sysio::client::http::FC_DECLARE_EXCEPTION | ( | connection_exception | , |
1100000 | , | ||
"Connection Exception" | ) |
string sysio::client::http::format_host_header | ( | const resolved_url & | url | ) |
parsed_url sysio::client::http::parse_url | ( | const string & | server_url | ) |
Definition at line 108 of file httpc.cpp.
resolved_url sysio::client::http::resolve_url | ( | const http_context & | context, |
const parsed_url & | url ) |
Definition at line 138 of file httpc.cpp.
const string sysio::client::http::chain_func_base = "/v1/chain" |
const string sysio::client::http::compute_txn_func = chain_func_base + "/compute_transaction" |
const string sysio::client::http::get_abi_func = chain_func_base + "/get_abi" |
const string sysio::client::http::get_account_func = chain_func_base + "/get_account" |
const string sysio::client::http::get_actions_func = history_func_base + "/get_actions" |
const string sysio::client::http::get_block_func = chain_func_base + "/get_block" |
const string sysio::client::http::get_block_header_state_func = chain_func_base + "/get_block_header_state" |
const string sysio::client::http::get_block_info_func = chain_func_base + "/get_block_info" |
const string sysio::client::http::get_block_trace_func = trace_api_func_base + "/get_block" |
const string sysio::client::http::get_code_func = chain_func_base + "/get_code" |
const string sysio::client::http::get_code_hash_func = chain_func_base + "/get_code_hash" |
const string sysio::client::http::get_controlled_accounts_func = history_func_base + "/get_controlled_accounts" |
const string sysio::client::http::get_currency_balance_func = chain_func_base + "/get_currency_balance" |
const string sysio::client::http::get_currency_stats_func = chain_func_base + "/get_currency_stats" |
const string sysio::client::http::get_info_func = chain_func_base + "/get_info" |
const string sysio::client::http::get_key_accounts_func = history_func_base + "/get_key_accounts" |
const string sysio::client::http::get_producers_func = chain_func_base + "/get_producers" |
const string sysio::client::http::get_raw_abi_func = chain_func_base + "/get_raw_abi" |
const string sysio::client::http::get_raw_code_and_abi_func = chain_func_base + "/get_raw_code_and_abi" |
const string sysio::client::http::get_required_keys = chain_func_base + "/get_required_keys" |
const string sysio::client::http::get_schedule_func = chain_func_base + "/get_producer_schedule" |
const string sysio::client::http::get_table_by_scope_func = chain_func_base + "/get_table_by_scope" |
const string sysio::client::http::get_table_func = chain_func_base + "/get_table_rows" |
const string sysio::client::http::get_transaction_func = history_func_base + "/get_transaction" |
const string sysio::client::http::get_transaction_status_func = chain_func_base + "/get_transaction_status" |
const string sysio::client::http::get_transaction_trace_func = trace_api_func_base + "/get_transaction_trace" |
const string sysio::client::http::history_func_base = "/v1/history" |
const string sysio::client::http::json_to_bin_func = chain_func_base + "/abi_json_to_bin" |
const string sysio::client::http::kiod_stop = "/v1/" + string(client::config::key_store_executable_name) + "/stop" |
const string sysio::client::http::net_connect = net_func_base + "/connect" |
const string sysio::client::http::net_connections = net_func_base + "/connections" |
const string sysio::client::http::net_disconnect = net_func_base + "/disconnect" |
const string sysio::client::http::net_func_base = "/v1/net" |
const string sysio::client::http::net_status = net_func_base + "/status" |
const string sysio::client::http::push_txn_func = chain_func_base + "/push_transaction" |
const string sysio::client::http::push_txns_func = chain_func_base + "/push_transactions" |
const string sysio::client::http::send2_txn_func = chain_func_base + "/send_transaction2" |
const string sysio::client::http::send_txn_func = chain_func_base + "/send_transaction" |
const string sysio::client::http::trace_api_func_base = "/v1/trace_api" |
const string sysio::client::http::wallet_create = wallet_func_base + "/create" |
const string sysio::client::http::wallet_create_key = wallet_func_base + "/create_key" |
const string sysio::client::http::wallet_func_base = "/v1/wallet" |
const string sysio::client::http::wallet_import_key = wallet_func_base + "/import_key" |
const string sysio::client::http::wallet_list = wallet_func_base + "/list_wallets" |
const string sysio::client::http::wallet_list_keys = wallet_func_base + "/list_keys" |
const string sysio::client::http::wallet_lock = wallet_func_base + "/lock" |
const string sysio::client::http::wallet_lock_all = wallet_func_base + "/lock_all" |
const string sysio::client::http::wallet_open = wallet_func_base + "/open" |
const string sysio::client::http::wallet_public_keys = wallet_func_base + "/get_public_keys" |
const string sysio::client::http::wallet_remove_key = wallet_func_base + "/remove_key" |
const string sysio::client::http::wallet_sign_trx = wallet_func_base + "/sign_transaction" |