Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 1 | /* |
Craig Tiller | 6169d5f | 2016-03-31 07:46:18 -0700 | [diff] [blame] | 2 | * Copyright 2015, Google Inc. |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 3 | * All rights reserved. |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 4 | * |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 5 | * 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 Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 8 | * |
Bogdan Drutu | c7ea439 | 2016-02-09 14:41:22 -0800 | [diff] [blame] | 9 | * * Redistributions of source code must retain the above copyright |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 10 | * notice, this list of conditions and the following disclaimer. |
Bogdan Drutu | c7ea439 | 2016-02-09 14:41:22 -0800 | [diff] [blame] | 11 | * * Redistributions in binary form must reproduce the above |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 12 | * copyright notice, this list of conditions and the following disclaimer |
| 13 | * in the documentation and/or other materials provided with the |
| 14 | * distribution. |
Bogdan Drutu | c7ea439 | 2016-02-09 14:41:22 -0800 | [diff] [blame] | 15 | * * Neither the name of Google Inc. nor the names of its |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 16 | * contributors may be used to endorse or promote products derived from |
| 17 | * this software without specific prior written permission. |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 18 | * |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 19 | * 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 Tiller | be52c6e | 2016-01-04 15:35:26 -0800 | [diff] [blame] | 31 | |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 32 | /* |
| 33 | * WARNING: Auto-generated code. |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 34 | * |
Bogdan Drutu | 806f434 | 2016-02-08 18:10:49 -0800 | [diff] [blame] | 35 | * To make changes to this file, change |
Craig Tiller | 3bd9695 | 2016-03-28 12:43:02 -0700 | [diff] [blame] | 36 | * tools/codegen/core/gen_static_metadata.py, and then re-run it. |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 37 | * |
Bogdan Drutu | 806f434 | 2016-02-08 18:10:49 -0800 | [diff] [blame] | 38 | * See metadata.h for an explanation of the interface here, and metadata.c for |
Craig Tiller | 3bd9695 | 2016-03-28 12:43:02 -0700 | [diff] [blame] | 39 | * an explanation of what's going on. |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 40 | */ |
| 41 | |
Craig Tiller | 9533d04 | 2016-03-25 17:11:06 -0700 | [diff] [blame] | 42 | #include "src/core/lib/transport/static_metadata.h" |
Craig Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 43 | |
| 44 | grpc_mdstr grpc_static_mdstr_table[GRPC_STATIC_MDSTR_COUNT]; |
| 45 | |
| 46 | grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT]; |
Bogdan Drutu | b3153f3 | 2016-02-09 12:13:07 -0800 | [diff] [blame] | 47 | uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT] = { |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 48 | 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 Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 52 | |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 53 | const 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 Tiller | 2e7687c | 2015-11-18 14:56:46 -0800 | [diff] [blame] | 63 | |
Craig Tiller | 328d4b1 | 2015-11-18 15:10:41 -0800 | [diff] [blame] | 64 | const char *const grpc_static_metadata_strings[GRPC_STATIC_MDSTR_COUNT] = { |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 65 | "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 Tiller | b2b4261 | 2015-11-20 12:02:17 -0800 | [diff] [blame] | 157 | |
David Garcia Quintas | 5dde14c | 2016-07-28 17:29:27 -0700 | [diff] [blame] | 158 | const uint8_t grpc_static_accept_encoding_metadata[8] = {0, 29, 26, 30, |
| 159 | 28, 32, 27, 31}; |