RootField

data class RootField(val envelopeKey: String) : JsonRpcContextConvention

Context map is nested under a single root-level field in the JSON-RPC object.

Example with envelopeKey = "ctx":

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

Constructors

Link copied to clipboard
constructor(envelopeKey: String)

Properties

Link copied to clipboard