struct JsonRpc::Response

Overview

Encapsulates a JSON-RPC invocation response. See Request#respond to create a response conveniently.

Defined in:

json_rpc/response.cr

Constructors

Instance Method Summary

Instance methods inherited from struct JsonRpc::ResponseBase

error : JSON::Any | Nil error

Constructor methods inherited from struct JsonRpc::ResponseBase

new(id : Int64 | String | Nil, error : JSON::Any | Nil)
new(pull : JSON::PullParser)
new

Instance methods inherited from module JsonRpc::MessageHeader

id : IdType | Nil id, jsonrpc : String | Nil jsonrpc

Constructor Detail

def self.new(id, result, error) #

[View source]
def self.new(pull : JSON::PullParser) #

Encapsulates a JSON-RPC invocation response. See Request#respond to create a response conveniently.


[View source]

Instance Method Detail

def result : String | Nil #

[View source]