Go to the documentation of this file.
19 #ifndef GRPC_IMPL_COMPRESSION_TYPES_H
20 #define GRPC_IMPL_COMPRESSION_TYPES_H
33 #define GRPC_COMPRESSION_REQUEST_ALGORITHM_MD_KEY \
34 "grpc-internal-encoding-request"
42 #define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM \
43 "grpc.default_compression_algorithm"
46 #define GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL "grpc.default_compression_level"
54 #define GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET \
55 "grpc.compression_enabled_algorithms_bitset"
@ GRPC_COMPRESS_LEVEL_MED
Definition: compression_types.h:75
@ GRPC_COMPRESS_DEFLATE
Definition: compression_types.h:62
uint32_t enabled_algorithms_bitset
All algs are enabled by default.
Definition: compression_types.h:84
grpc_compression_algorithm
The various compression algorithms supported by gRPC (not sorted by compression level)
Definition: compression_types.h:60
int is_set
Definition: compression_types.h:92
grpc_compression_level level
Definition: compression_types.h:93
struct grpc_compression_options grpc_compression_options
Definition: compression_types.h:80
@ GRPC_COMPRESS_LEVEL_COUNT
Definition: compression_types.h:77
@ GRPC_COMPRESS_NONE
Definition: compression_types.h:61
The default message compression algorithm.
Definition: compression_types.h:99
struct grpc_compression_options::grpc_compression_options_default_level default_level
@ GRPC_COMPRESS_LEVEL_NONE
Definition: compression_types.h:73
struct grpc_compression_options::grpc_compression_options_default_algorithm default_algorithm
@ GRPC_COMPRESS_LEVEL_HIGH
Definition: compression_types.h:76
@ GRPC_COMPRESS_LEVEL_LOW
Definition: compression_types.h:74
grpc_compression_level
Compression levels allow a party with knowledge of its peer's accepted encodings to request compressi...
Definition: compression_types.h:72
@ GRPC_COMPRESS_ALGORITHMS_COUNT
Definition: compression_types.h:65
int is_set
Definition: compression_types.h:100
@ GRPC_COMPRESS_GZIP
Definition: compression_types.h:63
The default compression level.
Definition: compression_types.h:91
grpc_compression_algorithm algorithm
Definition: compression_types.h:101