struct JsonRpc::Response
- JsonRpc::Response
- JsonRpc::ResponseBase
- Struct
- Value
- Object
Overview
Encapsulates a JSON-RPC invocation response. See Request#respond
to
create a response conveniently.
Defined in:
json_rpc/response.crConstructors
- .new(id, result, error)
-
.new(pull : JSON::PullParser)
Encapsulates a JSON-RPC invocation response.
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(pull : JSON::PullParser)
#
Encapsulates a JSON-RPC invocation response. See Request#respond
to
create a response conveniently.