comparison src/http/v2/ngx_http_v2.h @ 6395:ba3c2ca21aa5

HTTP/2: implemented HPACK Huffman encoding for response headers. This reduces the size of headers by over 30% on average. Based on the patch by Vlad Krasnov: http://mailman.nginx.org/pipermail/nginx-devel/2015-December/007682.html
author Valentin Bartenev <vbart@nginx.com>
date Thu, 11 Feb 2016 15:35:36 +0300
parents d2dc8bc0394a
children 8ec349bb60b2
comparison
equal deleted inserted replaced
6394:5fe617f38222 6395:ba3c2ca21aa5
272 ngx_int_t ngx_http_v2_table_size(ngx_http_v2_connection_t *h2c, size_t size); 272 ngx_int_t ngx_http_v2_table_size(ngx_http_v2_connection_t *h2c, size_t size);
273 273
274 274
275 ngx_int_t ngx_http_v2_huff_decode(u_char *state, u_char *src, size_t len, 275 ngx_int_t ngx_http_v2_huff_decode(u_char *state, u_char *src, size_t len,
276 u_char **dst, ngx_uint_t last, ngx_log_t *log); 276 u_char **dst, ngx_uint_t last, ngx_log_t *log);
277 size_t ngx_http_v2_huff_encode(u_char *src, size_t len, u_char *dst,
278 ngx_uint_t lower);
277 279
278 280
279 #define ngx_http_v2_prefix(bits) ((1 << (bits)) - 1) 281 #define ngx_http_v2_prefix(bits) ((1 << (bits)) - 1)
280 282
281 283