Skip to content

Add channel headers support to websocket and http clients#2

Open
sundbry wants to merge 2 commits into
hindol:masterfrom
jupitercloud:channel-headers
Open

Add channel headers support to websocket and http clients#2
sundbry wants to merge 2 commits into
hindol:masterfrom
jupitercloud:channel-headers

Conversation

@sundbry

@sundbry sundbry commented Feb 8, 2024

Copy link
Copy Markdown

Hello @hindol,

Thanks for sharing this code!

For certain JSON-RPC servers, specific headers including Authorization may be required to authorize requests.

This adds an optional :headers keyword with a map of supplemental headers to send in the channel.

For a websocket, the headers are sent when the socket is opened; for an HTTP client, the headers are sent with each RPC.

For providing supplemental headers, including Authorization, when
opening a channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant