Request.this

Construct a Request with the specified remote method name and arguments.

The ID must be a string, a number, or null; null is not recommended for use as an ID.

More...
  1. this(T id, string method, JSONValue params)
    struct Request
    this
    (
    T = long
    )
    (
    T id
    ,
    string method
    ,
    JSONValue params = JSONValue()
    )
    if (
    isNumeric!T ||
    isSomeString!T
    ||
    is(T : typeof(null))
    )
  2. this(JSONValue id, string method, JSONValue params)
  3. this(string method, JSONValue params)
  4. this(T id, string method, string params)

Parameters

id T

The ID of the request.

method string

The name of the remote method to call.

params JSONValue

A JSONValue containing the method arguments as a JSON Object or array.

Detailed Description

Template Parameters

T = The type of the request ID.

Meta