grpclib
grpclib copied to clipboard
Looking for ability to set HTTP proxy
I'm in the process of migrating from grpcio to grpclib due to the superior async support offered by grpclib
The grpcio API has the capability of specifying options to the underlying channel, specifically the grpc.http_proxy option that allows to perform transport proxying of the gRPC request. Using grpcio syntax this would look like:
grpc.aio.secure_channel(
target=GRPC_TARGET,
options=[("grpc.http_proxy", "some-proxy:50051")]
)
with the grpc.http_proxy piped into the C implementation here where it is consumed by this method
I have some questions about this use-case with grpclib:
- Is it supported at all? I cannot find any documentation on this neither on
readthedocsnor in the GH issues - If not, is it something that is planned for development?
- If not, is it something that can be readily implemented?
- If yes, is it something that I could pick up and implement?