Add documentation for compression enums

pull/19596/head
Lidi Zheng 6 years ago
parent 0da6fcfa05
commit 11e60b8f30
  1. 6
      src/python/grpcio/grpc/__init__.py

@ -1856,10 +1856,16 @@ def _create_servicer_context(rpc_event, state, request_deserializer):
context._finalize_state() # pylint: disable=protected-access
@enum.unique
class Compression(enum.IntEnum):
"""Indicates the compression method to be used for an RPC.
This enumeration is part of an EXPERIMENTAL API.
Attributes:
NoCompression: Do not use compression algorithm.
Deflate: Use "Deflate" compression algorithm.
Gzip: Use "Gzip" compression algorithm.
"""
NoCompression = _compression.NoCompression
Deflate = _compression.Deflate

Loading…
Cancel
Save