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