creachadair / jrpc2

A Go implementation of a JSON-RPC 2.0 server and client.
BSD 3-Clause "New" or "Revised" License
62 stars 10 forks source link

jhttp: Add optional Getter integration with a Bridge. #69

Closed creachadair closed 2 years ago

creachadair commented 2 years ago

Add a field to BridgeOptions that enables GET requests to be handled by the bridge using a Getter. Without this option, the behaviour of a Bridge does not change. With it, "GET" requests are diverted to a Getter using the same server and client options and the provided parse hook.