|
|
|
@ -1,12 +1,12 @@ |
|
|
|
|
/*
|
|
|
|
|
* Copyright 2015 gRPC authors. |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
* You may obtain a copy of the License at |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
@ -16,10 +16,10 @@ |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* WARNING: Auto-generated code. |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
|
* To make changes to this file, change |
|
|
|
|
* tools/codegen/core/gen_static_metadata.py, and then re-run it. |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
|
* See metadata.h for an explanation of the interface here, and metadata.c for |
|
|
|
|
* an explanation of what's going on. |
|
|
|
|
*/ |
|
|
|
@ -68,8 +68,7 @@ extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
/* "grpc-internal-encoding-request" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (grpc_static_slice_table[17]) |
|
|
|
|
/* "grpc-internal-stream-encoding-request" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_INTERNAL_STREAM_ENCODING_REQUEST \ |
|
|
|
|
(grpc_static_slice_table[18]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_INTERNAL_STREAM_ENCODING_REQUEST (grpc_static_slice_table[18]) |
|
|
|
|
/* "user-agent" */ |
|
|
|
|
#define GRPC_MDSTR_USER_AGENT (grpc_static_slice_table[19]) |
|
|
|
|
/* "host" */ |
|
|
|
@ -85,14 +84,11 @@ extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
/* "grpc.timeout" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_DOT_TIMEOUT (grpc_static_slice_table[25]) |
|
|
|
|
/* "grpc.max_request_message_bytes" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_DOT_MAX_REQUEST_MESSAGE_BYTES \ |
|
|
|
|
(grpc_static_slice_table[26]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_DOT_MAX_REQUEST_MESSAGE_BYTES (grpc_static_slice_table[26]) |
|
|
|
|
/* "grpc.max_response_message_bytes" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_DOT_MAX_RESPONSE_MESSAGE_BYTES \ |
|
|
|
|
(grpc_static_slice_table[27]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_DOT_MAX_RESPONSE_MESSAGE_BYTES (grpc_static_slice_table[27]) |
|
|
|
|
/* "/grpc.lb.v1.LoadBalancer/BalanceLoad" */ |
|
|
|
|
#define GRPC_MDSTR_SLASH_GRPC_DOT_LB_DOT_V1_DOT_LOADBALANCER_SLASH_BALANCELOAD \ |
|
|
|
|
(grpc_static_slice_table[28]) |
|
|
|
|
#define GRPC_MDSTR_SLASH_GRPC_DOT_LB_DOT_V1_DOT_LOADBALANCER_SLASH_BALANCELOAD (grpc_static_slice_table[28]) |
|
|
|
|
/* "0" */ |
|
|
|
|
#define GRPC_MDSTR_0 (grpc_static_slice_table[29]) |
|
|
|
|
/* "1" */ |
|
|
|
@ -234,277 +230,191 @@ extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
/* "deflate,gzip" */ |
|
|
|
|
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (grpc_static_slice_table[98]) |
|
|
|
|
/* "identity,deflate,gzip" */ |
|
|
|
|
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(grpc_static_slice_table[99]) |
|
|
|
|
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP (grpc_static_slice_table[99]) |
|
|
|
|
|
|
|
|
|
extern const grpc_slice_refcount_vtable grpc_static_metadata_vtable; |
|
|
|
|
extern grpc_slice_refcount |
|
|
|
|
grpc_static_metadata_refcounts[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
extern grpc_slice_refcount grpc_static_metadata_refcounts[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
#define GRPC_IS_STATIC_METADATA_STRING(slice) \ |
|
|
|
|
((slice).refcount != NULL && \
|
|
|
|
|
(slice).refcount->vtable == &grpc_static_metadata_vtable) |
|
|
|
|
((slice).refcount != NULL && (slice).refcount->vtable == &grpc_static_metadata_vtable) |
|
|
|
|
|
|
|
|
|
#define GRPC_STATIC_METADATA_INDEX(static_slice) \ |
|
|
|
|
((int)((static_slice).refcount - grpc_static_metadata_refcounts)) |
|
|
|
|
|
|
|
|
|
#define GRPC_STATIC_MDELEM_COUNT 85 |
|
|
|
|
#define GRPC_STATIC_MDELEM_COUNT 86 |
|
|
|
|
extern grpc_mdelem_data grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT]; |
|
|
|
|
extern uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT]; |
|
|
|
|
/* "grpc-status": "0" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_0 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[0], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_0 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[0], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-status": "1" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_1 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[1], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_1 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[1], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-status": "2" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_2 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[2], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_2 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[2], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[3], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[3], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[4], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[4], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-encoding": "deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[5], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[5], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "te": "trailers" */ |
|
|
|
|
#define GRPC_MDELEM_TE_TRAILERS \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[6], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_TE_TRAILERS (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[6], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-type": "application/grpc" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[7], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[7], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":method": "POST" */ |
|
|
|
|
#define GRPC_MDELEM_METHOD_POST \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[8], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_METHOD_POST (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[8], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "200" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_200 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[9], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_200 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[9], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "404" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_404 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[10], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_404 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[10], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":scheme": "http" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[11], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[11], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":scheme": "https" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTPS \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[12], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTPS (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[12], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":scheme": "grpc" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_GRPC \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[13], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_GRPC (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[13], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":authority": "" */ |
|
|
|
|
#define GRPC_MDELEM_AUTHORITY_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[14], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_AUTHORITY_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[14], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":method": "GET" */ |
|
|
|
|
#define GRPC_MDELEM_METHOD_GET \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[15], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_METHOD_GET (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[15], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":method": "PUT" */ |
|
|
|
|
#define GRPC_MDELEM_METHOD_PUT \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[16], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_METHOD_PUT (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[16], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":path": "/" */ |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[17], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[17], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":path": "/index.html" */ |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[18], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[18], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "204" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_204 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[19], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_204 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[19], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "206" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_206 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[20], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_206 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[20], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "304" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_304 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[21], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_304 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[21], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "400" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_400 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[22], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_400 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[22], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* ":status": "500" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_500 \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[23], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STATUS_500 (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[23], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-charset": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[24], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[24], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-encoding": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[25], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[25], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-encoding": "gzip, deflate" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[26], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[26], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-language": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[27], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[27], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-ranges": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_RANGES_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[28], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_RANGES_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[28], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[29], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[29], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "access-control-allow-origin": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[30], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[30], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "age": "" */ |
|
|
|
|
#define GRPC_MDELEM_AGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[31], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_AGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[31], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "allow": "" */ |
|
|
|
|
#define GRPC_MDELEM_ALLOW_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[32], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ALLOW_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[32], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "authorization": "" */ |
|
|
|
|
#define GRPC_MDELEM_AUTHORIZATION_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[33], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_AUTHORIZATION_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[33], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "cache-control": "" */ |
|
|
|
|
#define GRPC_MDELEM_CACHE_CONTROL_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[34], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CACHE_CONTROL_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[34], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-disposition": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[35], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[35], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_ENCODING_IDENTITY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[36], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_ENCODING_IDENTITY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[36], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_ENCODING_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[37], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_ENCODING_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[37], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-encoding": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_ENCODING_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[38], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-language": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[38], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[39], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-length": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LENGTH_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[39], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LENGTH_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[40], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-location": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LOCATION_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[40], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_LOCATION_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[41], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-range": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_RANGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[41], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_RANGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[42], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "content-type": "" */ |
|
|
|
|
#define GRPC_MDELEM_CONTENT_TYPE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[42], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_CONTENT_TYPE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[43], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "cookie": "" */ |
|
|
|
|
#define GRPC_MDELEM_COOKIE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[43], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_COOKIE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[44], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "date": "" */ |
|
|
|
|
#define GRPC_MDELEM_DATE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[44], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_DATE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[45], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "etag": "" */ |
|
|
|
|
#define GRPC_MDELEM_ETAG_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[45], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ETAG_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[46], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "expect": "" */ |
|
|
|
|
#define GRPC_MDELEM_EXPECT_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[46], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_EXPECT_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[47], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "expires": "" */ |
|
|
|
|
#define GRPC_MDELEM_EXPIRES_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[47], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_EXPIRES_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[48], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "from": "" */ |
|
|
|
|
#define GRPC_MDELEM_FROM_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[48], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_FROM_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[49], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "host": "" */ |
|
|
|
|
#define GRPC_MDELEM_HOST_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[49], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_HOST_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[50], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "if-match": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_MATCH_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[50], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_IF_MATCH_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[51], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "if-modified-since": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[51], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[52], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "if-none-match": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[52], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[53], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "if-range": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_RANGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[53], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_IF_RANGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[54], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "if-unmodified-since": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[54], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "last-modified": "" */ |
|
|
|
|
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "lb-token": "" */ |
|
|
|
|
#define GRPC_MDELEM_LB_TOKEN_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_LB_TOKEN_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "lb-cost-bin": "" */ |
|
|
|
|
#define GRPC_MDELEM_LB_COST_BIN_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_LB_COST_BIN_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "link": "" */ |
|
|
|
|
#define GRPC_MDELEM_LINK_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_LINK_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "location": "" */ |
|
|
|
|
#define GRPC_MDELEM_LOCATION_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_LOCATION_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "max-forwards": "" */ |
|
|
|
|
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "proxy-authenticate": "" */ |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "proxy-authorization": "" */ |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "range": "" */ |
|
|
|
|
#define GRPC_MDELEM_RANGE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_RANGE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "referer": "" */ |
|
|
|
|
#define GRPC_MDELEM_REFERER_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_REFERER_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "refresh": "" */ |
|
|
|
|
#define GRPC_MDELEM_REFRESH_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_REFRESH_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "retry-after": "" */ |
|
|
|
|
#define GRPC_MDELEM_RETRY_AFTER_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_RETRY_AFTER_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "server": "" */ |
|
|
|
|
#define GRPC_MDELEM_SERVER_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_SERVER_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "set-cookie": "" */ |
|
|
|
|
#define GRPC_MDELEM_SET_COOKIE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_SET_COOKIE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "strict-transport-security": "" */ |
|
|
|
|
#define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "transfer-encoding": "" */ |
|
|
|
|
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "user-agent": "" */ |
|
|
|
|
#define GRPC_MDELEM_USER_AGENT_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_USER_AGENT_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "vary": "" */ |
|
|
|
|
#define GRPC_MDELEM_VARY_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_VARY_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "via": "" */ |
|
|
|
|
#define GRPC_MDELEM_VIA_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_VIA_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "www-authenticate": "" */ |
|
|
|
|
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "identity,deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "identity,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[80], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "deflate,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[80], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[81], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "grpc-accept-encoding": "identity,deflate,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[81], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[82], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[82], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[83], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[83], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[84], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
/* "accept-encoding": "identity,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[84], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[85], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
|
|
|
|
|
grpc_mdelem grpc_static_mdelem_for_static_strings(int a, int b); |
|
|
|
|
typedef enum { |
|
|
|
@ -536,47 +446,37 @@ typedef enum { |
|
|
|
|
typedef union { |
|
|
|
|
struct grpc_linked_mdelem *array[GRPC_BATCH_CALLOUTS_COUNT]; |
|
|
|
|
struct { |
|
|
|
|
struct grpc_linked_mdelem *path; |
|
|
|
|
struct grpc_linked_mdelem *method; |
|
|
|
|
struct grpc_linked_mdelem *status; |
|
|
|
|
struct grpc_linked_mdelem *authority; |
|
|
|
|
struct grpc_linked_mdelem *scheme; |
|
|
|
|
struct grpc_linked_mdelem *te; |
|
|
|
|
struct grpc_linked_mdelem *grpc_message; |
|
|
|
|
struct grpc_linked_mdelem *grpc_status; |
|
|
|
|
struct grpc_linked_mdelem *grpc_payload_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_accept_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_server_stats_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_tags_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_trace_bin; |
|
|
|
|
struct grpc_linked_mdelem *content_type; |
|
|
|
|
struct grpc_linked_mdelem *content_encoding; |
|
|
|
|
struct grpc_linked_mdelem *accept_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_internal_encoding_request; |
|
|
|
|
struct grpc_linked_mdelem *grpc_internal_stream_encoding_request; |
|
|
|
|
struct grpc_linked_mdelem *user_agent; |
|
|
|
|
struct grpc_linked_mdelem *host; |
|
|
|
|
struct grpc_linked_mdelem *lb_token; |
|
|
|
|
struct grpc_linked_mdelem *path; |
|
|
|
|
struct grpc_linked_mdelem *method; |
|
|
|
|
struct grpc_linked_mdelem *status; |
|
|
|
|
struct grpc_linked_mdelem *authority; |
|
|
|
|
struct grpc_linked_mdelem *scheme; |
|
|
|
|
struct grpc_linked_mdelem *te; |
|
|
|
|
struct grpc_linked_mdelem *grpc_message; |
|
|
|
|
struct grpc_linked_mdelem *grpc_status; |
|
|
|
|
struct grpc_linked_mdelem *grpc_payload_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_accept_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_server_stats_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_tags_bin; |
|
|
|
|
struct grpc_linked_mdelem *grpc_trace_bin; |
|
|
|
|
struct grpc_linked_mdelem *content_type; |
|
|
|
|
struct grpc_linked_mdelem *content_encoding; |
|
|
|
|
struct grpc_linked_mdelem *accept_encoding; |
|
|
|
|
struct grpc_linked_mdelem *grpc_internal_encoding_request; |
|
|
|
|
struct grpc_linked_mdelem *grpc_internal_stream_encoding_request; |
|
|
|
|
struct grpc_linked_mdelem *user_agent; |
|
|
|
|
struct grpc_linked_mdelem *host; |
|
|
|
|
struct grpc_linked_mdelem *lb_token; |
|
|
|
|
} named; |
|
|
|
|
} grpc_metadata_batch_callouts; |
|
|
|
|
|
|
|
|
|
#define GRPC_BATCH_INDEX_OF(slice) \ |
|
|
|
|
(GRPC_IS_STATIC_METADATA_STRING((slice)) \
|
|
|
|
|
? (grpc_metadata_batch_callouts_index)GPR_CLAMP( \
|
|
|
|
|
GRPC_STATIC_METADATA_INDEX((slice)), 0, \
|
|
|
|
|
GRPC_BATCH_CALLOUTS_COUNT) \
|
|
|
|
|
: GRPC_BATCH_CALLOUTS_COUNT) |
|
|
|
|
#define GRPC_BATCH_INDEX_OF(slice) \ |
|
|
|
|
(GRPC_IS_STATIC_METADATA_STRING((slice)) ? (grpc_metadata_batch_callouts_index)GPR_CLAMP(GRPC_STATIC_METADATA_INDEX((slice)), 0, GRPC_BATCH_CALLOUTS_COUNT) : GRPC_BATCH_CALLOUTS_COUNT) |
|
|
|
|
|
|
|
|
|
extern const uint8_t grpc_static_accept_encoding_metadata[8]; |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) \ |
|
|
|
|
(GRPC_MAKE_MDELEM( \
|
|
|
|
|
&grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]], \
|
|
|
|
|
GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
|
|
|
|
|
extern const uint8_t grpc_static_accept_stream_encoding_metadata[4]; |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_STREAM_ENCODING_FOR_ALGORITHMS(algs) \ |
|
|
|
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table \
|
|
|
|
|
[grpc_static_accept_stream_encoding_metadata[(algs)]], \
|
|
|
|
|
GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_STREAM_ENCODING_FOR_ALGORITHMS(algs) (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[grpc_static_accept_stream_encoding_metadata[(algs)]], GRPC_MDELEM_STORAGE_STATIC)) |
|
|
|
|
#endif /* GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H */ |
|
|
|
|