Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.h @ 7977:336084ff943b
Moved Huffman coding out of HTTP/2.
ngx_http_v2_huff_decode.c and ngx_http_v2_huff_encode.c are renamed
to ngx_http_huff_decode.c and ngx_http_huff_encode.c.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 21 Dec 2021 07:54:16 +0300 |
parents | 61abb35bb8cf |
children | 011f5ebdb928 5c86189a1c1b |
comparison
equal
deleted
inserted
replaced
7976:76aea0ad78e5 | 7977:336084ff943b |
---|---|
309 ngx_int_t ngx_http_v2_add_header(ngx_http_v2_connection_t *h2c, | 309 ngx_int_t ngx_http_v2_add_header(ngx_http_v2_connection_t *h2c, |
310 ngx_http_v2_header_t *header); | 310 ngx_http_v2_header_t *header); |
311 ngx_int_t ngx_http_v2_table_size(ngx_http_v2_connection_t *h2c, size_t size); | 311 ngx_int_t ngx_http_v2_table_size(ngx_http_v2_connection_t *h2c, size_t size); |
312 | 312 |
313 | 313 |
314 ngx_int_t ngx_http_v2_huff_decode(u_char *state, u_char *src, size_t len, | |
315 u_char **dst, ngx_uint_t last, ngx_log_t *log); | |
316 size_t ngx_http_v2_huff_encode(u_char *src, size_t len, u_char *dst, | |
317 ngx_uint_t lower); | |
318 | |
319 | |
320 #define ngx_http_v2_prefix(bits) ((1 << (bits)) - 1) | 314 #define ngx_http_v2_prefix(bits) ((1 << (bits)) - 1) |
321 | 315 |
322 | 316 |
323 #if (NGX_HAVE_NONALIGNED) | 317 #if (NGX_HAVE_NONALIGNED) |
324 | 318 |