GRPC Core  9.0.0
Data Structures | Macros | Functions | Variables
hpack_encoder.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include "src/core/ext/transport/chttp2/transport/frame.h"
#include "src/core/lib/transport/metadata.h"
#include "src/core/lib/transport/metadata_batch.h"
#include "src/core/lib/transport/transport.h"

Go to the source code of this file.

Data Structures

struct  grpc_chttp2_hpack_compressor
 
struct  grpc_encode_header_options
 

Macros

#define GRPC_CHTTP2_HPACKC_NUM_VALUES_BITS   6
 
#define GRPC_CHTTP2_HPACKC_NUM_VALUES   (1 << GRPC_CHTTP2_HPACKC_NUM_VALUES_BITS)
 
#define GRPC_CHTTP2_HPACKC_INITIAL_TABLE_SIZE   4096
 
#define GRPC_CHTTP2_HPACKC_MAX_TABLE_SIZE   (1024 * 1024)
 

Functions

void grpc_chttp2_hpack_compressor_init (grpc_chttp2_hpack_compressor *c)
 
void grpc_chttp2_hpack_compressor_destroy (grpc_chttp2_hpack_compressor *c)
 
void grpc_chttp2_hpack_compressor_set_max_table_size (grpc_chttp2_hpack_compressor *c, uint32_t max_table_size)
 
void grpc_chttp2_hpack_compressor_set_max_usable_size (grpc_chttp2_hpack_compressor *c, uint32_t max_table_size)
 
void grpc_chttp2_encode_header (grpc_chttp2_hpack_compressor *c, grpc_mdelem **extra_headers, size_t extra_headers_size, grpc_metadata_batch *metadata, const grpc_encode_header_options *options, grpc_slice_buffer *outbuf)
 

Variables

grpc_core::TraceFlag grpc_http_trace
 

Macro Definition Documentation

◆ GRPC_CHTTP2_HPACKC_INITIAL_TABLE_SIZE

#define GRPC_CHTTP2_HPACKC_INITIAL_TABLE_SIZE   4096

◆ GRPC_CHTTP2_HPACKC_MAX_TABLE_SIZE

#define GRPC_CHTTP2_HPACKC_MAX_TABLE_SIZE   (1024 * 1024)

◆ GRPC_CHTTP2_HPACKC_NUM_VALUES

#define GRPC_CHTTP2_HPACKC_NUM_VALUES   (1 << GRPC_CHTTP2_HPACKC_NUM_VALUES_BITS)

◆ GRPC_CHTTP2_HPACKC_NUM_VALUES_BITS

#define GRPC_CHTTP2_HPACKC_NUM_VALUES_BITS   6

Function Documentation

◆ grpc_chttp2_encode_header()

void grpc_chttp2_encode_header ( grpc_chttp2_hpack_compressor c,
grpc_mdelem **  extra_headers,
size_t  extra_headers_size,
grpc_metadata_batch metadata,
const grpc_encode_header_options options,
grpc_slice_buffer outbuf 
)

◆ grpc_chttp2_hpack_compressor_destroy()

void grpc_chttp2_hpack_compressor_destroy ( grpc_chttp2_hpack_compressor c)

◆ grpc_chttp2_hpack_compressor_init()

void grpc_chttp2_hpack_compressor_init ( grpc_chttp2_hpack_compressor c)

◆ grpc_chttp2_hpack_compressor_set_max_table_size()

void grpc_chttp2_hpack_compressor_set_max_table_size ( grpc_chttp2_hpack_compressor c,
uint32_t  max_table_size 
)

◆ grpc_chttp2_hpack_compressor_set_max_usable_size()

void grpc_chttp2_hpack_compressor_set_max_usable_size ( grpc_chttp2_hpack_compressor c,
uint32_t  max_table_size 
)

Variable Documentation

◆ grpc_http_trace

grpc_core::TraceFlag grpc_http_trace