About io.grpc.Server#SERVER_CONTEXT_KEY

Skip to first unread message

Mike Zhao

Feb 27, 2021, 1:46:41 AMFeb 27
to grpc.io
Quote from comment on that field:
"Key for accessing the Server instance inside server RPC Context. It's unclear to us what users would need. If you think you need to use this, please file an issue for us to discuss a public API."

Now I'm reaching out to ask for help:
  1. as io.grpc.InternalServer#SERVER_CONTEXT_KEY can use it. May the "external"?
  2. actually not interested in Server itself at all, but the io.grpc.Server#getImmutableServices. Is there any other way to get it ONLY in knowing "I'm on the Server side"?
Working on a simplistic http-grpc-spring-web transcoder at https://github.com/kenix/http-grpc-spring-web and needs the list of ServerMethodDefinitions to setup the pipes properly.

Any general suggestions are also appreciated.
Reply all
Reply to author
0 new messages