RpcRequest

structure describes JSON-RPC 2.0 request

Example

auto req = RpcRequest(json);
writefln("id=%s method=%s params:%s", req.id, req.method, req.params);

Constructors

this
this(Json json)
Undocumented in source.
this
this(string jsonStr)
Undocumented in source.
this
this(string jsonrpc, string method, string[] params, Json id)
Undocumented in source.
this
this(string jsonrpc, string method, string[] params)
Undocumented in source.

Members

Functions

eq
bool eq(RpcRequest s2)
Undocumented in source. Be warned that the author may not have intended to support it.
isRpc2
bool isRpc2()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

auth
string[string] auth;
Undocumented in source.
id
Json id;
Undocumented in source.
jsonrpc
string jsonrpc;
Undocumented in source.
method
string method;
Undocumented in source.
params
string[] params;
Undocumented in source.

Meta

Authors

Zaramzan <shamyan.roman@gmail.com>