A class representing a JSON-RPC 2.0 request object.

Public fields

id

Unique id of the request

method

Name of the method

params

List of parameters

Methods

Public methods


Method new()

Initialize a JSON-RPC request

Usage

JsonRpcRequest$new(method = NULL, params = NULL, id = NULL)

Arguments

method

Name of the method

params

List of parameters

id

Unique id of the request


Method dehydrate()

Dehydrate the request to a list

Usage

JsonRpcRequest$dehydrate()


Method serialize()

Serialize the request to JSON

Usage

JsonRpcRequest$serialize()


Method clone()

The objects of this class are cloneable with this method.

Usage

JsonRpcRequest$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.