Open
Description
I am working with the graphql-mesh gRPC input handler and specifically with the gRPC reflection API as to get the protos dynamically from the gRPC service. My question is that we have several gRPC services and the reflection API requires to listen on the root path.
We use tools like grpcurl which have an option for a -reflect-header
and then our infrastructure knows when it sees that header to route that request to a specific gRPC service. Here is an example of grpcurl using the -reflect-header:
grpcurl -reflect-header grpc-service:proto.MyGrpcService -d '{"name": "mike"}' localhost:9090 proto.MyGrpcService/hello
My question is:
- Is there a way to send custom headers into the gRPC reflection request? Looking at the code this seems to be the underlying module which fetches the reflection information https://github.com/redhoyasa/grpc-reflection-js
I am not sure if to accomplish this the underlying library grpc-reflection-js needs to support this first