comparison src/http/v3/ngx_http_v3_tables.h @ 8807:0ac25efb2da3 quic

HTTP/3: quic-qpack term updates. Renamed header -> field per quic-qpack naming convention, in particular: - Header Field -> Field Line - Header Block -> (Encoded) Field Section - Without Name Reference -> With Literal Name - Header Acknowledgement -> Section Acknowledgment
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 01 Jul 2021 15:37:53 +0300
parents 6e2c23481abb
children
comparison
equal deleted inserted replaced
8806:f8ad3dd142ad 8807:0ac25efb2da3
15 15
16 16
17 typedef struct { 17 typedef struct {
18 ngx_str_t name; 18 ngx_str_t name;
19 ngx_str_t value; 19 ngx_str_t value;
20 } ngx_http_v3_header_t; 20 } ngx_http_v3_field_t;
21 21
22 22
23 typedef struct { 23 typedef struct {
24 ngx_http_v3_header_t **elts; 24 ngx_http_v3_field_t **elts;
25 ngx_uint_t nelts; 25 ngx_uint_t nelts;
26 ngx_uint_t base; 26 ngx_uint_t base;
27 size_t size; 27 size_t size;
28 size_t capacity; 28 size_t capacity;
29 } ngx_http_v3_dynamic_table_t; 29 } ngx_http_v3_dynamic_table_t;
34 ngx_uint_t index, ngx_str_t *value); 34 ngx_uint_t index, ngx_str_t *value);
35 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, 35 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name,
36 ngx_str_t *value); 36 ngx_str_t *value);
37 ngx_int_t ngx_http_v3_set_capacity(ngx_connection_t *c, ngx_uint_t capacity); 37 ngx_int_t ngx_http_v3_set_capacity(ngx_connection_t *c, ngx_uint_t capacity);
38 ngx_int_t ngx_http_v3_duplicate(ngx_connection_t *c, ngx_uint_t index); 38 ngx_int_t ngx_http_v3_duplicate(ngx_connection_t *c, ngx_uint_t index);
39 ngx_int_t ngx_http_v3_ack_header(ngx_connection_t *c, ngx_uint_t stream_id); 39 ngx_int_t ngx_http_v3_ack_section(ngx_connection_t *c, ngx_uint_t stream_id);
40 ngx_int_t ngx_http_v3_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc); 40 ngx_int_t ngx_http_v3_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc);
41 ngx_int_t ngx_http_v3_lookup_static(ngx_connection_t *c, ngx_uint_t index, 41 ngx_int_t ngx_http_v3_lookup_static(ngx_connection_t *c, ngx_uint_t index,
42 ngx_str_t *name, ngx_str_t *value); 42 ngx_str_t *name, ngx_str_t *value);
43 ngx_int_t ngx_http_v3_lookup(ngx_connection_t *c, ngx_uint_t index, 43 ngx_int_t ngx_http_v3_lookup(ngx_connection_t *c, ngx_uint_t index,
44 ngx_str_t *name, ngx_str_t *value); 44 ngx_str_t *name, ngx_str_t *value);