-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add context values to clients #841
Conversation
Love the simplicity. My one tiny nitpick is that the key on the Request object is just |
I also prefer that, but a potential problem I see is that when we implement server-side interceptors, one of the possible designs is to just reuse the interceptor types that we use on the client. If an alternate design for interceptors is possible then I don't see a problem with naming this context. My efforts to get TS to work have been unsuccessful so far I tried a couple of designs and the ones we have for the client seem the most promising but nevertheless we can wait until at least we finalize the design |
It's certainly a bit more verbose, but what about |
106b8c2
to
2f2c937
Compare
2f2c937
to
fb45873
Compare
I changed the name to |
Add context values to clients. This adds support for
ContextValues
in clients viaCallOptions
andInterceptors
:Which can be accessed in an interceptor: