I have a gRPC client (in Java) sending requests to a server (written in Python). I need to enable both request compression and response compression. There is good documentation on how to enable compression on the client side. I have managed to compress the request like so:
response = blockingStub.withCompression("gzip").method(request)
However, I cannot find any documentation on how to compress the server response (also). It seems that there is almost no documentation (or examples) on how to use gRPC message compression in Python. How can I enable server-side compression? The call is a simple RPC call (no streaming).