What option can I set for ScalaPB code generation where the methods for the service implementation have access to metadata?
Default options generate something like:
override def sayHello(req: HelloRequest) = {
...
}
And I would like something like:
override def sayHello(req: HelloRequest, metadata: Metadata) = {
...
}
--- Update December, 30th, 2021 ---
One reason is that I might want to retrieve the client's token from the metadata, so I can use that token to call another service.