comparison src/http/v3/ngx_http_v3_tables.h @ 8433:b43e50f47b2e quic

HTTP/3: separate header files for existing source files.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 05 May 2021 15:09:23 +0300
parents
children 6e2c23481abb
comparison
equal deleted inserted replaced
8432:345370fdd32d 8433:b43e50f47b2e
1
2 /*
3 * Copyright (C) Roman Arutyunyan
4 * Copyright (C) Nginx, Inc.
5 */
6
7
8 #ifndef _NGX_HTTP_V3_TABLES_H_INCLUDED_
9 #define _NGX_HTTP_V3_TABLES_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_header_t;
21
22
23 typedef struct {
24 ngx_http_v3_header_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 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
33 ngx_uint_t index, ngx_str_t *value);
34 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name,
35 ngx_str_t *value);
36 ngx_int_t ngx_http_v3_set_capacity(ngx_connection_t *c, ngx_uint_t capacity);
37 ngx_int_t ngx_http_v3_duplicate(ngx_connection_t *c, ngx_uint_t index);
38 ngx_int_t ngx_http_v3_ack_header(ngx_connection_t *c, ngx_uint_t stream_id);
39 ngx_int_t ngx_http_v3_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc);
40 ngx_int_t ngx_http_v3_lookup_static(ngx_connection_t *c, ngx_uint_t index,
41 ngx_str_t *name, ngx_str_t *value);
42 ngx_int_t ngx_http_v3_lookup(ngx_connection_t *c, ngx_uint_t index,
43 ngx_str_t *name, ngx_str_t *value);
44 ngx_int_t ngx_http_v3_decode_insert_count(ngx_connection_t *c,
45 ngx_uint_t *insert_count);
46 ngx_int_t ngx_http_v3_check_insert_count(ngx_connection_t *c,
47 ngx_uint_t insert_count);
48 ngx_int_t ngx_http_v3_set_param(ngx_connection_t *c, uint64_t id,
49 uint64_t value);
50
51
52 #endif /* _NGX_HTTP_V3_TABLES_H_INCLUDED_ */