我在scala/java中找不到任何服务器端访问grpc请求上下文的例子(使用scalapb/grpc.io公司). 我可以在果朗找到很多例子。我在akka grpc中找到了一些,但我使用的是scalapb和grpc.io公司
如果有人知道github中的一个repo使用它,或者可以规划访问它所需的步骤,那么您会非常感谢您
在grpcjava和ScalaPB中,您可以通过客户机和服务器拦截器访问请求的元数据。参见: https://grpc.github.io/grpc-java/javadoc/io/grpc/ServerInterceptor.html
https://github.com/saturnism/grpc-java-by-example/tree/master/metadata-context-example/src/main/java/com/example/grpc/server