Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
http_api.hpp
Go to the documentation of this file.
1#pragma once
2#include <fc/io/json.hpp>
3#include <fc/network/http/connection.hpp>
4#include <fc/network/http/server.hpp>
7#include <fc/rpc/state.hpp>
8
9namespace fc { namespace rpc {
10
12 {
13 public:
16
17 virtual variant send_call(
18 api_id_type api_id,
19 string method_name,
20 variants args = variants() ) override;
21 virtual variant send_callback(
22 uint64_t callback_id,
23 variants args = variants() ) override;
24 virtual void send_notice(
25 uint64_t callback_id,
26 variants args = variants() ) override;
27
28 void on_request(
29 const fc::http::request& req,
30 const fc::http::server::response& resp );
31
32 fc::rpc::state _rpc_state;
33 };
34
35} } // namespace fc::rpc
virtual variant send_callback(uint64_t callback_id, variants args=variants()) override
Definition http_api.cpp:67
void on_request(const fc::http::request &req, const fc::http::server::response &resp)
Definition http_api.cpp:83
virtual variant send_call(api_id_type api_id, string method_name, variants args=variants()) override
Definition http_api.cpp:58
virtual void send_notice(uint64_t callback_id, variants args=variants()) override
Definition http_api.cpp:75
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
namespace sysio::chain
Definition authority.cpp:3
uint32_t api_id_type
Definition api.hpp:46
std::vector< fc::variant > variants
Definition variant.hpp:173
unsigned __int64 uint64_t
Definition stdint.h:136