rippled
Loading...
Searching...
No Matches
Request.h
1#ifndef XRPL_RPC_REQUEST_H_INCLUDED
2#define XRPL_RPC_REQUEST_H_INCLUDED
3
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/resource/Charge.h>
7#include <xrpl/resource/Fees.h>
8
9namespace ripple {
10
11class Application;
12
13namespace RPC {
14
15struct Request
16{
17 explicit Request(
18 beast::Journal journal_,
19 std::string const& method_,
20 Json::Value& params_,
21 Application& app_)
22 : journal(journal_)
23 , method(method_)
24 , params(params_)
25 , fee(Resource::feeReferenceRPC)
26 , app(app_)
27 {
28 }
29
30 // [in] The Journal for logging
32
33 // [in] The JSON-RPC method
35
36 // [in] The Ripple-specific "params" object
38
39 // [in, out] The resource cost for the command
41
42 // [out] The JSON-RPC response
44
45 // [in] The Application instance
47
48private:
49 Request&
51};
52
53} // namespace RPC
54} // namespace ripple
55
56#endif
Represents a JSON value.
Definition json_value.h:130
A generic endpoint for log messages.
Definition Journal.h:41
A consumption charge.
Definition Charge.h:11
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string method
Definition Request.h:34
Request(beast::Journal journal_, std::string const &method_, Json::Value &params_, Application &app_)
Definition Request.h:17
Resource::Charge fee
Definition Request.h:40
beast::Journal const journal
Definition Request.h:31
Application & app
Definition Request.h:46
Json::Value params
Definition Request.h:37
Request & operator=(Request const &)
Json::Value result
Definition Request.h:43