JSONRPCRequest

data class JSONRPCRequest<out P>(val id: RequestId?, val method: String, val params: P? = null) : JSONRPCMessage<P> (source)

A JSON-RPC 2.0 request that expects a response from the server.

The id field correlates this request with its JSONRPCResponse.

Type Parameters

P

The type of the params field.

Constructors

Link copied to clipboard
constructor(id: RequestId?, method: String, params: P? = null)

Properties

Link copied to clipboard

The request identifier. The server MUST reply with the same value. Per the specification, the id can be a string, an integer, or null.

Link copied to clipboard

The JSON-RPC version string. Always "2.0".

Link copied to clipboard
open override val method: String

The name of the method to invoke.

Link copied to clipboard
open override val params: P?

Optional structured parameters for the method.