GRPC C++  1.0.0
Data Structures | Macros | Typedefs | Enumerations
compression_types.h File Reference
#include <grpc/impl/codegen/port_platform.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  grpc_compression_options
 

Macros

#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. More...
 
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM   "grpc.default_compression_algorithm"
 Default compression algorithm for the channel. More...
 
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL   "grpc.default_compression_level"
 Default compression level for the channel. More...
 
#define GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET   "grpc.compression_enabled_algorithms_bitset"
 Compression algorithms supported by the channel. More...
 

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
}
 Compression levels allow a party with knowledge of its peer's accepted encodings to request compression in an abstract way. More...
 

Macro Definition Documentation

#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.

Typedef Documentation

Enumeration Type Documentation

Enumerator
GRPC_COMPRESS_NONE 
GRPC_COMPRESS_DEFLATE 
GRPC_COMPRESS_GZIP 
GRPC_COMPRESS_ALGORITHMS_COUNT 

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