Add a context object in the onFetchRequest/onFetchResponse signatures #3859
Unanswered
rtarnaud
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to be able to pair a RPC-JSON response with its request in the http transport. Currently, the only way to do it is to rely on extra query parameters added to the url but it is brittle solution as a node provider could decide to ban them.
Instead, we could rely on a
context
object that would be writable inonFetchRequest
and readable inonFetchResponse
:Please let me know if there's a more elegant way to do it.
Beta Was this translation helpful? Give feedback.
All reactions