vmagamedov / grpclib

Pure-Python gRPC implementation for asyncio
http://grpclib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
936 stars 92 forks source link

Looking for ability to set HTTP proxy #191

Open tsmith023 opened 4 months ago

tsmith023 commented 4 months ago

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:

  1. Is it supported at all? I cannot find any documentation on this neither on readthedocs nor in the GH issues
  2. If not, is it something that is planned for development?
  3. If not, is it something that can be readily implemented?
  4. If yes, is it something that I could pick up and implement?