aboutsummaryrefslogtreecommitdiff
path: root/src/rpc_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc_server.h')
-rw-r--r--src/rpc_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc_server.h b/src/rpc_server.h
index edfc15b..f5e1f4b 100644
--- a/src/rpc_server.h
+++ b/src/rpc_server.h
@@ -10,6 +10,7 @@
class RPCRequest {
private:
+ bool valid = false;
HTTPRequest* request;
rapidjson::Document body;
@@ -24,6 +25,8 @@ class RPCRequest {
RPCRequest(HTTPRequest* request);
~RPCRequest();
+ bool is_valid() { return this->valid; };
+
rapidjson::MemoryPoolAllocator<>& get_allocator() { return this->body.GetAllocator(); };
std::string get_method() { return this->method; }
rapidjson::Value& get_params() { return this->params; }