InParams

data class InParams(val paramsKey: String) : JsonRpcContextConvention

Context map is nested inside the params object under the given key.

Example with paramsKey = "_ctx":

{ "jsonrpc": "2.0", "method": "foo", "params": { "input": ..., "_ctx": { "x-auth": "token" } }, "id": 1 }

Constructors

Link copied to clipboard
constructor(paramsKey: String)

Properties

Link copied to clipboard