sourcegraph / jsonrpc2

Package jsonrpc2 provides a client and server implementation of JSON-RPC 2.0 (http://www.jsonrpc.org/specification)
MIT License
195 stars 62 forks source link

Add a way to specify more non-standard-compliant fields to Request #50

Closed lhchavez closed 3 years ago

lhchavez commented 3 years ago

This change introduces ExtraField, a CallOption that can add arbitrary fields to the top-level JSON-RPC Request message.

Fixes: https://github.com/sourcegraph/jsonrpc2/issues/49