Replies: 2 comments
-
I found this example to add metadata for all channel requests: https://github.com/hyperium/tonic/blob/df8dd896daa8e722a1cebc61cd8e03aca6ecb64c/examples/src/authentication/client.rs Still wondering how that would work out for individual ones? |
Beta Was this translation helpful? Give feedback.
0 replies
-
metadata is only sent in the main request/response objects returned, for a streaming request you can't send metadata during the stream. Only before and after. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I need to add metadata to my request but when wrapping the original request struct into a new one with metadata the types of my auto-generated service method mismatch.
Do I need to build the client in a different way?
Does the metadata definition has to be added to the proto files?
Appreciate any help or ideas! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions