But the metadata value depends on the response. So I need some way to pass data from rpc server call to server interceptor.
In Golang, the metadata can be set easily in the rpc call `grpc.SetTrailer` after processing but in java there is no way to do it in rpc call. So I am trying to use server interceptor for the same.
Can someone help?
Kun Zhang
unread,
Aug 7, 2019, 2:05:45 PM8/7/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
You can also override sendMessage() on the forwarding ServerCall, save the information you need from the response, and use it in the overridden close().