|
|
|
@ -46,7 +46,7 @@ |
|
|
|
|
|
|
|
|
|
#include "src/core/transport/metadata.h" |
|
|
|
|
|
|
|
|
|
#define GRPC_STATIC_MDSTR_COUNT 83 |
|
|
|
|
#define GRPC_STATIC_MDSTR_COUNT 87 |
|
|
|
|
extern grpc_mdstr grpc_static_mdstr_table[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
/* "0" */ |
|
|
|
|
#define GRPC_MDSTR_0 (&grpc_static_mdstr_table[0]) |
|
|
|
@ -112,111 +112,121 @@ extern grpc_mdstr grpc_static_mdstr_table[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
#define GRPC_MDSTR_DATE (&grpc_static_mdstr_table[30]) |
|
|
|
|
/* "deflate" */ |
|
|
|
|
#define GRPC_MDSTR_DEFLATE (&grpc_static_mdstr_table[31]) |
|
|
|
|
/* "deflate,gzip" */ |
|
|
|
|
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (&grpc_static_mdstr_table[32]) |
|
|
|
|
/* "" */ |
|
|
|
|
#define GRPC_MDSTR_EMPTY (&grpc_static_mdstr_table[32]) |
|
|
|
|
#define GRPC_MDSTR_EMPTY (&grpc_static_mdstr_table[33]) |
|
|
|
|
/* "etag" */ |
|
|
|
|
#define GRPC_MDSTR_ETAG (&grpc_static_mdstr_table[33]) |
|
|
|
|
#define GRPC_MDSTR_ETAG (&grpc_static_mdstr_table[34]) |
|
|
|
|
/* "expect" */ |
|
|
|
|
#define GRPC_MDSTR_EXPECT (&grpc_static_mdstr_table[34]) |
|
|
|
|
#define GRPC_MDSTR_EXPECT (&grpc_static_mdstr_table[35]) |
|
|
|
|
/* "expires" */ |
|
|
|
|
#define GRPC_MDSTR_EXPIRES (&grpc_static_mdstr_table[35]) |
|
|
|
|
#define GRPC_MDSTR_EXPIRES (&grpc_static_mdstr_table[36]) |
|
|
|
|
/* "from" */ |
|
|
|
|
#define GRPC_MDSTR_FROM (&grpc_static_mdstr_table[36]) |
|
|
|
|
#define GRPC_MDSTR_FROM (&grpc_static_mdstr_table[37]) |
|
|
|
|
/* "GET" */ |
|
|
|
|
#define GRPC_MDSTR_GET (&grpc_static_mdstr_table[37]) |
|
|
|
|
#define GRPC_MDSTR_GET (&grpc_static_mdstr_table[38]) |
|
|
|
|
/* "grpc" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC (&grpc_static_mdstr_table[38]) |
|
|
|
|
#define GRPC_MDSTR_GRPC (&grpc_static_mdstr_table[39]) |
|
|
|
|
/* "grpc-accept-encoding" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_ACCEPT_ENCODING (&grpc_static_mdstr_table[39]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_ACCEPT_ENCODING (&grpc_static_mdstr_table[40]) |
|
|
|
|
/* "grpc-encoding" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_ENCODING (&grpc_static_mdstr_table[40]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_ENCODING (&grpc_static_mdstr_table[41]) |
|
|
|
|
/* "grpc-internal-encoding-request" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (&grpc_static_mdstr_table[41]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (&grpc_static_mdstr_table[42]) |
|
|
|
|
/* "grpc-message" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_MESSAGE (&grpc_static_mdstr_table[42]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_MESSAGE (&grpc_static_mdstr_table[43]) |
|
|
|
|
/* "grpc-status" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_STATUS (&grpc_static_mdstr_table[43]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_STATUS (&grpc_static_mdstr_table[44]) |
|
|
|
|
/* "grpc-timeout" */ |
|
|
|
|
#define GRPC_MDSTR_GRPC_TIMEOUT (&grpc_static_mdstr_table[44]) |
|
|
|
|
#define GRPC_MDSTR_GRPC_TIMEOUT (&grpc_static_mdstr_table[45]) |
|
|
|
|
/* "gzip" */ |
|
|
|
|
#define GRPC_MDSTR_GZIP (&grpc_static_mdstr_table[45]) |
|
|
|
|
#define GRPC_MDSTR_GZIP (&grpc_static_mdstr_table[46]) |
|
|
|
|
/* "gzip, deflate" */ |
|
|
|
|
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (&grpc_static_mdstr_table[46]) |
|
|
|
|
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (&grpc_static_mdstr_table[47]) |
|
|
|
|
/* "host" */ |
|
|
|
|
#define GRPC_MDSTR_HOST (&grpc_static_mdstr_table[47]) |
|
|
|
|
#define GRPC_MDSTR_HOST (&grpc_static_mdstr_table[48]) |
|
|
|
|
/* "http" */ |
|
|
|
|
#define GRPC_MDSTR_HTTP (&grpc_static_mdstr_table[48]) |
|
|
|
|
#define GRPC_MDSTR_HTTP (&grpc_static_mdstr_table[49]) |
|
|
|
|
/* "https" */ |
|
|
|
|
#define GRPC_MDSTR_HTTPS (&grpc_static_mdstr_table[49]) |
|
|
|
|
#define GRPC_MDSTR_HTTPS (&grpc_static_mdstr_table[50]) |
|
|
|
|
/* "identity" */ |
|
|
|
|
#define GRPC_MDSTR_IDENTITY (&grpc_static_mdstr_table[50]) |
|
|
|
|
#define GRPC_MDSTR_IDENTITY (&grpc_static_mdstr_table[51]) |
|
|
|
|
/* "identity,deflate" */ |
|
|
|
|
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE (&grpc_static_mdstr_table[52]) |
|
|
|
|
/* "identity,deflate,gzip" */ |
|
|
|
|
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(&grpc_static_mdstr_table[53]) |
|
|
|
|
/* "identity,gzip" */ |
|
|
|
|
#define GRPC_MDSTR_IDENTITY_COMMA_GZIP (&grpc_static_mdstr_table[54]) |
|
|
|
|
/* "if-match" */ |
|
|
|
|
#define GRPC_MDSTR_IF_MATCH (&grpc_static_mdstr_table[51]) |
|
|
|
|
#define GRPC_MDSTR_IF_MATCH (&grpc_static_mdstr_table[55]) |
|
|
|
|
/* "if-modified-since" */ |
|
|
|
|
#define GRPC_MDSTR_IF_MODIFIED_SINCE (&grpc_static_mdstr_table[52]) |
|
|
|
|
#define GRPC_MDSTR_IF_MODIFIED_SINCE (&grpc_static_mdstr_table[56]) |
|
|
|
|
/* "if-none-match" */ |
|
|
|
|
#define GRPC_MDSTR_IF_NONE_MATCH (&grpc_static_mdstr_table[53]) |
|
|
|
|
#define GRPC_MDSTR_IF_NONE_MATCH (&grpc_static_mdstr_table[57]) |
|
|
|
|
/* "if-range" */ |
|
|
|
|
#define GRPC_MDSTR_IF_RANGE (&grpc_static_mdstr_table[54]) |
|
|
|
|
#define GRPC_MDSTR_IF_RANGE (&grpc_static_mdstr_table[58]) |
|
|
|
|
/* "if-unmodified-since" */ |
|
|
|
|
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (&grpc_static_mdstr_table[55]) |
|
|
|
|
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (&grpc_static_mdstr_table[59]) |
|
|
|
|
/* "last-modified" */ |
|
|
|
|
#define GRPC_MDSTR_LAST_MODIFIED (&grpc_static_mdstr_table[56]) |
|
|
|
|
#define GRPC_MDSTR_LAST_MODIFIED (&grpc_static_mdstr_table[60]) |
|
|
|
|
/* "link" */ |
|
|
|
|
#define GRPC_MDSTR_LINK (&grpc_static_mdstr_table[57]) |
|
|
|
|
#define GRPC_MDSTR_LINK (&grpc_static_mdstr_table[61]) |
|
|
|
|
/* "location" */ |
|
|
|
|
#define GRPC_MDSTR_LOCATION (&grpc_static_mdstr_table[58]) |
|
|
|
|
#define GRPC_MDSTR_LOCATION (&grpc_static_mdstr_table[62]) |
|
|
|
|
/* "max-forwards" */ |
|
|
|
|
#define GRPC_MDSTR_MAX_FORWARDS (&grpc_static_mdstr_table[59]) |
|
|
|
|
#define GRPC_MDSTR_MAX_FORWARDS (&grpc_static_mdstr_table[63]) |
|
|
|
|
/* ":method" */ |
|
|
|
|
#define GRPC_MDSTR_METHOD (&grpc_static_mdstr_table[60]) |
|
|
|
|
#define GRPC_MDSTR_METHOD (&grpc_static_mdstr_table[64]) |
|
|
|
|
/* ":path" */ |
|
|
|
|
#define GRPC_MDSTR_PATH (&grpc_static_mdstr_table[61]) |
|
|
|
|
#define GRPC_MDSTR_PATH (&grpc_static_mdstr_table[65]) |
|
|
|
|
/* "POST" */ |
|
|
|
|
#define GRPC_MDSTR_POST (&grpc_static_mdstr_table[62]) |
|
|
|
|
#define GRPC_MDSTR_POST (&grpc_static_mdstr_table[66]) |
|
|
|
|
/* "proxy-authenticate" */ |
|
|
|
|
#define GRPC_MDSTR_PROXY_AUTHENTICATE (&grpc_static_mdstr_table[63]) |
|
|
|
|
#define GRPC_MDSTR_PROXY_AUTHENTICATE (&grpc_static_mdstr_table[67]) |
|
|
|
|
/* "proxy-authorization" */ |
|
|
|
|
#define GRPC_MDSTR_PROXY_AUTHORIZATION (&grpc_static_mdstr_table[64]) |
|
|
|
|
#define GRPC_MDSTR_PROXY_AUTHORIZATION (&grpc_static_mdstr_table[68]) |
|
|
|
|
/* "range" */ |
|
|
|
|
#define GRPC_MDSTR_RANGE (&grpc_static_mdstr_table[65]) |
|
|
|
|
#define GRPC_MDSTR_RANGE (&grpc_static_mdstr_table[69]) |
|
|
|
|
/* "referer" */ |
|
|
|
|
#define GRPC_MDSTR_REFERER (&grpc_static_mdstr_table[66]) |
|
|
|
|
#define GRPC_MDSTR_REFERER (&grpc_static_mdstr_table[70]) |
|
|
|
|
/* "refresh" */ |
|
|
|
|
#define GRPC_MDSTR_REFRESH (&grpc_static_mdstr_table[67]) |
|
|
|
|
#define GRPC_MDSTR_REFRESH (&grpc_static_mdstr_table[71]) |
|
|
|
|
/* "retry-after" */ |
|
|
|
|
#define GRPC_MDSTR_RETRY_AFTER (&grpc_static_mdstr_table[68]) |
|
|
|
|
#define GRPC_MDSTR_RETRY_AFTER (&grpc_static_mdstr_table[72]) |
|
|
|
|
/* ":scheme" */ |
|
|
|
|
#define GRPC_MDSTR_SCHEME (&grpc_static_mdstr_table[69]) |
|
|
|
|
#define GRPC_MDSTR_SCHEME (&grpc_static_mdstr_table[73]) |
|
|
|
|
/* "server" */ |
|
|
|
|
#define GRPC_MDSTR_SERVER (&grpc_static_mdstr_table[70]) |
|
|
|
|
#define GRPC_MDSTR_SERVER (&grpc_static_mdstr_table[74]) |
|
|
|
|
/* "set-cookie" */ |
|
|
|
|
#define GRPC_MDSTR_SET_COOKIE (&grpc_static_mdstr_table[71]) |
|
|
|
|
#define GRPC_MDSTR_SET_COOKIE (&grpc_static_mdstr_table[75]) |
|
|
|
|
/* "/" */ |
|
|
|
|
#define GRPC_MDSTR_SLASH (&grpc_static_mdstr_table[72]) |
|
|
|
|
#define GRPC_MDSTR_SLASH (&grpc_static_mdstr_table[76]) |
|
|
|
|
/* "/index.html" */ |
|
|
|
|
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (&grpc_static_mdstr_table[73]) |
|
|
|
|
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (&grpc_static_mdstr_table[77]) |
|
|
|
|
/* ":status" */ |
|
|
|
|
#define GRPC_MDSTR_STATUS (&grpc_static_mdstr_table[74]) |
|
|
|
|
#define GRPC_MDSTR_STATUS (&grpc_static_mdstr_table[78]) |
|
|
|
|
/* "strict-transport-security" */ |
|
|
|
|
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (&grpc_static_mdstr_table[75]) |
|
|
|
|
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (&grpc_static_mdstr_table[79]) |
|
|
|
|
/* "te" */ |
|
|
|
|
#define GRPC_MDSTR_TE (&grpc_static_mdstr_table[76]) |
|
|
|
|
#define GRPC_MDSTR_TE (&grpc_static_mdstr_table[80]) |
|
|
|
|
/* "trailers" */ |
|
|
|
|
#define GRPC_MDSTR_TRAILERS (&grpc_static_mdstr_table[77]) |
|
|
|
|
#define GRPC_MDSTR_TRAILERS (&grpc_static_mdstr_table[81]) |
|
|
|
|
/* "transfer-encoding" */ |
|
|
|
|
#define GRPC_MDSTR_TRANSFER_ENCODING (&grpc_static_mdstr_table[78]) |
|
|
|
|
#define GRPC_MDSTR_TRANSFER_ENCODING (&grpc_static_mdstr_table[82]) |
|
|
|
|
/* "user-agent" */ |
|
|
|
|
#define GRPC_MDSTR_USER_AGENT (&grpc_static_mdstr_table[79]) |
|
|
|
|
#define GRPC_MDSTR_USER_AGENT (&grpc_static_mdstr_table[83]) |
|
|
|
|
/* "vary" */ |
|
|
|
|
#define GRPC_MDSTR_VARY (&grpc_static_mdstr_table[80]) |
|
|
|
|
#define GRPC_MDSTR_VARY (&grpc_static_mdstr_table[84]) |
|
|
|
|
/* "via" */ |
|
|
|
|
#define GRPC_MDSTR_VIA (&grpc_static_mdstr_table[81]) |
|
|
|
|
#define GRPC_MDSTR_VIA (&grpc_static_mdstr_table[85]) |
|
|
|
|
/* "www-authenticate" */ |
|
|
|
|
#define GRPC_MDSTR_WWW_AUTHENTICATE (&grpc_static_mdstr_table[82]) |
|
|
|
|
#define GRPC_MDSTR_WWW_AUTHENTICATE (&grpc_static_mdstr_table[86]) |
|
|
|
|
|
|
|
|
|
#define GRPC_STATIC_MDELEM_COUNT 71 |
|
|
|
|
#define GRPC_STATIC_MDELEM_COUNT 78 |
|
|
|
|
extern grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT]; |
|
|
|
|
extern gpr_uintptr grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT]; |
|
|
|
|
/* "accept-charset": "" */ |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY (&grpc_static_mdelem_table[0]) |
|
|
|
|
/* "accept": "" */ |
|
|
|
@ -272,98 +282,121 @@ extern grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT]; |
|
|
|
|
#define GRPC_MDELEM_EXPIRES_EMPTY (&grpc_static_mdelem_table[24]) |
|
|
|
|
/* "from": "" */ |
|
|
|
|
#define GRPC_MDELEM_FROM_EMPTY (&grpc_static_mdelem_table[25]) |
|
|
|
|
/* "grpc-accept-encoding": "deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE (&grpc_static_mdelem_table[26]) |
|
|
|
|
/* "grpc-accept-encoding": "deflate,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(&grpc_static_mdelem_table[27]) |
|
|
|
|
/* "grpc-accept-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP (&grpc_static_mdelem_table[28]) |
|
|
|
|
/* "grpc-accept-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \ |
|
|
|
|
(&grpc_static_mdelem_table[29]) |
|
|
|
|
/* "grpc-accept-encoding": "identity,deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \ |
|
|
|
|
(&grpc_static_mdelem_table[30]) |
|
|
|
|
/* "grpc-accept-encoding": "identity,deflate,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \ |
|
|
|
|
(&grpc_static_mdelem_table[31]) |
|
|
|
|
/* "grpc-accept-encoding": "identity,gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \ |
|
|
|
|
(&grpc_static_mdelem_table[32]) |
|
|
|
|
/* "grpc-encoding": "deflate" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE (&grpc_static_mdelem_table[26]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE (&grpc_static_mdelem_table[33]) |
|
|
|
|
/* "grpc-encoding": "gzip" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_GZIP (&grpc_static_mdelem_table[27]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_GZIP (&grpc_static_mdelem_table[34]) |
|
|
|
|
/* "grpc-encoding": "identity" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY (&grpc_static_mdelem_table[28]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY (&grpc_static_mdelem_table[35]) |
|
|
|
|
/* "grpc-status": "0" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_0 (&grpc_static_mdelem_table[29]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_0 (&grpc_static_mdelem_table[36]) |
|
|
|
|
/* "grpc-status": "1" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_1 (&grpc_static_mdelem_table[30]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_1 (&grpc_static_mdelem_table[37]) |
|
|
|
|
/* "grpc-status": "2" */ |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_2 (&grpc_static_mdelem_table[31]) |
|
|
|
|
#define GRPC_MDELEM_GRPC_STATUS_2 (&grpc_static_mdelem_table[38]) |
|
|
|
|
/* "host": "" */ |
|
|
|
|
#define GRPC_MDELEM_HOST_EMPTY (&grpc_static_mdelem_table[32]) |
|
|
|
|
#define GRPC_MDELEM_HOST_EMPTY (&grpc_static_mdelem_table[39]) |
|
|
|
|
/* "if-match": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_MATCH_EMPTY (&grpc_static_mdelem_table[33]) |
|
|
|
|
#define GRPC_MDELEM_IF_MATCH_EMPTY (&grpc_static_mdelem_table[40]) |
|
|
|
|
/* "if-modified-since": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY (&grpc_static_mdelem_table[34]) |
|
|
|
|
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY (&grpc_static_mdelem_table[41]) |
|
|
|
|
/* "if-none-match": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY (&grpc_static_mdelem_table[35]) |
|
|
|
|
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY (&grpc_static_mdelem_table[42]) |
|
|
|
|
/* "if-range": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_RANGE_EMPTY (&grpc_static_mdelem_table[36]) |
|
|
|
|
#define GRPC_MDELEM_IF_RANGE_EMPTY (&grpc_static_mdelem_table[43]) |
|
|
|
|
/* "if-unmodified-since": "" */ |
|
|
|
|
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY (&grpc_static_mdelem_table[37]) |
|
|
|
|
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY (&grpc_static_mdelem_table[44]) |
|
|
|
|
/* "last-modified": "" */ |
|
|
|
|
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY (&grpc_static_mdelem_table[38]) |
|
|
|
|
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY (&grpc_static_mdelem_table[45]) |
|
|
|
|
/* "link": "" */ |
|
|
|
|
#define GRPC_MDELEM_LINK_EMPTY (&grpc_static_mdelem_table[39]) |
|
|
|
|
#define GRPC_MDELEM_LINK_EMPTY (&grpc_static_mdelem_table[46]) |
|
|
|
|
/* "location": "" */ |
|
|
|
|
#define GRPC_MDELEM_LOCATION_EMPTY (&grpc_static_mdelem_table[40]) |
|
|
|
|
#define GRPC_MDELEM_LOCATION_EMPTY (&grpc_static_mdelem_table[47]) |
|
|
|
|
/* "max-forwards": "" */ |
|
|
|
|
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY (&grpc_static_mdelem_table[41]) |
|
|
|
|
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY (&grpc_static_mdelem_table[48]) |
|
|
|
|
/* ":method": "GET" */ |
|
|
|
|
#define GRPC_MDELEM_METHOD_GET (&grpc_static_mdelem_table[42]) |
|
|
|
|
#define GRPC_MDELEM_METHOD_GET (&grpc_static_mdelem_table[49]) |
|
|
|
|
/* ":method": "POST" */ |
|
|
|
|
#define GRPC_MDELEM_METHOD_POST (&grpc_static_mdelem_table[43]) |
|
|
|
|
#define GRPC_MDELEM_METHOD_POST (&grpc_static_mdelem_table[50]) |
|
|
|
|
/* ":path": "/" */ |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH (&grpc_static_mdelem_table[44]) |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH (&grpc_static_mdelem_table[51]) |
|
|
|
|
/* ":path": "/index.html" */ |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML (&grpc_static_mdelem_table[45]) |
|
|
|
|
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML (&grpc_static_mdelem_table[52]) |
|
|
|
|
/* "proxy-authenticate": "" */ |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY (&grpc_static_mdelem_table[46]) |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY (&grpc_static_mdelem_table[53]) |
|
|
|
|
/* "proxy-authorization": "" */ |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY (&grpc_static_mdelem_table[47]) |
|
|
|
|
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY (&grpc_static_mdelem_table[54]) |
|
|
|
|
/* "range": "" */ |
|
|
|
|
#define GRPC_MDELEM_RANGE_EMPTY (&grpc_static_mdelem_table[48]) |
|
|
|
|
#define GRPC_MDELEM_RANGE_EMPTY (&grpc_static_mdelem_table[55]) |
|
|
|
|
/* "referer": "" */ |
|
|
|
|
#define GRPC_MDELEM_REFERER_EMPTY (&grpc_static_mdelem_table[49]) |
|
|
|
|
#define GRPC_MDELEM_REFERER_EMPTY (&grpc_static_mdelem_table[56]) |
|
|
|
|
/* "refresh": "" */ |
|
|
|
|
#define GRPC_MDELEM_REFRESH_EMPTY (&grpc_static_mdelem_table[50]) |
|
|
|
|
#define GRPC_MDELEM_REFRESH_EMPTY (&grpc_static_mdelem_table[57]) |
|
|
|
|
/* "retry-after": "" */ |
|
|
|
|
#define GRPC_MDELEM_RETRY_AFTER_EMPTY (&grpc_static_mdelem_table[51]) |
|
|
|
|
#define GRPC_MDELEM_RETRY_AFTER_EMPTY (&grpc_static_mdelem_table[58]) |
|
|
|
|
/* ":scheme": "grpc" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_GRPC (&grpc_static_mdelem_table[52]) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_GRPC (&grpc_static_mdelem_table[59]) |
|
|
|
|
/* ":scheme": "http" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTP (&grpc_static_mdelem_table[53]) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTP (&grpc_static_mdelem_table[60]) |
|
|
|
|
/* ":scheme": "https" */ |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTPS (&grpc_static_mdelem_table[54]) |
|
|
|
|
#define GRPC_MDELEM_SCHEME_HTTPS (&grpc_static_mdelem_table[61]) |
|
|
|
|
/* "server": "" */ |
|
|
|
|
#define GRPC_MDELEM_SERVER_EMPTY (&grpc_static_mdelem_table[55]) |
|
|
|
|
#define GRPC_MDELEM_SERVER_EMPTY (&grpc_static_mdelem_table[62]) |
|
|
|
|
/* "set-cookie": "" */ |
|
|
|
|
#define GRPC_MDELEM_SET_COOKIE_EMPTY (&grpc_static_mdelem_table[56]) |
|
|
|
|
#define GRPC_MDELEM_SET_COOKIE_EMPTY (&grpc_static_mdelem_table[63]) |
|
|
|
|
/* ":status": "200" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_200 (&grpc_static_mdelem_table[57]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_200 (&grpc_static_mdelem_table[64]) |
|
|
|
|
/* ":status": "204" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_204 (&grpc_static_mdelem_table[58]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_204 (&grpc_static_mdelem_table[65]) |
|
|
|
|
/* ":status": "206" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_206 (&grpc_static_mdelem_table[59]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_206 (&grpc_static_mdelem_table[66]) |
|
|
|
|
/* ":status": "304" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_304 (&grpc_static_mdelem_table[60]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_304 (&grpc_static_mdelem_table[67]) |
|
|
|
|
/* ":status": "400" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_400 (&grpc_static_mdelem_table[61]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_400 (&grpc_static_mdelem_table[68]) |
|
|
|
|
/* ":status": "404" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_404 (&grpc_static_mdelem_table[62]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_404 (&grpc_static_mdelem_table[69]) |
|
|
|
|
/* ":status": "500" */ |
|
|
|
|
#define GRPC_MDELEM_STATUS_500 (&grpc_static_mdelem_table[63]) |
|
|
|
|
#define GRPC_MDELEM_STATUS_500 (&grpc_static_mdelem_table[70]) |
|
|
|
|
/* "strict-transport-security": "" */ |
|
|
|
|
#define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \ |
|
|
|
|
(&grpc_static_mdelem_table[64]) |
|
|
|
|
(&grpc_static_mdelem_table[71]) |
|
|
|
|
/* "te": "trailers" */ |
|
|
|
|
#define GRPC_MDELEM_TE_TRAILERS (&grpc_static_mdelem_table[65]) |
|
|
|
|
#define GRPC_MDELEM_TE_TRAILERS (&grpc_static_mdelem_table[72]) |
|
|
|
|
/* "transfer-encoding": "" */ |
|
|
|
|
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY (&grpc_static_mdelem_table[66]) |
|
|
|
|
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY (&grpc_static_mdelem_table[73]) |
|
|
|
|
/* "user-agent": "" */ |
|
|
|
|
#define GRPC_MDELEM_USER_AGENT_EMPTY (&grpc_static_mdelem_table[67]) |
|
|
|
|
#define GRPC_MDELEM_USER_AGENT_EMPTY (&grpc_static_mdelem_table[74]) |
|
|
|
|
/* "vary": "" */ |
|
|
|
|
#define GRPC_MDELEM_VARY_EMPTY (&grpc_static_mdelem_table[68]) |
|
|
|
|
#define GRPC_MDELEM_VARY_EMPTY (&grpc_static_mdelem_table[75]) |
|
|
|
|
/* "via": "" */ |
|
|
|
|
#define GRPC_MDELEM_VIA_EMPTY (&grpc_static_mdelem_table[69]) |
|
|
|
|
#define GRPC_MDELEM_VIA_EMPTY (&grpc_static_mdelem_table[76]) |
|
|
|
|
/* "www-authenticate": "" */ |
|
|
|
|
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY (&grpc_static_mdelem_table[70]) |
|
|
|
|
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY (&grpc_static_mdelem_table[77]) |
|
|
|
|
|
|
|
|
|
const gpr_uint8 grpc_static_metadata_elem_indices[GRPC_STATIC_MDELEM_COUNT * 2]; |
|
|
|
|
const char *const grpc_static_metadata_strings[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
extern const gpr_uint8 |
|
|
|
|
grpc_static_metadata_elem_indices[GRPC_STATIC_MDELEM_COUNT * 2]; |
|
|
|
|
extern const char *const grpc_static_metadata_strings[GRPC_STATIC_MDSTR_COUNT]; |
|
|
|
|
extern const gpr_uint8 grpc_static_accept_encoding_metadata[8]; |
|
|
|
|
#define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) \ |
|
|
|
|
(&grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]]) |
|
|
|
|
#endif /* GRPC_INTERNAL_CORE_TRANSPORT_STATIC_METADATA_H */ |
|
|
|
|