Response.this

Construct a response to send to the client.

The id must be the same as the Request to which the server is responding, and can be numeric, string, or null.

More...
  1. this(T id, JSONValue result)
    struct Response
    package
    this
    (
    T
    )
    (
    T id
    ,
    JSONValue result
    )
  2. this(T id, StandardErrorCode error, JSONValue errData)

Parameters

id T

The ID of this response. This matches the relevant request.

result JSONValue

The return value(s) of the method executed.

Detailed Description

Template Parameters

T = The type of the response ID.

Meta