Skip to content
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

Explain how metadata can be accessed at the server side #165

Closed
derolf opened this issue Apr 1, 2019 · 6 comments
Closed

Explain how metadata can be accessed at the server side #165

derolf opened this issue Apr 1, 2019 · 6 comments

Comments

@derolf
Copy link

derolf commented Apr 1, 2019

Using the reactor version with Kotlin, a simple example how to get access to the metadata (headers) is possible inside the service call.

@rmichela
Copy link
Collaborator

rmichela commented Apr 1, 2019

Similar to #56

@derolf
Copy link
Author

derolf commented Apr 1, 2019

@cbornet
Copy link
Collaborator

cbornet commented Apr 1, 2019

Yes that's the way to do it. In the server interceptor, get the value from Metadata then put it in Context.

@rmichela
Copy link
Collaborator

rmichela commented Apr 3, 2019

@derolf Were we able to answer your question? If not, please re-open this issue. 😁

@rmichela rmichela closed this as completed Apr 3, 2019
@derolf
Copy link
Author

derolf commented Apr 3, 2019

As said, putting a paragraph in the docs would be nice...

@cbornet
Copy link
Collaborator

cbornet commented Apr 3, 2019

Oh, and you need to put the gRPC context in the Reactive sequence context !
As said by @rmichela this is the same as #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants