So to send header metadata with on each call we can use interceptors. 
Ex:https://github.com/grpc/grpc-java/blob/166108a9438c22d06eb3b371b5ad34a75e14787c/examples/src/main/java/io/grpc/examples/header/HeaderClientInterceptor.java

However, for bidirectional streaming case for a given stub/channel, the 
headers will only be sent once (via start() call). Is there a way to have 
every message after to also have the headers sent? 

I see that there is a 
sendMessage 
https://github.com/grpc/grpc-java/blob/166108a9438c22d06eb3b371b5ad34a75e14787c/core/src/main/java/io/grpc/ServerCall.java#L128
 
call, but it only takes in the request message as a parameter. So i'm 
wondering if there's a way to send other parameters in the header on each 
subsequent message call in the stream. 

Of course, I could add the parameters to the message body, but that could 
lead to a pretty large .proto definition. 

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/32099406-cbbb-4e43-9821-9128faa34205%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to