VLC 4.0.0-dev
Loading...
Searching...
No Matches

HTTP/2 header compression (HPACK) More...

Collaboration diagram for HPACK compression:

Functions

struct hpack_decoderhpack_decode_init (size_t header_table_size)
 
void hpack_decode_destroy (struct hpack_decoder *)
 
int hpack_decode (struct hpack_decoder *dec, const uint8_t *data, size_t length, char *headers[][2], unsigned max)
 
size_t hpack_encode_hdr_neverindex (uint8_t *restrict buf, size_t size, const char *name, const char *value)
 
size_t hpack_encode (uint8_t *restrict buf, size_t size, const char *const headers[][2], unsigned count)
 

Detailed Description

HTTP/2 header compression (HPACK)

Function Documentation

◆ hpack_decode()

int hpack_decode ( struct hpack_decoder dec,
const uint8_t *  data,
size_t  length,
char *  headers[][2],
unsigned  max 
)

References count, hpack_decode_hdr(), and name.

Referenced by vlc_h2_parse_headers_end().

◆ hpack_decode_destroy()

void hpack_decode_destroy ( struct hpack_decoder dec)

◆ hpack_decode_init()

struct hpack_decoder * hpack_decode_init ( size_t  header_table_size)

◆ hpack_encode()

size_t hpack_encode ( uint8_t *restrict  buf,
size_t  size,
const char *const  headers[][2],
unsigned  count 
)

◆ hpack_encode_hdr_neverindex()

size_t hpack_encode_hdr_neverindex ( uint8_t *restrict  buf,
size_t  size,
const char *  name,
const char *  value 
)