Merge pull request #19596 from lidizheng/compression-doc

Add documentation for compression enums
pull/19555/head
Lidi Zheng 5 years ago committed by GitHub
commit 6114760312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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