Classes | Macros | Typedefs | Enumerations
compression_types.h File Reference
#include <grpc/impl/codegen/port_platform.h>
Include dependency graph for compression_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  grpc_compression_options
 
struct  grpc_compression_options::grpc_compression_options_default_algorithm
 
struct  grpc_compression_options::grpc_compression_options_default_level
 

Macros

#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM   "grpc.default_compression_algorithm"
 
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL   "grpc.default_compression_level"
 
#define GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET   "grpc.compression_enabled_algorithms_bitset"
 
#define GRPC_COMPRESSION_REQUEST_ALGORITHM_MD_KEY   "grpc-internal-encoding-request"
 

Typedefs

typedef struct grpc_compression_options grpc_compression_options
 

Enumerations

enum  grpc_compression_algorithm { GRPC_COMPRESS_NONE = 0, GRPC_COMPRESS_DEFLATE, GRPC_COMPRESS_GZIP, GRPC_COMPRESS_ALGORITHMS_COUNT }
 
enum  grpc_compression_level {
  GRPC_COMPRESS_LEVEL_NONE = 0, GRPC_COMPRESS_LEVEL_LOW, GRPC_COMPRESS_LEVEL_MED, GRPC_COMPRESS_LEVEL_HIGH,
  GRPC_COMPRESS_LEVEL_COUNT
}
 

Macro Definition Documentation

◆ GRPC_COMPRESSION_REQUEST_ALGORITHM_MD_KEY

#define GRPC_COMPRESSION_REQUEST_ALGORITHM_MD_KEY   "grpc-internal-encoding-request"

To be used as initial metadata key for the request of a concrete compression algorithm

Definition at line 33 of file compression_types.h.

Typedef Documentation

◆ grpc_compression_options

Enumeration Type Documentation

◆ grpc_compression_algorithm

The various compression algorithms supported by gRPC (not sorted by compression level)

Enumerator
GRPC_COMPRESS_NONE 
GRPC_COMPRESS_DEFLATE 
GRPC_COMPRESS_GZIP 
GRPC_COMPRESS_ALGORITHMS_COUNT 

Definition at line 60 of file compression_types.h.

◆ grpc_compression_level

Compression levels allow a party with knowledge of its peer's accepted encodings to request compression in an abstract way. The level-algorithm mapping is performed internally and depends on the peer's supported compression algorithms.

Enumerator
GRPC_COMPRESS_LEVEL_NONE 
GRPC_COMPRESS_LEVEL_LOW 
GRPC_COMPRESS_LEVEL_MED 
GRPC_COMPRESS_LEVEL_HIGH 
GRPC_COMPRESS_LEVEL_COUNT 

Definition at line 72 of file compression_types.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:07