1 /*
2  * Copyright (c) 2014 DeNA Co., Ltd.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to
6  * deal in the Software without restriction, including without limitation the
7  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8  * sell copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20  * IN THE SOFTWARE.
21  */
22 
23 /* DO NOT EDIT! generated by tokens.pl */
24 #ifndef h2o__token_table_h
25 #define h2o__token_table_h
26 
27 #define H2O_TOKEN_AUTHORITY (h2o__tokens + 0)
28 #define H2O_TOKEN_METHOD (h2o__tokens + 1)
29 #define H2O_TOKEN_PATH (h2o__tokens + 2)
30 #define H2O_TOKEN_SCHEME (h2o__tokens + 3)
31 #define H2O_TOKEN_STATUS (h2o__tokens + 4)
32 #define H2O_TOKEN_ACCEPT (h2o__tokens + 5)
33 #define H2O_TOKEN_ACCEPT_CHARSET (h2o__tokens + 6)
34 #define H2O_TOKEN_ACCEPT_ENCODING (h2o__tokens + 7)
35 #define H2O_TOKEN_ACCEPT_LANGUAGE (h2o__tokens + 8)
36 #define H2O_TOKEN_ACCEPT_RANGES (h2o__tokens + 9)
37 #define H2O_TOKEN_ACCESS_CONTROL_ALLOW_CREDENTIALS (h2o__tokens + 10)
38 #define H2O_TOKEN_ACCESS_CONTROL_ALLOW_HEADERS (h2o__tokens + 11)
39 #define H2O_TOKEN_ACCESS_CONTROL_ALLOW_METHODS (h2o__tokens + 12)
40 #define H2O_TOKEN_ACCESS_CONTROL_ALLOW_ORIGIN (h2o__tokens + 13)
41 #define H2O_TOKEN_ACCESS_CONTROL_EXPOSE_HEADERS (h2o__tokens + 14)
42 #define H2O_TOKEN_ACCESS_CONTROL_REQUEST_HEADERS (h2o__tokens + 15)
43 #define H2O_TOKEN_ACCESS_CONTROL_REQUEST_METHOD (h2o__tokens + 16)
44 #define H2O_TOKEN_AGE (h2o__tokens + 17)
45 #define H2O_TOKEN_ALLOW (h2o__tokens + 18)
46 #define H2O_TOKEN_ALT_SVC (h2o__tokens + 19)
47 #define H2O_TOKEN_AUTHORIZATION (h2o__tokens + 20)
48 #define H2O_TOKEN_CACHE_CONTROL (h2o__tokens + 21)
49 #define H2O_TOKEN_CACHE_DIGEST (h2o__tokens + 22)
50 #define H2O_TOKEN_CONNECTION (h2o__tokens + 23)
51 #define H2O_TOKEN_CONTENT_DISPOSITION (h2o__tokens + 24)
52 #define H2O_TOKEN_CONTENT_ENCODING (h2o__tokens + 25)
53 #define H2O_TOKEN_CONTENT_LANGUAGE (h2o__tokens + 26)
54 #define H2O_TOKEN_CONTENT_LENGTH (h2o__tokens + 27)
55 #define H2O_TOKEN_CONTENT_LOCATION (h2o__tokens + 28)
56 #define H2O_TOKEN_CONTENT_RANGE (h2o__tokens + 29)
57 #define H2O_TOKEN_CONTENT_SECURITY_POLICY (h2o__tokens + 30)
58 #define H2O_TOKEN_CONTENT_TYPE (h2o__tokens + 31)
59 #define H2O_TOKEN_COOKIE (h2o__tokens + 32)
60 #define H2O_TOKEN_DATAGRAM_FLOW_ID (h2o__tokens + 33)
61 #define H2O_TOKEN_DATE (h2o__tokens + 34)
62 #define H2O_TOKEN_EARLY_DATA (h2o__tokens + 35)
63 #define H2O_TOKEN_ETAG (h2o__tokens + 36)
64 #define H2O_TOKEN_EXPECT (h2o__tokens + 37)
65 #define H2O_TOKEN_EXPECT_CT (h2o__tokens + 38)
66 #define H2O_TOKEN_EXPIRES (h2o__tokens + 39)
67 #define H2O_TOKEN_FORWARDED (h2o__tokens + 40)
68 #define H2O_TOKEN_FROM (h2o__tokens + 41)
69 #define H2O_TOKEN_HOST (h2o__tokens + 42)
70 #define H2O_TOKEN_HTTP2_SETTINGS (h2o__tokens + 43)
71 #define H2O_TOKEN_IF_MATCH (h2o__tokens + 44)
72 #define H2O_TOKEN_IF_MODIFIED_SINCE (h2o__tokens + 45)
73 #define H2O_TOKEN_IF_NONE_MATCH (h2o__tokens + 46)
74 #define H2O_TOKEN_IF_RANGE (h2o__tokens + 47)
75 #define H2O_TOKEN_IF_UNMODIFIED_SINCE (h2o__tokens + 48)
76 #define H2O_TOKEN_KEEP_ALIVE (h2o__tokens + 49)
77 #define H2O_TOKEN_LAST_MODIFIED (h2o__tokens + 50)
78 #define H2O_TOKEN_LINK (h2o__tokens + 51)
79 #define H2O_TOKEN_LOCATION (h2o__tokens + 52)
80 #define H2O_TOKEN_MAX_FORWARDS (h2o__tokens + 53)
81 #define H2O_TOKEN_NO_EARLY_HINTS (h2o__tokens + 54)
82 #define H2O_TOKEN_ORIGIN (h2o__tokens + 55)
83 #define H2O_TOKEN_PRIORITY (h2o__tokens + 56)
84 #define H2O_TOKEN_PROXY_AUTHENTICATE (h2o__tokens + 57)
85 #define H2O_TOKEN_PROXY_AUTHORIZATION (h2o__tokens + 58)
86 #define H2O_TOKEN_PURPOSE (h2o__tokens + 59)
87 #define H2O_TOKEN_RANGE (h2o__tokens + 60)
88 #define H2O_TOKEN_REFERER (h2o__tokens + 61)
89 #define H2O_TOKEN_REFRESH (h2o__tokens + 62)
90 #define H2O_TOKEN_RETRY_AFTER (h2o__tokens + 63)
91 #define H2O_TOKEN_SERVER (h2o__tokens + 64)
92 #define H2O_TOKEN_SET_COOKIE (h2o__tokens + 65)
93 #define H2O_TOKEN_STRICT_TRANSPORT_SECURITY (h2o__tokens + 66)
94 #define H2O_TOKEN_TE (h2o__tokens + 67)
95 #define H2O_TOKEN_TIMING_ALLOW_ORIGIN (h2o__tokens + 68)
96 #define H2O_TOKEN_TRANSFER_ENCODING (h2o__tokens + 69)
97 #define H2O_TOKEN_UPGRADE (h2o__tokens + 70)
98 #define H2O_TOKEN_UPGRADE_INSECURE_REQUESTS (h2o__tokens + 71)
99 #define H2O_TOKEN_USER_AGENT (h2o__tokens + 72)
100 #define H2O_TOKEN_VARY (h2o__tokens + 73)
101 #define H2O_TOKEN_VIA (h2o__tokens + 74)
102 #define H2O_TOKEN_WWW_AUTHENTICATE (h2o__tokens + 75)
103 #define H2O_TOKEN_X_COMPRESS_HINT (h2o__tokens + 76)
104 #define H2O_TOKEN_X_CONTENT_TYPE_OPTIONS (h2o__tokens + 77)
105 #define H2O_TOKEN_X_FORWARDED_FOR (h2o__tokens + 78)
106 #define H2O_TOKEN_X_FRAME_OPTIONS (h2o__tokens + 79)
107 #define H2O_TOKEN_X_REPROXY_URL (h2o__tokens + 80)
108 #define H2O_TOKEN_X_TRAFFIC (h2o__tokens + 81)
109 #define H2O_TOKEN_X_XSS_PROTECTION (h2o__tokens + 82)
110 
111 extern const h2o_hpack_static_table_entry_t h2o_hpack_static_table[61];
112 extern const h2o_qpack_static_table_entry_t h2o_qpack_static_table[99];
113 
114 typedef int32_t (*h2o_qpack_lookup_static_cb)(h2o_iovec_t value, int *is_exact);
115 extern const h2o_qpack_lookup_static_cb h2o_qpack_lookup_static[83];
116 
117 int32_t h2o_qpack_lookup_authority(h2o_iovec_t value, int *is_exact);
118 int32_t h2o_qpack_lookup_method(h2o_iovec_t value, int *is_exact);
119 int32_t h2o_qpack_lookup_path(h2o_iovec_t value, int *is_exact);
120 int32_t h2o_qpack_lookup_scheme(h2o_iovec_t value, int *is_exact);
121 int32_t h2o_qpack_lookup_status(h2o_iovec_t value, int *is_exact);
122 int32_t h2o_qpack_lookup_accept(h2o_iovec_t value, int *is_exact);
123 int32_t h2o_qpack_lookup_accept_charset(h2o_iovec_t value, int *is_exact);
124 int32_t h2o_qpack_lookup_accept_encoding(h2o_iovec_t value, int *is_exact);
125 int32_t h2o_qpack_lookup_accept_language(h2o_iovec_t value, int *is_exact);
126 int32_t h2o_qpack_lookup_accept_ranges(h2o_iovec_t value, int *is_exact);
127 int32_t h2o_qpack_lookup_access_control_allow_credentials(h2o_iovec_t value, int *is_exact);
128 int32_t h2o_qpack_lookup_access_control_allow_headers(h2o_iovec_t value, int *is_exact);
129 int32_t h2o_qpack_lookup_access_control_allow_methods(h2o_iovec_t value, int *is_exact);
130 int32_t h2o_qpack_lookup_access_control_allow_origin(h2o_iovec_t value, int *is_exact);
131 int32_t h2o_qpack_lookup_access_control_expose_headers(h2o_iovec_t value, int *is_exact);
132 int32_t h2o_qpack_lookup_access_control_request_headers(h2o_iovec_t value, int *is_exact);
133 int32_t h2o_qpack_lookup_access_control_request_method(h2o_iovec_t value, int *is_exact);
134 int32_t h2o_qpack_lookup_age(h2o_iovec_t value, int *is_exact);
135 int32_t h2o_qpack_lookup_allow(h2o_iovec_t value, int *is_exact);
136 int32_t h2o_qpack_lookup_alt_svc(h2o_iovec_t value, int *is_exact);
137 int32_t h2o_qpack_lookup_authorization(h2o_iovec_t value, int *is_exact);
138 int32_t h2o_qpack_lookup_cache_control(h2o_iovec_t value, int *is_exact);
139 int32_t h2o_qpack_lookup_cache_digest(h2o_iovec_t value, int *is_exact);
140 int32_t h2o_qpack_lookup_connection(h2o_iovec_t value, int *is_exact);
141 int32_t h2o_qpack_lookup_content_disposition(h2o_iovec_t value, int *is_exact);
142 int32_t h2o_qpack_lookup_content_encoding(h2o_iovec_t value, int *is_exact);
143 int32_t h2o_qpack_lookup_content_language(h2o_iovec_t value, int *is_exact);
144 int32_t h2o_qpack_lookup_content_length(h2o_iovec_t value, int *is_exact);
145 int32_t h2o_qpack_lookup_content_location(h2o_iovec_t value, int *is_exact);
146 int32_t h2o_qpack_lookup_content_range(h2o_iovec_t value, int *is_exact);
147 int32_t h2o_qpack_lookup_content_security_policy(h2o_iovec_t value, int *is_exact);
148 int32_t h2o_qpack_lookup_content_type(h2o_iovec_t value, int *is_exact);
149 int32_t h2o_qpack_lookup_cookie(h2o_iovec_t value, int *is_exact);
150 int32_t h2o_qpack_lookup_datagram_flow_id(h2o_iovec_t value, int *is_exact);
151 int32_t h2o_qpack_lookup_date(h2o_iovec_t value, int *is_exact);
152 int32_t h2o_qpack_lookup_early_data(h2o_iovec_t value, int *is_exact);
153 int32_t h2o_qpack_lookup_etag(h2o_iovec_t value, int *is_exact);
154 int32_t h2o_qpack_lookup_expect(h2o_iovec_t value, int *is_exact);
155 int32_t h2o_qpack_lookup_expect_ct(h2o_iovec_t value, int *is_exact);
156 int32_t h2o_qpack_lookup_expires(h2o_iovec_t value, int *is_exact);
157 int32_t h2o_qpack_lookup_forwarded(h2o_iovec_t value, int *is_exact);
158 int32_t h2o_qpack_lookup_from(h2o_iovec_t value, int *is_exact);
159 int32_t h2o_qpack_lookup_host(h2o_iovec_t value, int *is_exact);
160 int32_t h2o_qpack_lookup_http2_settings(h2o_iovec_t value, int *is_exact);
161 int32_t h2o_qpack_lookup_if_match(h2o_iovec_t value, int *is_exact);
162 int32_t h2o_qpack_lookup_if_modified_since(h2o_iovec_t value, int *is_exact);
163 int32_t h2o_qpack_lookup_if_none_match(h2o_iovec_t value, int *is_exact);
164 int32_t h2o_qpack_lookup_if_range(h2o_iovec_t value, int *is_exact);
165 int32_t h2o_qpack_lookup_if_unmodified_since(h2o_iovec_t value, int *is_exact);
166 int32_t h2o_qpack_lookup_keep_alive(h2o_iovec_t value, int *is_exact);
167 int32_t h2o_qpack_lookup_last_modified(h2o_iovec_t value, int *is_exact);
168 int32_t h2o_qpack_lookup_link(h2o_iovec_t value, int *is_exact);
169 int32_t h2o_qpack_lookup_location(h2o_iovec_t value, int *is_exact);
170 int32_t h2o_qpack_lookup_max_forwards(h2o_iovec_t value, int *is_exact);
171 int32_t h2o_qpack_lookup_no_early_hints(h2o_iovec_t value, int *is_exact);
172 int32_t h2o_qpack_lookup_origin(h2o_iovec_t value, int *is_exact);
173 int32_t h2o_qpack_lookup_priority(h2o_iovec_t value, int *is_exact);
174 int32_t h2o_qpack_lookup_proxy_authenticate(h2o_iovec_t value, int *is_exact);
175 int32_t h2o_qpack_lookup_proxy_authorization(h2o_iovec_t value, int *is_exact);
176 int32_t h2o_qpack_lookup_purpose(h2o_iovec_t value, int *is_exact);
177 int32_t h2o_qpack_lookup_range(h2o_iovec_t value, int *is_exact);
178 int32_t h2o_qpack_lookup_referer(h2o_iovec_t value, int *is_exact);
179 int32_t h2o_qpack_lookup_refresh(h2o_iovec_t value, int *is_exact);
180 int32_t h2o_qpack_lookup_retry_after(h2o_iovec_t value, int *is_exact);
181 int32_t h2o_qpack_lookup_server(h2o_iovec_t value, int *is_exact);
182 int32_t h2o_qpack_lookup_set_cookie(h2o_iovec_t value, int *is_exact);
183 int32_t h2o_qpack_lookup_strict_transport_security(h2o_iovec_t value, int *is_exact);
184 int32_t h2o_qpack_lookup_te(h2o_iovec_t value, int *is_exact);
185 int32_t h2o_qpack_lookup_timing_allow_origin(h2o_iovec_t value, int *is_exact);
186 int32_t h2o_qpack_lookup_transfer_encoding(h2o_iovec_t value, int *is_exact);
187 int32_t h2o_qpack_lookup_upgrade(h2o_iovec_t value, int *is_exact);
188 int32_t h2o_qpack_lookup_upgrade_insecure_requests(h2o_iovec_t value, int *is_exact);
189 int32_t h2o_qpack_lookup_user_agent(h2o_iovec_t value, int *is_exact);
190 int32_t h2o_qpack_lookup_vary(h2o_iovec_t value, int *is_exact);
191 int32_t h2o_qpack_lookup_via(h2o_iovec_t value, int *is_exact);
192 int32_t h2o_qpack_lookup_www_authenticate(h2o_iovec_t value, int *is_exact);
193 int32_t h2o_qpack_lookup_x_compress_hint(h2o_iovec_t value, int *is_exact);
194 int32_t h2o_qpack_lookup_x_content_type_options(h2o_iovec_t value, int *is_exact);
195 int32_t h2o_qpack_lookup_x_forwarded_for(h2o_iovec_t value, int *is_exact);
196 int32_t h2o_qpack_lookup_x_frame_options(h2o_iovec_t value, int *is_exact);
197 int32_t h2o_qpack_lookup_x_reproxy_url(h2o_iovec_t value, int *is_exact);
198 int32_t h2o_qpack_lookup_x_traffic(h2o_iovec_t value, int *is_exact);
199 int32_t h2o_qpack_lookup_x_xss_protection(h2o_iovec_t value, int *is_exact);
200 
201 #endif
202