Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 52 of file request.h.

Member Enumeration Documentation

◆ Mode

Enumerator
EXECUTE 
GET_HELP 
GET_ARGS 

Definition at line 58 of file request.h.

Member Function Documentation

◆ IsNotification()

bool JSONRPCRequest::IsNotification ( ) const
inlinenodiscard

Definition at line 66 of file request.h.

Here is the caller graph for this function:

◆ parse()

void JSONRPCRequest::parse ( const UniValue & valRequest)

Definition at line 199 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 60 of file request.h.

◆ context

std::any JSONRPCRequest::context

Definition at line 62 of file request.h.

◆ id

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

Definition at line 55 of file request.h.

◆ m_json_version

JSONRPCVersion JSONRPCRequest::m_json_version = JSONRPCVersion::V1_LEGACY

Definition at line 63 of file request.h.

◆ mode

enum JSONRPCRequest::Mode JSONRPCRequest::mode = EXECUTE

◆ params

UniValue JSONRPCRequest::params

Definition at line 57 of file request.h.

◆ peerAddr

std::string JSONRPCRequest::peerAddr

Definition at line 61 of file request.h.

◆ strMethod

std::string JSONRPCRequest::strMethod

Definition at line 56 of file request.h.

◆ URI

std::string JSONRPCRequest::URI

Definition at line 59 of file request.h.


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