Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_table.h @ 8925:18d23ed15eef quic
HTTP/3: renamed files.
ngx_http_v3_tables.h and ngx_http_v3_tables.c are renamed to
ngx_http_v3_table.h and ngx_http_v3_table.c to better match HTTP/2 code.
ngx_http_v3_streams.h and ngx_http_v3_streams.c are renamed to
ngx_http_v3_uni.h and ngx_http_v3_uni.c to better match their content.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 07 Dec 2021 13:01:28 +0300 |
parents | src/http/v3/ngx_http_v3_tables.h@0ac25efb2da3 |
children | 81a3429db8b0 |
comparison
equal
deleted
inserted
replaced
8924:d6ef13c5fd8e | 8925:18d23ed15eef |
---|---|
1 | |
2 /* | |
3 * Copyright (C) Roman Arutyunyan | |
4 * Copyright (C) Nginx, Inc. | |
5 */ | |
6 | |
7 | |
8 #ifndef _NGX_HTTP_V3_TABLE_H_INCLUDED_ | |
9 #define _NGX_HTTP_V3_TABLE_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 #include <ngx_http.h> | |
15 | |
16 | |
17 typedef struct { | |
18 ngx_str_t name; | |
19 ngx_str_t value; | |
20 } ngx_http_v3_field_t; | |
21 | |
22 | |
23 typedef struct { | |
24 ngx_http_v3_field_t **elts; | |
25 ngx_uint_t nelts; | |
26 ngx_uint_t base; | |
27 size_t size; | |
28 size_t capacity; | |
29 } ngx_http_v3_dynamic_table_t; | |
30 | |
31 | |
32 void ngx_http_v3_cleanup_table(ngx_http_v3_session_t *h3c); | |
33 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, | |
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, | |
36 ngx_str_t *value); | |
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); | |
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); | |
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); | |
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); | |
45 ngx_int_t ngx_http_v3_decode_insert_count(ngx_connection_t *c, | |
46 ngx_uint_t *insert_count); | |
47 ngx_int_t ngx_http_v3_check_insert_count(ngx_connection_t *c, | |
48 ngx_uint_t insert_count); | |
49 ngx_int_t ngx_http_v3_set_param(ngx_connection_t *c, uint64_t id, | |
50 uint64_t value); | |
51 | |
52 | |
53 #endif /* _NGX_HTTP_V3_TABLE_H_INCLUDED_ */ |