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