blob: c396c1e0b5aa1bd54f3f1b270cd0891a862ff220 [file] [log] [blame]
Craig Tiller2e7687c2015-11-18 14:56:46 -08001/*
Craig Tiller6169d5f2016-03-31 07:46:18 -07002 * Copyright 2015, Google Inc.
Craig Tiller2e7687c2015-11-18 14:56:46 -08003 * All rights reserved.
David Garcia Quintas5dde14c2016-07-28 17:29:27 -07004 *
Craig Tiller2e7687c2015-11-18 14:56:46 -08005 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
David Garcia Quintas5dde14c2016-07-28 17:29:27 -07008 *
Bogdan Drutuc7ea4392016-02-09 14:41:22 -08009 * * Redistributions of source code must retain the above copyright
Craig Tiller2e7687c2015-11-18 14:56:46 -080010 * notice, this list of conditions and the following disclaimer.
Bogdan Drutuc7ea4392016-02-09 14:41:22 -080011 * * Redistributions in binary form must reproduce the above
Craig Tiller2e7687c2015-11-18 14:56:46 -080012 * copyright notice, this list of conditions and the following disclaimer
13 * in the documentation and/or other materials provided with the
14 * distribution.
Bogdan Drutuc7ea4392016-02-09 14:41:22 -080015 * * Neither the name of Google Inc. nor the names of its
Craig Tiller2e7687c2015-11-18 14:56:46 -080016 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070018 *
Craig Tiller2e7687c2015-11-18 14:56:46 -080019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
Craig Tillerbe52c6e2016-01-04 15:35:26 -080031
Craig Tiller2e7687c2015-11-18 14:56:46 -080032/*
33 * WARNING: Auto-generated code.
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070034 *
Bogdan Drutu806f4342016-02-08 18:10:49 -080035 * To make changes to this file, change
Craig Tiller3bd96952016-03-28 12:43:02 -070036 * tools/codegen/core/gen_static_metadata.py, and then re-run it.
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070037 *
Bogdan Drutu806f4342016-02-08 18:10:49 -080038 * See metadata.h for an explanation of the interface here, and metadata.c for
Craig Tiller3bd96952016-03-28 12:43:02 -070039 * an explanation of what's going on.
Craig Tiller2e7687c2015-11-18 14:56:46 -080040 */
41
Craig Tiller9533d042016-03-25 17:11:06 -070042#include "src/core/lib/transport/static_metadata.h"
Craig Tiller2e7687c2015-11-18 14:56:46 -080043
44grpc_mdstr grpc_static_mdstr_table[GRPC_STATIC_MDSTR_COUNT];
45
46grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];
Bogdan Drutub3153f32016-02-09 12:13:07 -080047uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT] = {
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070048 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
49 0, 0, 0, 0, 0, 4, 8, 6, 2, 4, 8, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0,
50 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
Craig Tiller2e7687c2015-11-18 14:56:46 -080052
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070053const uint8_t grpc_static_metadata_elem_indices[GRPC_STATIC_MDELEM_COUNT * 2] =
54 {11, 35, 10, 35, 12, 35, 12, 49, 13, 35, 14, 35, 15, 35, 16, 35, 17, 35,
55 19, 35, 20, 35, 21, 35, 24, 35, 25, 35, 26, 35, 27, 35, 28, 35, 29, 35,
56 30, 18, 30, 35, 31, 35, 32, 35, 36, 35, 37, 35, 38, 35, 39, 35, 42, 33,
57 42, 34, 42, 48, 42, 53, 42, 54, 42, 55, 42, 56, 43, 33, 43, 48, 43, 53,
58 46, 0, 46, 1, 46, 2, 50, 35, 57, 35, 58, 35, 59, 35, 60, 35, 61, 35,
59 62, 35, 63, 35, 64, 35, 65, 35, 66, 35, 67, 35, 68, 40, 68, 70, 68, 73,
60 69, 81, 69, 82, 71, 35, 72, 35, 74, 35, 75, 35, 76, 35, 77, 35, 78, 41,
61 78, 51, 78, 52, 79, 35, 80, 35, 83, 3, 83, 4, 83, 5, 83, 6, 83, 7,
62 83, 8, 83, 9, 84, 35, 85, 86, 87, 35, 88, 35, 89, 35, 90, 35, 91, 35};
Craig Tiller2e7687c2015-11-18 14:56:46 -080063
Craig Tiller328d4b12015-11-18 15:10:41 -080064const char *const grpc_static_metadata_strings[GRPC_STATIC_MDSTR_COUNT] = {
David Garcia Quintas5dde14c2016-07-28 17:29:27 -070065 "0",
66 "1",
67 "2",
68 "200",
69 "204",
70 "206",
71 "304",
72 "400",
73 "404",
74 "500",
75 "accept",
76 "accept-charset",
77 "accept-encoding",
78 "accept-language",
79 "accept-ranges",
80 "access-control-allow-origin",
81 "age",
82 "allow",
83 "application/grpc",
84 ":authority",
85 "authorization",
86 "cache-control",
87 "census-bin",
88 "census-binary-bin",
89 "content-disposition",
90 "content-encoding",
91 "content-language",
92 "content-length",
93 "content-location",
94 "content-range",
95 "content-type",
96 "cookie",
97 "date",
98 "deflate",
99 "deflate,gzip",
100 "",
101 "etag",
102 "expect",
103 "expires",
104 "from",
105 "GET",
106 "grpc",
107 "grpc-accept-encoding",
108 "grpc-encoding",
109 "grpc-internal-encoding-request",
110 "grpc-message",
111 "grpc-status",
112 "grpc-timeout",
113 "gzip",
114 "gzip, deflate",
115 "host",
116 "http",
117 "https",
118 "identity",
119 "identity,deflate",
120 "identity,deflate,gzip",
121 "identity,gzip",
122 "if-match",
123 "if-modified-since",
124 "if-none-match",
125 "if-range",
126 "if-unmodified-since",
127 "last-modified",
128 "link",
129 "load-reporting-initial",
130 "load-reporting-trailing",
131 "location",
132 "max-forwards",
133 ":method",
134 ":path",
135 "POST",
136 "proxy-authenticate",
137 "proxy-authorization",
138 "PUT",
139 "range",
140 "referer",
141 "refresh",
142 "retry-after",
143 ":scheme",
144 "server",
145 "set-cookie",
146 "/",
147 "/index.html",
148 ":status",
149 "strict-transport-security",
150 "te",
151 "trailers",
152 "transfer-encoding",
153 "user-agent",
154 "vary",
155 "via",
156 "www-authenticate"};
Craig Tillerb2b42612015-11-20 12:02:17 -0800157
David Garcia Quintas5dde14c2016-07-28 17:29:27 -0700158const uint8_t grpc_static_accept_encoding_metadata[8] = {0, 29, 26, 30,
159 28, 32, 27, 31};