Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | List of all members
JSONRPCRequest Class Reference

#include <request.h>

Collaboration diagram for JSONRPCRequest:
[legend]

Public Types

enum  Mode { EXECUTE , GET_HELP , GET_ARGS }
 

Public Member Functions

void parse (const UniValue &valRequest)
 
bool IsNotification () const
 

Public Attributes

std::optional< UniValueid = UniValue::VNULL
 
std::string strMethod
 
UniValue params
 
enum JSONRPCRequest::Mode mode = EXECUTE
 
std::string URI
 
std::string authUser
 
std::string peerAddr
 
std::any context
 
JSONRPCVersion m_json_version = JSONRPCVersion::V1_LEGACY
 

Detailed Description

Definition at line 35 of file request.h.

Member Enumeration Documentation

◆ Mode

Enumerator
EXECUTE 
GET_HELP 
GET_ARGS 

Definition at line 41 of file request.h.

Member Function Documentation

◆ IsNotification()

bool JSONRPCRequest::IsNotification ( ) const
inline

Definition at line 49 of file request.h.

Here is the caller graph for this function:

◆ parse()

void JSONRPCRequest::parse ( const UniValue valRequest)

Definition at line 197 of file request.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ authUser

std::string JSONRPCRequest::authUser

Definition at line 43 of file request.h.

◆ context

std::any JSONRPCRequest::context

Definition at line 45 of file request.h.

◆ id

std::optional<UniValue> JSONRPCRequest::id = UniValue::VNULL

Definition at line 38 of file request.h.

◆ m_json_version

JSONRPCVersion JSONRPCRequest::m_json_version = JSONRPCVersion::V1_LEGACY

Definition at line 46 of file request.h.

◆ mode

enum JSONRPCRequest::Mode JSONRPCRequest::mode = EXECUTE

◆ params

UniValue JSONRPCRequest::params

Definition at line 40 of file request.h.

◆ peerAddr

std::string JSONRPCRequest::peerAddr

Definition at line 44 of file request.h.

◆ strMethod

std::string JSONRPCRequest::strMethod

Definition at line 39 of file request.h.

◆ URI

std::string JSONRPCRequest::URI

Definition at line 42 of file request.h.


The documentation for this class was generated from the following files: