grpc 1.1.2 → 1.2.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +1257 -404
- data/etc/roots.pem +189 -102
- data/include/grpc/census.h +7 -7
- data/include/grpc/compression.h +4 -4
- data/include/grpc/grpc.h +13 -7
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +26 -9
- data/include/grpc/impl/codegen/grpc_types.h +39 -30
- data/include/grpc/impl/codegen/slice.h +24 -6
- data/include/grpc/impl/codegen/sync.h +8 -0
- data/include/grpc/load_reporting.h +63 -0
- data/include/grpc/slice.h +37 -1
- data/include/grpc/slice_buffer.h +7 -0
- data/include/grpc/support/alloc.h +3 -0
- data/include/grpc/support/useful.h +3 -0
- data/src/core/ext/census/gen/census.pb.h +1 -1
- data/src/core/ext/census/gen/trace_context.pb.c +9 -36
- data/src/core/ext/census/gen/trace_context.pb.h +20 -26
- data/src/core/ext/census/grpc_filter.c +3 -5
- data/src/core/ext/census/trace_context.c +1 -1
- data/src/core/ext/census/trace_context.h +3 -0
- data/src/core/ext/census/trace_label.h +61 -0
- data/src/core/ext/census/trace_propagation.h +63 -0
- data/src/core/ext/census/trace_status.h +45 -0
- data/src/core/ext/census/trace_string.h +50 -0
- data/src/core/ext/census/tracing.c +31 -11
- data/src/core/ext/census/tracing.h +124 -0
- data/src/core/ext/client_channel/client_channel.c +456 -368
- data/src/core/ext/client_channel/client_channel.h +4 -0
- data/src/core/ext/client_channel/client_channel_plugin.c +6 -1
- data/src/core/ext/client_channel/connector.c +3 -3
- data/src/core/ext/client_channel/connector.h +4 -3
- data/src/core/ext/client_channel/http_connect_handshaker.c +62 -72
- data/src/core/ext/client_channel/http_connect_handshaker.h +7 -10
- data/src/core/ext/client_channel/http_proxy.c +125 -0
- data/src/core/ext/client_channel/http_proxy.h +39 -0
- data/src/core/ext/client_channel/lb_policy.c +56 -35
- data/src/core/ext/client_channel/lb_policy.h +46 -39
- data/src/core/ext/client_channel/lb_policy_factory.h +1 -0
- data/src/core/ext/client_channel/parse_address.c +32 -6
- data/src/core/ext/client_channel/proxy_mapper.c +63 -0
- data/src/core/ext/client_channel/proxy_mapper.h +89 -0
- data/src/core/ext/client_channel/proxy_mapper_registry.c +133 -0
- data/src/core/ext/client_channel/proxy_mapper_registry.h +59 -0
- data/src/core/ext/client_channel/resolver.c +16 -9
- data/src/core/ext/client_channel/resolver.h +23 -12
- data/src/core/ext/client_channel/resolver_factory.h +1 -0
- data/src/core/ext/client_channel/resolver_registry.c +15 -11
- data/src/core/ext/client_channel/resolver_registry.h +5 -3
- data/src/core/ext/client_channel/subchannel.c +44 -27
- data/src/core/ext/client_channel/subchannel.h +6 -2
- data/src/core/ext/client_channel/uri_parser.c +26 -14
- data/src/core/ext/client_channel/uri_parser.h +3 -1
- data/src/core/ext/lb_policy/grpclb/grpclb.c +220 -209
- data/src/core/ext/lb_policy/grpclb/grpclb_channel.h +56 -0
- data/src/core/ext/lb_policy/grpclb/grpclb_channel_secure.c +107 -0
- data/src/core/ext/lb_policy/grpclb/load_balancer_api.c +3 -6
- data/src/core/ext/lb_policy/pick_first/pick_first.c +71 -116
- data/src/core/ext/lb_policy/round_robin/round_robin.c +52 -67
- data/src/core/ext/load_reporting/load_reporting.c +20 -0
- data/src/core/ext/load_reporting/load_reporting.h +1 -16
- data/src/core/ext/load_reporting/load_reporting_filter.c +28 -54
- data/src/core/ext/resolver/dns/native/dns_resolver.c +31 -45
- data/src/core/ext/resolver/sockaddr/sockaddr_resolver.c +20 -29
- data/src/core/ext/transport/chttp2/client/chttp2_connector.c +11 -8
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +11 -2
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +143 -46
- data/src/core/ext/transport/chttp2/server/chttp2_server.c +12 -50
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.c +1 -1
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c +1 -1
- data/src/core/ext/transport/chttp2/transport/bin_decoder.c +7 -7
- data/src/core/ext/transport/chttp2/transport/bin_encoder.c +1 -2
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +1 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_plugin.c +0 -3
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +606 -374
- data/src/core/ext/transport/chttp2/transport/frame_ping.c +17 -5
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +2 -2
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +9 -13
- data/src/core/ext/transport/chttp2/transport/frame_settings.c +12 -11
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_window_update.c +5 -6
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +100 -53
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +2 -2
- data/src/core/ext/transport/chttp2/transport/hpack_parser.c +126 -70
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +13 -7
- data/src/core/ext/transport/chttp2/transport/hpack_table.c +22 -19
- data/src/core/ext/transport/chttp2/transport/hpack_table.h +6 -6
- data/src/core/ext/transport/chttp2/transport/incoming_metadata.c +23 -11
- data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +6 -2
- data/src/core/ext/transport/chttp2/transport/internal.h +169 -42
- data/src/core/ext/transport/chttp2/transport/parsing.c +98 -41
- data/src/core/ext/transport/chttp2/transport/stream_lists.c +29 -14
- data/src/core/ext/transport/chttp2/transport/writing.c +137 -15
- data/src/core/lib/channel/channel_stack.c +14 -44
- data/src/core/lib/channel/channel_stack.h +10 -17
- data/src/core/lib/channel/channel_stack_builder.c +2 -3
- data/src/core/lib/channel/compress_filter.c +54 -46
- data/src/core/lib/channel/connected_channel.c +4 -4
- data/src/core/lib/channel/connected_channel.h +5 -0
- data/src/core/lib/channel/context.h +3 -0
- data/src/core/lib/channel/deadline_filter.c +61 -61
- data/src/core/lib/channel/deadline_filter.h +8 -5
- data/src/core/lib/channel/handshaker.c +47 -7
- data/src/core/lib/channel/handshaker.h +21 -3
- data/src/core/lib/channel/http_client_filter.c +149 -99
- data/src/core/lib/channel/http_server_filter.c +163 -147
- data/src/core/lib/channel/message_size_filter.c +15 -10
- data/src/core/lib/compression/algorithm_metadata.h +4 -4
- data/src/core/lib/compression/compression.c +17 -23
- data/src/core/lib/http/httpcli.c +3 -2
- data/src/core/lib/http/httpcli.h +2 -1
- data/src/core/lib/http/httpcli_security_connector.c +2 -3
- data/src/core/lib/http/parser.c +2 -2
- data/src/core/lib/iomgr/closure.c +6 -3
- data/src/core/lib/iomgr/closure.h +4 -2
- data/src/core/lib/iomgr/combiner.c +35 -5
- data/src/core/lib/iomgr/combiner.h +21 -2
- data/src/core/lib/iomgr/endpoint.c +3 -2
- data/src/core/lib/iomgr/endpoint.h +3 -2
- data/src/core/lib/iomgr/error.c +60 -94
- data/src/core/lib/iomgr/error.h +7 -10
- data/src/core/lib/iomgr/error_internal.h +54 -0
- data/src/core/lib/iomgr/ev_epoll_linux.c +253 -109
- data/src/core/lib/iomgr/ev_poll_posix.c +61 -29
- data/src/core/lib/iomgr/ev_posix.c +7 -8
- data/src/core/lib/iomgr/ev_posix.h +4 -4
- data/src/core/lib/iomgr/exec_ctx.c +11 -6
- data/src/core/lib/iomgr/exec_ctx.h +11 -14
- data/src/core/lib/iomgr/executor.c +2 -2
- data/src/core/lib/iomgr/load_file.c +1 -1
- data/src/core/lib/iomgr/network_status_tracker.c +5 -81
- data/src/core/lib/iomgr/pollset.h +1 -3
- data/src/core/lib/iomgr/pollset_set.h +2 -1
- data/src/core/lib/iomgr/pollset_set_uv.c +2 -1
- data/src/core/lib/iomgr/pollset_set_windows.c +2 -1
- data/src/core/lib/iomgr/pollset_uv.c +25 -11
- data/src/core/lib/iomgr/pollset_windows.c +0 -11
- data/src/core/lib/iomgr/resolve_address_uv.c +50 -2
- data/src/core/lib/iomgr/resource_quota.c +41 -11
- data/src/core/lib/iomgr/resource_quota.h +6 -0
- data/src/core/lib/iomgr/sockaddr_utils.c +33 -17
- data/src/core/lib/iomgr/sockaddr_utils.h +4 -0
- data/src/core/lib/iomgr/tcp_client_posix.c +2 -3
- data/src/core/lib/iomgr/tcp_client_uv.c +1 -3
- data/src/core/lib/iomgr/tcp_client_windows.c +21 -6
- data/src/core/lib/iomgr/tcp_posix.c +4 -5
- data/src/core/lib/iomgr/tcp_server_posix.c +269 -94
- data/src/core/lib/iomgr/tcp_server_windows.c +1 -1
- data/src/core/lib/iomgr/tcp_uv.c +11 -5
- data/src/core/lib/iomgr/tcp_windows.c +20 -7
- data/src/core/lib/iomgr/timer_generic.c +15 -22
- data/src/core/lib/iomgr/timer_generic.h +1 -1
- data/src/core/lib/iomgr/timer_uv.c +10 -6
- data/src/core/lib/iomgr/timer_uv.h +1 -1
- data/src/core/lib/iomgr/udp_server.c +45 -6
- data/src/core/lib/iomgr/udp_server.h +7 -1
- data/src/core/lib/iomgr/unix_sockets_posix.c +11 -1
- data/src/core/lib/json/json.c +1 -2
- data/src/core/lib/profiling/basic_timers.c +17 -3
- data/src/core/lib/security/context/security_context.c +3 -10
- data/src/core/lib/security/credentials/composite/composite_credentials.c +4 -8
- data/src/core/lib/security/credentials/credentials.c +48 -2
- data/src/core/lib/security/credentials/credentials.h +13 -0
- data/src/core/lib/security/credentials/credentials_metadata.c +1 -2
- data/src/core/lib/security/credentials/fake/fake_credentials.c +6 -8
- data/src/core/lib/security/credentials/fake/fake_credentials.h +15 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.c +3 -3
- data/src/core/lib/security/credentials/iam/iam_credentials.c +1 -2
- data/src/core/lib/security/credentials/jwt/jwt_credentials.c +1 -2
- data/src/core/lib/security/credentials/jwt/jwt_verifier.c +5 -8
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +2 -1
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.c +3 -5
- data/src/core/lib/security/credentials/plugin/plugin_credentials.c +15 -13
- data/src/core/lib/security/credentials/ssl/ssl_credentials.c +2 -4
- data/src/core/lib/security/transport/client_auth_filter.c +72 -47
- data/src/core/lib/security/transport/lb_targets_info.c +70 -0
- data/src/core/lib/security/transport/lb_targets_info.h +47 -0
- data/src/core/lib/security/transport/secure_endpoint.c +3 -3
- data/src/core/lib/security/transport/security_connector.c +125 -28
- data/src/core/lib/security/transport/security_connector.h +4 -3
- data/src/core/lib/security/transport/security_handshaker.c +13 -9
- data/src/core/lib/security/transport/server_auth_filter.c +31 -40
- data/src/core/lib/security/util/b64.c +1 -1
- data/src/core/lib/slice/slice.c +110 -20
- data/src/core/lib/slice/slice_buffer.c +92 -39
- data/src/core/lib/{transport/mdstr_hash_table.c → slice/slice_hash_table.c} +40 -33
- data/src/core/lib/{transport/mdstr_hash_table.h → slice/slice_hash_table.h} +21 -21
- data/src/core/lib/slice/slice_intern.c +346 -0
- data/src/core/lib/slice/slice_internal.h +15 -0
- data/src/core/lib/slice/slice_string_helpers.c +5 -0
- data/src/core/lib/slice/slice_string_helpers.h +5 -0
- data/src/core/lib/support/alloc.c +26 -1
- data/src/core/lib/support/cmdline.c +2 -4
- data/src/core/lib/support/cpu_posix.c +2 -7
- data/src/core/lib/support/histogram.c +1 -2
- data/src/core/lib/support/log_posix.c +8 -4
- data/src/core/lib/support/spinlock.h +52 -0
- data/src/core/lib/support/subprocess_posix.c +1 -2
- data/src/core/lib/support/sync.c +7 -1
- data/src/core/lib/support/sync_posix.c +9 -0
- data/src/core/lib/support/time_windows.c +7 -1
- data/src/core/lib/surface/call.c +647 -629
- data/src/core/lib/surface/call.h +4 -1
- data/src/core/lib/surface/call_details.c +8 -2
- data/src/core/lib/surface/call_log_batch.c +17 -6
- data/src/core/lib/surface/channel.c +49 -59
- data/src/core/lib/surface/channel.h +5 -6
- data/src/core/lib/surface/completion_queue.c +16 -45
- data/src/core/lib/surface/completion_queue.h +0 -3
- data/src/core/lib/surface/init.c +6 -2
- data/src/core/lib/surface/init_secure.c +1 -1
- data/src/core/lib/surface/lame_client.c +14 -4
- data/src/core/lib/surface/server.c +79 -82
- data/src/core/lib/surface/validate_metadata.c +46 -15
- data/src/core/lib/surface/validate_metadata.h +43 -0
- data/src/core/lib/surface/version.c +2 -2
- data/src/core/lib/transport/bdp_estimator.c +104 -0
- data/src/core/lib/transport/bdp_estimator.h +76 -0
- data/src/core/lib/transport/connectivity_state.c +33 -13
- data/src/core/lib/transport/connectivity_state.h +15 -5
- data/src/core/lib/transport/error_utils.c +124 -0
- data/src/core/lib/transport/error_utils.h +56 -0
- data/src/core/{ext/transport/chttp2 → lib}/transport/http2_errors.h +18 -18
- data/src/core/lib/transport/metadata.c +259 -503
- data/src/core/lib/transport/metadata.h +69 -68
- data/src/core/lib/transport/metadata_batch.c +183 -63
- data/src/core/lib/transport/metadata_batch.h +50 -26
- data/src/core/lib/transport/pid_controller.c +28 -8
- data/src/core/lib/transport/pid_controller.h +15 -2
- data/src/core/lib/transport/service_config.c +21 -18
- data/src/core/lib/transport/service_config.h +5 -5
- data/src/core/lib/transport/static_metadata.c +753 -112
- data/src/core/lib/transport/static_metadata.h +403 -264
- data/src/core/{ext/transport/chttp2 → lib}/transport/status_conversion.c +18 -20
- data/src/core/{ext/transport/chttp2 → lib}/transport/status_conversion.h +9 -10
- data/src/core/lib/transport/timeout_encoding.c +11 -9
- data/src/core/lib/transport/timeout_encoding.h +3 -1
- data/src/core/lib/transport/transport.c +47 -87
- data/src/core/lib/transport/transport.h +20 -25
- data/src/core/lib/transport/transport_op_string.c +7 -19
- data/src/core/lib/tsi/fake_transport_security.c +2 -4
- data/src/core/lib/tsi/ssl_transport_security.c +7 -16
- data/src/core/lib/tsi/transport_security.c +2 -4
- data/src/ruby/ext/grpc/extconf.rb +4 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +7 -0
- data/src/ruby/ext/grpc/rb_byte_buffer.h +3 -0
- data/src/ruby/ext/grpc/rb_call.c +47 -46
- data/src/ruby/ext/grpc/rb_channel.c +21 -6
- data/src/ruby/ext/grpc/rb_compression_options.c +9 -6
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +36 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +59 -8
- data/src/ruby/ext/grpc/rb_server.c +6 -4
- data/src/ruby/lib/grpc/generic/client_stub.rb +1 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +33 -9
@@ -44,375 +44,514 @@
|
|
44
44
|
|
45
45
|
#include "src/core/lib/transport/metadata.h"
|
46
46
|
|
47
|
-
#define GRPC_STATIC_MDSTR_COUNT
|
48
|
-
extern
|
47
|
+
#define GRPC_STATIC_MDSTR_COUNT 97
|
48
|
+
extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT];
|
49
|
+
/* ":path" */
|
50
|
+
#define GRPC_MDSTR_PATH (grpc_static_slice_table[0])
|
51
|
+
/* ":method" */
|
52
|
+
#define GRPC_MDSTR_METHOD (grpc_static_slice_table[1])
|
53
|
+
/* ":status" */
|
54
|
+
#define GRPC_MDSTR_STATUS (grpc_static_slice_table[2])
|
55
|
+
/* ":authority" */
|
56
|
+
#define GRPC_MDSTR_AUTHORITY (grpc_static_slice_table[3])
|
57
|
+
/* ":scheme" */
|
58
|
+
#define GRPC_MDSTR_SCHEME (grpc_static_slice_table[4])
|
59
|
+
/* "te" */
|
60
|
+
#define GRPC_MDSTR_TE (grpc_static_slice_table[5])
|
61
|
+
/* "grpc-message" */
|
62
|
+
#define GRPC_MDSTR_GRPC_MESSAGE (grpc_static_slice_table[6])
|
63
|
+
/* "grpc-status" */
|
64
|
+
#define GRPC_MDSTR_GRPC_STATUS (grpc_static_slice_table[7])
|
65
|
+
/* "grpc-payload-bin" */
|
66
|
+
#define GRPC_MDSTR_GRPC_PAYLOAD_BIN (grpc_static_slice_table[8])
|
67
|
+
/* "grpc-encoding" */
|
68
|
+
#define GRPC_MDSTR_GRPC_ENCODING (grpc_static_slice_table[9])
|
69
|
+
/* "grpc-accept-encoding" */
|
70
|
+
#define GRPC_MDSTR_GRPC_ACCEPT_ENCODING (grpc_static_slice_table[10])
|
71
|
+
/* "content-type" */
|
72
|
+
#define GRPC_MDSTR_CONTENT_TYPE (grpc_static_slice_table[11])
|
73
|
+
/* "grpc-internal-encoding-request" */
|
74
|
+
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (grpc_static_slice_table[12])
|
75
|
+
/* "user-agent" */
|
76
|
+
#define GRPC_MDSTR_USER_AGENT (grpc_static_slice_table[13])
|
77
|
+
/* "host" */
|
78
|
+
#define GRPC_MDSTR_HOST (grpc_static_slice_table[14])
|
79
|
+
/* "lb-token" */
|
80
|
+
#define GRPC_MDSTR_LB_TOKEN (grpc_static_slice_table[15])
|
81
|
+
/* "grpc-timeout" */
|
82
|
+
#define GRPC_MDSTR_GRPC_TIMEOUT (grpc_static_slice_table[16])
|
83
|
+
/* "grpc-tracing-bin" */
|
84
|
+
#define GRPC_MDSTR_GRPC_TRACING_BIN (grpc_static_slice_table[17])
|
85
|
+
/* "grpc-stats-bin" */
|
86
|
+
#define GRPC_MDSTR_GRPC_STATS_BIN (grpc_static_slice_table[18])
|
87
|
+
/* "" */
|
88
|
+
#define GRPC_MDSTR_EMPTY (grpc_static_slice_table[19])
|
89
|
+
/* "grpc.wait_for_ready" */
|
90
|
+
#define GRPC_MDSTR_GRPC_DOT_WAIT_FOR_READY (grpc_static_slice_table[20])
|
91
|
+
/* "grpc.timeout" */
|
92
|
+
#define GRPC_MDSTR_GRPC_DOT_TIMEOUT (grpc_static_slice_table[21])
|
93
|
+
/* "grpc.max_request_message_bytes" */
|
94
|
+
#define GRPC_MDSTR_GRPC_DOT_MAX_REQUEST_MESSAGE_BYTES \
|
95
|
+
(grpc_static_slice_table[22])
|
96
|
+
/* "grpc.max_response_message_bytes" */
|
97
|
+
#define GRPC_MDSTR_GRPC_DOT_MAX_RESPONSE_MESSAGE_BYTES \
|
98
|
+
(grpc_static_slice_table[23])
|
99
|
+
/* "/grpc.lb.v1.LoadBalancer/BalanceLoad" */
|
100
|
+
#define GRPC_MDSTR_SLASH_GRPC_DOT_LB_DOT_V1_DOT_LOADBALANCER_SLASH_BALANCELOAD \
|
101
|
+
(grpc_static_slice_table[24])
|
49
102
|
/* "0" */
|
50
|
-
#define GRPC_MDSTR_0 (
|
103
|
+
#define GRPC_MDSTR_0 (grpc_static_slice_table[25])
|
51
104
|
/* "1" */
|
52
|
-
#define GRPC_MDSTR_1 (
|
105
|
+
#define GRPC_MDSTR_1 (grpc_static_slice_table[26])
|
53
106
|
/* "2" */
|
54
|
-
#define GRPC_MDSTR_2 (
|
107
|
+
#define GRPC_MDSTR_2 (grpc_static_slice_table[27])
|
108
|
+
/* "identity" */
|
109
|
+
#define GRPC_MDSTR_IDENTITY (grpc_static_slice_table[28])
|
110
|
+
/* "gzip" */
|
111
|
+
#define GRPC_MDSTR_GZIP (grpc_static_slice_table[29])
|
112
|
+
/* "deflate" */
|
113
|
+
#define GRPC_MDSTR_DEFLATE (grpc_static_slice_table[30])
|
114
|
+
/* "trailers" */
|
115
|
+
#define GRPC_MDSTR_TRAILERS (grpc_static_slice_table[31])
|
116
|
+
/* "application/grpc" */
|
117
|
+
#define GRPC_MDSTR_APPLICATION_SLASH_GRPC (grpc_static_slice_table[32])
|
118
|
+
/* "POST" */
|
119
|
+
#define GRPC_MDSTR_POST (grpc_static_slice_table[33])
|
55
120
|
/* "200" */
|
56
|
-
#define GRPC_MDSTR_200 (
|
121
|
+
#define GRPC_MDSTR_200 (grpc_static_slice_table[34])
|
122
|
+
/* "404" */
|
123
|
+
#define GRPC_MDSTR_404 (grpc_static_slice_table[35])
|
124
|
+
/* "http" */
|
125
|
+
#define GRPC_MDSTR_HTTP (grpc_static_slice_table[36])
|
126
|
+
/* "https" */
|
127
|
+
#define GRPC_MDSTR_HTTPS (grpc_static_slice_table[37])
|
128
|
+
/* "grpc" */
|
129
|
+
#define GRPC_MDSTR_GRPC (grpc_static_slice_table[38])
|
130
|
+
/* "GET" */
|
131
|
+
#define GRPC_MDSTR_GET (grpc_static_slice_table[39])
|
132
|
+
/* "PUT" */
|
133
|
+
#define GRPC_MDSTR_PUT (grpc_static_slice_table[40])
|
134
|
+
/* "/" */
|
135
|
+
#define GRPC_MDSTR_SLASH (grpc_static_slice_table[41])
|
136
|
+
/* "/index.html" */
|
137
|
+
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (grpc_static_slice_table[42])
|
57
138
|
/* "204" */
|
58
|
-
#define GRPC_MDSTR_204 (
|
139
|
+
#define GRPC_MDSTR_204 (grpc_static_slice_table[43])
|
59
140
|
/* "206" */
|
60
|
-
#define GRPC_MDSTR_206 (
|
141
|
+
#define GRPC_MDSTR_206 (grpc_static_slice_table[44])
|
61
142
|
/* "304" */
|
62
|
-
#define GRPC_MDSTR_304 (
|
143
|
+
#define GRPC_MDSTR_304 (grpc_static_slice_table[45])
|
63
144
|
/* "400" */
|
64
|
-
#define GRPC_MDSTR_400 (
|
65
|
-
/* "404" */
|
66
|
-
#define GRPC_MDSTR_404 (&grpc_static_mdstr_table[8])
|
145
|
+
#define GRPC_MDSTR_400 (grpc_static_slice_table[46])
|
67
146
|
/* "500" */
|
68
|
-
#define GRPC_MDSTR_500 (
|
69
|
-
/* "accept" */
|
70
|
-
#define GRPC_MDSTR_ACCEPT (&grpc_static_mdstr_table[10])
|
147
|
+
#define GRPC_MDSTR_500 (grpc_static_slice_table[47])
|
71
148
|
/* "accept-charset" */
|
72
|
-
#define GRPC_MDSTR_ACCEPT_CHARSET (
|
149
|
+
#define GRPC_MDSTR_ACCEPT_CHARSET (grpc_static_slice_table[48])
|
73
150
|
/* "accept-encoding" */
|
74
|
-
#define GRPC_MDSTR_ACCEPT_ENCODING (
|
151
|
+
#define GRPC_MDSTR_ACCEPT_ENCODING (grpc_static_slice_table[49])
|
152
|
+
/* "gzip, deflate" */
|
153
|
+
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (grpc_static_slice_table[50])
|
75
154
|
/* "accept-language" */
|
76
|
-
#define GRPC_MDSTR_ACCEPT_LANGUAGE (
|
155
|
+
#define GRPC_MDSTR_ACCEPT_LANGUAGE (grpc_static_slice_table[51])
|
77
156
|
/* "accept-ranges" */
|
78
|
-
#define GRPC_MDSTR_ACCEPT_RANGES (
|
157
|
+
#define GRPC_MDSTR_ACCEPT_RANGES (grpc_static_slice_table[52])
|
158
|
+
/* "accept" */
|
159
|
+
#define GRPC_MDSTR_ACCEPT (grpc_static_slice_table[53])
|
79
160
|
/* "access-control-allow-origin" */
|
80
|
-
#define GRPC_MDSTR_ACCESS_CONTROL_ALLOW_ORIGIN (
|
161
|
+
#define GRPC_MDSTR_ACCESS_CONTROL_ALLOW_ORIGIN (grpc_static_slice_table[54])
|
81
162
|
/* "age" */
|
82
|
-
#define GRPC_MDSTR_AGE (
|
163
|
+
#define GRPC_MDSTR_AGE (grpc_static_slice_table[55])
|
83
164
|
/* "allow" */
|
84
|
-
#define GRPC_MDSTR_ALLOW (
|
85
|
-
/* "application/grpc" */
|
86
|
-
#define GRPC_MDSTR_APPLICATION_SLASH_GRPC (&grpc_static_mdstr_table[18])
|
87
|
-
/* ":authority" */
|
88
|
-
#define GRPC_MDSTR_AUTHORITY (&grpc_static_mdstr_table[19])
|
165
|
+
#define GRPC_MDSTR_ALLOW (grpc_static_slice_table[56])
|
89
166
|
/* "authorization" */
|
90
|
-
#define GRPC_MDSTR_AUTHORIZATION (
|
167
|
+
#define GRPC_MDSTR_AUTHORIZATION (grpc_static_slice_table[57])
|
91
168
|
/* "cache-control" */
|
92
|
-
#define GRPC_MDSTR_CACHE_CONTROL (
|
169
|
+
#define GRPC_MDSTR_CACHE_CONTROL (grpc_static_slice_table[58])
|
93
170
|
/* "content-disposition" */
|
94
|
-
#define GRPC_MDSTR_CONTENT_DISPOSITION (
|
171
|
+
#define GRPC_MDSTR_CONTENT_DISPOSITION (grpc_static_slice_table[59])
|
95
172
|
/* "content-encoding" */
|
96
|
-
#define GRPC_MDSTR_CONTENT_ENCODING (
|
173
|
+
#define GRPC_MDSTR_CONTENT_ENCODING (grpc_static_slice_table[60])
|
97
174
|
/* "content-language" */
|
98
|
-
#define GRPC_MDSTR_CONTENT_LANGUAGE (
|
175
|
+
#define GRPC_MDSTR_CONTENT_LANGUAGE (grpc_static_slice_table[61])
|
99
176
|
/* "content-length" */
|
100
|
-
#define GRPC_MDSTR_CONTENT_LENGTH (
|
177
|
+
#define GRPC_MDSTR_CONTENT_LENGTH (grpc_static_slice_table[62])
|
101
178
|
/* "content-location" */
|
102
|
-
#define GRPC_MDSTR_CONTENT_LOCATION (
|
179
|
+
#define GRPC_MDSTR_CONTENT_LOCATION (grpc_static_slice_table[63])
|
103
180
|
/* "content-range" */
|
104
|
-
#define GRPC_MDSTR_CONTENT_RANGE (
|
105
|
-
/* "content-type" */
|
106
|
-
#define GRPC_MDSTR_CONTENT_TYPE (&grpc_static_mdstr_table[28])
|
181
|
+
#define GRPC_MDSTR_CONTENT_RANGE (grpc_static_slice_table[64])
|
107
182
|
/* "cookie" */
|
108
|
-
#define GRPC_MDSTR_COOKIE (
|
183
|
+
#define GRPC_MDSTR_COOKIE (grpc_static_slice_table[65])
|
109
184
|
/* "date" */
|
110
|
-
#define GRPC_MDSTR_DATE (
|
111
|
-
/* "deflate" */
|
112
|
-
#define GRPC_MDSTR_DEFLATE (&grpc_static_mdstr_table[31])
|
113
|
-
/* "deflate,gzip" */
|
114
|
-
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (&grpc_static_mdstr_table[32])
|
115
|
-
/* "" */
|
116
|
-
#define GRPC_MDSTR_EMPTY (&grpc_static_mdstr_table[33])
|
185
|
+
#define GRPC_MDSTR_DATE (grpc_static_slice_table[66])
|
117
186
|
/* "etag" */
|
118
|
-
#define GRPC_MDSTR_ETAG (
|
187
|
+
#define GRPC_MDSTR_ETAG (grpc_static_slice_table[67])
|
119
188
|
/* "expect" */
|
120
|
-
#define GRPC_MDSTR_EXPECT (
|
189
|
+
#define GRPC_MDSTR_EXPECT (grpc_static_slice_table[68])
|
121
190
|
/* "expires" */
|
122
|
-
#define GRPC_MDSTR_EXPIRES (
|
191
|
+
#define GRPC_MDSTR_EXPIRES (grpc_static_slice_table[69])
|
123
192
|
/* "from" */
|
124
|
-
#define GRPC_MDSTR_FROM (
|
125
|
-
/* "GET" */
|
126
|
-
#define GRPC_MDSTR_GET (&grpc_static_mdstr_table[38])
|
127
|
-
/* "grpc" */
|
128
|
-
#define GRPC_MDSTR_GRPC (&grpc_static_mdstr_table[39])
|
129
|
-
/* "grpc-accept-encoding" */
|
130
|
-
#define GRPC_MDSTR_GRPC_ACCEPT_ENCODING (&grpc_static_mdstr_table[40])
|
131
|
-
/* "grpc-encoding" */
|
132
|
-
#define GRPC_MDSTR_GRPC_ENCODING (&grpc_static_mdstr_table[41])
|
133
|
-
/* "grpc-internal-encoding-request" */
|
134
|
-
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (&grpc_static_mdstr_table[42])
|
135
|
-
/* "grpc-message" */
|
136
|
-
#define GRPC_MDSTR_GRPC_MESSAGE (&grpc_static_mdstr_table[43])
|
137
|
-
/* "grpc-payload-bin" */
|
138
|
-
#define GRPC_MDSTR_GRPC_PAYLOAD_BIN (&grpc_static_mdstr_table[44])
|
139
|
-
/* "grpc-stats-bin" */
|
140
|
-
#define GRPC_MDSTR_GRPC_STATS_BIN (&grpc_static_mdstr_table[45])
|
141
|
-
/* "grpc-status" */
|
142
|
-
#define GRPC_MDSTR_GRPC_STATUS (&grpc_static_mdstr_table[46])
|
143
|
-
/* "grpc-timeout" */
|
144
|
-
#define GRPC_MDSTR_GRPC_TIMEOUT (&grpc_static_mdstr_table[47])
|
145
|
-
/* "grpc-tracing-bin" */
|
146
|
-
#define GRPC_MDSTR_GRPC_TRACING_BIN (&grpc_static_mdstr_table[48])
|
147
|
-
/* "gzip" */
|
148
|
-
#define GRPC_MDSTR_GZIP (&grpc_static_mdstr_table[49])
|
149
|
-
/* "gzip, deflate" */
|
150
|
-
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (&grpc_static_mdstr_table[50])
|
151
|
-
/* "host" */
|
152
|
-
#define GRPC_MDSTR_HOST (&grpc_static_mdstr_table[51])
|
153
|
-
/* "http" */
|
154
|
-
#define GRPC_MDSTR_HTTP (&grpc_static_mdstr_table[52])
|
155
|
-
/* "https" */
|
156
|
-
#define GRPC_MDSTR_HTTPS (&grpc_static_mdstr_table[53])
|
157
|
-
/* "identity" */
|
158
|
-
#define GRPC_MDSTR_IDENTITY (&grpc_static_mdstr_table[54])
|
159
|
-
/* "identity,deflate" */
|
160
|
-
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE (&grpc_static_mdstr_table[55])
|
161
|
-
/* "identity,deflate,gzip" */
|
162
|
-
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
163
|
-
(&grpc_static_mdstr_table[56])
|
164
|
-
/* "identity,gzip" */
|
165
|
-
#define GRPC_MDSTR_IDENTITY_COMMA_GZIP (&grpc_static_mdstr_table[57])
|
193
|
+
#define GRPC_MDSTR_FROM (grpc_static_slice_table[70])
|
166
194
|
/* "if-match" */
|
167
|
-
#define GRPC_MDSTR_IF_MATCH (
|
195
|
+
#define GRPC_MDSTR_IF_MATCH (grpc_static_slice_table[71])
|
168
196
|
/* "if-modified-since" */
|
169
|
-
#define GRPC_MDSTR_IF_MODIFIED_SINCE (
|
197
|
+
#define GRPC_MDSTR_IF_MODIFIED_SINCE (grpc_static_slice_table[72])
|
170
198
|
/* "if-none-match" */
|
171
|
-
#define GRPC_MDSTR_IF_NONE_MATCH (
|
199
|
+
#define GRPC_MDSTR_IF_NONE_MATCH (grpc_static_slice_table[73])
|
172
200
|
/* "if-range" */
|
173
|
-
#define GRPC_MDSTR_IF_RANGE (
|
201
|
+
#define GRPC_MDSTR_IF_RANGE (grpc_static_slice_table[74])
|
174
202
|
/* "if-unmodified-since" */
|
175
|
-
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (
|
203
|
+
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (grpc_static_slice_table[75])
|
176
204
|
/* "last-modified" */
|
177
|
-
#define GRPC_MDSTR_LAST_MODIFIED (
|
178
|
-
/* "lb-cost-bin" */
|
179
|
-
#define GRPC_MDSTR_LB_COST_BIN (&grpc_static_mdstr_table[64])
|
180
|
-
/* "lb-token" */
|
181
|
-
#define GRPC_MDSTR_LB_TOKEN (&grpc_static_mdstr_table[65])
|
205
|
+
#define GRPC_MDSTR_LAST_MODIFIED (grpc_static_slice_table[76])
|
182
206
|
/* "link" */
|
183
|
-
#define GRPC_MDSTR_LINK (
|
207
|
+
#define GRPC_MDSTR_LINK (grpc_static_slice_table[77])
|
184
208
|
/* "location" */
|
185
|
-
#define GRPC_MDSTR_LOCATION (
|
209
|
+
#define GRPC_MDSTR_LOCATION (grpc_static_slice_table[78])
|
186
210
|
/* "max-forwards" */
|
187
|
-
#define GRPC_MDSTR_MAX_FORWARDS (
|
188
|
-
/* ":method" */
|
189
|
-
#define GRPC_MDSTR_METHOD (&grpc_static_mdstr_table[69])
|
190
|
-
/* ":path" */
|
191
|
-
#define GRPC_MDSTR_PATH (&grpc_static_mdstr_table[70])
|
192
|
-
/* "POST" */
|
193
|
-
#define GRPC_MDSTR_POST (&grpc_static_mdstr_table[71])
|
211
|
+
#define GRPC_MDSTR_MAX_FORWARDS (grpc_static_slice_table[79])
|
194
212
|
/* "proxy-authenticate" */
|
195
|
-
#define GRPC_MDSTR_PROXY_AUTHENTICATE (
|
213
|
+
#define GRPC_MDSTR_PROXY_AUTHENTICATE (grpc_static_slice_table[80])
|
196
214
|
/* "proxy-authorization" */
|
197
|
-
#define GRPC_MDSTR_PROXY_AUTHORIZATION (
|
198
|
-
/* "PUT" */
|
199
|
-
#define GRPC_MDSTR_PUT (&grpc_static_mdstr_table[74])
|
215
|
+
#define GRPC_MDSTR_PROXY_AUTHORIZATION (grpc_static_slice_table[81])
|
200
216
|
/* "range" */
|
201
|
-
#define GRPC_MDSTR_RANGE (
|
217
|
+
#define GRPC_MDSTR_RANGE (grpc_static_slice_table[82])
|
202
218
|
/* "referer" */
|
203
|
-
#define GRPC_MDSTR_REFERER (
|
219
|
+
#define GRPC_MDSTR_REFERER (grpc_static_slice_table[83])
|
204
220
|
/* "refresh" */
|
205
|
-
#define GRPC_MDSTR_REFRESH (
|
221
|
+
#define GRPC_MDSTR_REFRESH (grpc_static_slice_table[84])
|
206
222
|
/* "retry-after" */
|
207
|
-
#define GRPC_MDSTR_RETRY_AFTER (
|
208
|
-
/* ":scheme" */
|
209
|
-
#define GRPC_MDSTR_SCHEME (&grpc_static_mdstr_table[79])
|
223
|
+
#define GRPC_MDSTR_RETRY_AFTER (grpc_static_slice_table[85])
|
210
224
|
/* "server" */
|
211
|
-
#define GRPC_MDSTR_SERVER (
|
225
|
+
#define GRPC_MDSTR_SERVER (grpc_static_slice_table[86])
|
212
226
|
/* "set-cookie" */
|
213
|
-
#define GRPC_MDSTR_SET_COOKIE (
|
214
|
-
/* "/" */
|
215
|
-
#define GRPC_MDSTR_SLASH (&grpc_static_mdstr_table[82])
|
216
|
-
/* "/index.html" */
|
217
|
-
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (&grpc_static_mdstr_table[83])
|
218
|
-
/* ":status" */
|
219
|
-
#define GRPC_MDSTR_STATUS (&grpc_static_mdstr_table[84])
|
227
|
+
#define GRPC_MDSTR_SET_COOKIE (grpc_static_slice_table[87])
|
220
228
|
/* "strict-transport-security" */
|
221
|
-
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (
|
222
|
-
/* "te" */
|
223
|
-
#define GRPC_MDSTR_TE (&grpc_static_mdstr_table[86])
|
224
|
-
/* "trailers" */
|
225
|
-
#define GRPC_MDSTR_TRAILERS (&grpc_static_mdstr_table[87])
|
229
|
+
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (grpc_static_slice_table[88])
|
226
230
|
/* "transfer-encoding" */
|
227
|
-
#define GRPC_MDSTR_TRANSFER_ENCODING (
|
228
|
-
/* "user-agent" */
|
229
|
-
#define GRPC_MDSTR_USER_AGENT (&grpc_static_mdstr_table[89])
|
231
|
+
#define GRPC_MDSTR_TRANSFER_ENCODING (grpc_static_slice_table[89])
|
230
232
|
/* "vary" */
|
231
|
-
#define GRPC_MDSTR_VARY (
|
233
|
+
#define GRPC_MDSTR_VARY (grpc_static_slice_table[90])
|
232
234
|
/* "via" */
|
233
|
-
#define GRPC_MDSTR_VIA (
|
235
|
+
#define GRPC_MDSTR_VIA (grpc_static_slice_table[91])
|
234
236
|
/* "www-authenticate" */
|
235
|
-
#define GRPC_MDSTR_WWW_AUTHENTICATE (
|
237
|
+
#define GRPC_MDSTR_WWW_AUTHENTICATE (grpc_static_slice_table[92])
|
238
|
+
/* "identity,deflate" */
|
239
|
+
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE (grpc_static_slice_table[93])
|
240
|
+
/* "identity,gzip" */
|
241
|
+
#define GRPC_MDSTR_IDENTITY_COMMA_GZIP (grpc_static_slice_table[94])
|
242
|
+
/* "deflate,gzip" */
|
243
|
+
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (grpc_static_slice_table[95])
|
244
|
+
/* "identity,deflate,gzip" */
|
245
|
+
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
246
|
+
(grpc_static_slice_table[96])
|
236
247
|
|
237
|
-
|
238
|
-
extern
|
248
|
+
extern const grpc_slice_refcount_vtable grpc_static_metadata_vtable;
|
249
|
+
extern grpc_slice_refcount
|
250
|
+
grpc_static_metadata_refcounts[GRPC_STATIC_MDSTR_COUNT];
|
251
|
+
#define GRPC_IS_STATIC_METADATA_STRING(slice) \
|
252
|
+
((slice).refcount != NULL && \
|
253
|
+
(slice).refcount->vtable == &grpc_static_metadata_vtable)
|
254
|
+
|
255
|
+
#define GRPC_STATIC_METADATA_INDEX(static_slice) \
|
256
|
+
((int)((static_slice).refcount - grpc_static_metadata_refcounts))
|
257
|
+
|
258
|
+
#define GRPC_STATIC_MDELEM_COUNT 80
|
259
|
+
extern grpc_mdelem_data grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];
|
239
260
|
extern uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT];
|
261
|
+
/* "grpc-status": "0" */
|
262
|
+
#define GRPC_MDELEM_GRPC_STATUS_0 \
|
263
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[0], GRPC_MDELEM_STORAGE_STATIC))
|
264
|
+
/* "grpc-status": "1" */
|
265
|
+
#define GRPC_MDELEM_GRPC_STATUS_1 \
|
266
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[1], GRPC_MDELEM_STORAGE_STATIC))
|
267
|
+
/* "grpc-status": "2" */
|
268
|
+
#define GRPC_MDELEM_GRPC_STATUS_2 \
|
269
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[2], GRPC_MDELEM_STORAGE_STATIC))
|
270
|
+
/* "grpc-encoding": "identity" */
|
271
|
+
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY \
|
272
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[3], GRPC_MDELEM_STORAGE_STATIC))
|
273
|
+
/* "grpc-encoding": "gzip" */
|
274
|
+
#define GRPC_MDELEM_GRPC_ENCODING_GZIP \
|
275
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[4], GRPC_MDELEM_STORAGE_STATIC))
|
276
|
+
/* "grpc-encoding": "deflate" */
|
277
|
+
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE \
|
278
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[5], GRPC_MDELEM_STORAGE_STATIC))
|
279
|
+
/* "te": "trailers" */
|
280
|
+
#define GRPC_MDELEM_TE_TRAILERS \
|
281
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[6], GRPC_MDELEM_STORAGE_STATIC))
|
282
|
+
/* "content-type": "application/grpc" */
|
283
|
+
#define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC \
|
284
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[7], GRPC_MDELEM_STORAGE_STATIC))
|
285
|
+
/* ":method": "POST" */
|
286
|
+
#define GRPC_MDELEM_METHOD_POST \
|
287
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[8], GRPC_MDELEM_STORAGE_STATIC))
|
288
|
+
/* ":status": "200" */
|
289
|
+
#define GRPC_MDELEM_STATUS_200 \
|
290
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[9], GRPC_MDELEM_STORAGE_STATIC))
|
291
|
+
/* ":status": "404" */
|
292
|
+
#define GRPC_MDELEM_STATUS_404 \
|
293
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[10], GRPC_MDELEM_STORAGE_STATIC))
|
294
|
+
/* ":scheme": "http" */
|
295
|
+
#define GRPC_MDELEM_SCHEME_HTTP \
|
296
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[11], GRPC_MDELEM_STORAGE_STATIC))
|
297
|
+
/* ":scheme": "https" */
|
298
|
+
#define GRPC_MDELEM_SCHEME_HTTPS \
|
299
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[12], GRPC_MDELEM_STORAGE_STATIC))
|
300
|
+
/* ":scheme": "grpc" */
|
301
|
+
#define GRPC_MDELEM_SCHEME_GRPC \
|
302
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[13], GRPC_MDELEM_STORAGE_STATIC))
|
303
|
+
/* ":authority": "" */
|
304
|
+
#define GRPC_MDELEM_AUTHORITY_EMPTY \
|
305
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[14], GRPC_MDELEM_STORAGE_STATIC))
|
306
|
+
/* ":method": "GET" */
|
307
|
+
#define GRPC_MDELEM_METHOD_GET \
|
308
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[15], GRPC_MDELEM_STORAGE_STATIC))
|
309
|
+
/* ":method": "PUT" */
|
310
|
+
#define GRPC_MDELEM_METHOD_PUT \
|
311
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[16], GRPC_MDELEM_STORAGE_STATIC))
|
312
|
+
/* ":path": "/" */
|
313
|
+
#define GRPC_MDELEM_PATH_SLASH \
|
314
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[17], GRPC_MDELEM_STORAGE_STATIC))
|
315
|
+
/* ":path": "/index.html" */
|
316
|
+
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML \
|
317
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[18], GRPC_MDELEM_STORAGE_STATIC))
|
318
|
+
/* ":status": "204" */
|
319
|
+
#define GRPC_MDELEM_STATUS_204 \
|
320
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[19], GRPC_MDELEM_STORAGE_STATIC))
|
321
|
+
/* ":status": "206" */
|
322
|
+
#define GRPC_MDELEM_STATUS_206 \
|
323
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[20], GRPC_MDELEM_STORAGE_STATIC))
|
324
|
+
/* ":status": "304" */
|
325
|
+
#define GRPC_MDELEM_STATUS_304 \
|
326
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[21], GRPC_MDELEM_STORAGE_STATIC))
|
327
|
+
/* ":status": "400" */
|
328
|
+
#define GRPC_MDELEM_STATUS_400 \
|
329
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[22], GRPC_MDELEM_STORAGE_STATIC))
|
330
|
+
/* ":status": "500" */
|
331
|
+
#define GRPC_MDELEM_STATUS_500 \
|
332
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[23], GRPC_MDELEM_STORAGE_STATIC))
|
240
333
|
/* "accept-charset": "" */
|
241
|
-
#define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY
|
242
|
-
|
243
|
-
#define GRPC_MDELEM_ACCEPT_EMPTY (&grpc_static_mdelem_table[1])
|
334
|
+
#define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY \
|
335
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[24], GRPC_MDELEM_STORAGE_STATIC))
|
244
336
|
/* "accept-encoding": "" */
|
245
|
-
#define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY
|
337
|
+
#define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY \
|
338
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[25], GRPC_MDELEM_STORAGE_STATIC))
|
246
339
|
/* "accept-encoding": "gzip, deflate" */
|
247
340
|
#define GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE \
|
248
|
-
(&grpc_static_mdelem_table[
|
341
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[26], GRPC_MDELEM_STORAGE_STATIC))
|
249
342
|
/* "accept-language": "" */
|
250
|
-
#define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY
|
343
|
+
#define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY \
|
344
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[27], GRPC_MDELEM_STORAGE_STATIC))
|
251
345
|
/* "accept-ranges": "" */
|
252
|
-
#define GRPC_MDELEM_ACCEPT_RANGES_EMPTY
|
346
|
+
#define GRPC_MDELEM_ACCEPT_RANGES_EMPTY \
|
347
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[28], GRPC_MDELEM_STORAGE_STATIC))
|
348
|
+
/* "accept": "" */
|
349
|
+
#define GRPC_MDELEM_ACCEPT_EMPTY \
|
350
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[29], GRPC_MDELEM_STORAGE_STATIC))
|
253
351
|
/* "access-control-allow-origin": "" */
|
254
352
|
#define GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY \
|
255
|
-
(&grpc_static_mdelem_table[
|
353
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[30], GRPC_MDELEM_STORAGE_STATIC))
|
256
354
|
/* "age": "" */
|
257
|
-
#define GRPC_MDELEM_AGE_EMPTY
|
355
|
+
#define GRPC_MDELEM_AGE_EMPTY \
|
356
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[31], GRPC_MDELEM_STORAGE_STATIC))
|
258
357
|
/* "allow": "" */
|
259
|
-
#define GRPC_MDELEM_ALLOW_EMPTY
|
260
|
-
|
261
|
-
#define GRPC_MDELEM_AUTHORITY_EMPTY (&grpc_static_mdelem_table[9])
|
358
|
+
#define GRPC_MDELEM_ALLOW_EMPTY \
|
359
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[32], GRPC_MDELEM_STORAGE_STATIC))
|
262
360
|
/* "authorization": "" */
|
263
|
-
#define GRPC_MDELEM_AUTHORIZATION_EMPTY
|
361
|
+
#define GRPC_MDELEM_AUTHORIZATION_EMPTY \
|
362
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[33], GRPC_MDELEM_STORAGE_STATIC))
|
264
363
|
/* "cache-control": "" */
|
265
|
-
#define GRPC_MDELEM_CACHE_CONTROL_EMPTY
|
364
|
+
#define GRPC_MDELEM_CACHE_CONTROL_EMPTY \
|
365
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[34], GRPC_MDELEM_STORAGE_STATIC))
|
266
366
|
/* "content-disposition": "" */
|
267
|
-
#define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY
|
367
|
+
#define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY \
|
368
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[35], GRPC_MDELEM_STORAGE_STATIC))
|
268
369
|
/* "content-encoding": "" */
|
269
|
-
#define GRPC_MDELEM_CONTENT_ENCODING_EMPTY
|
370
|
+
#define GRPC_MDELEM_CONTENT_ENCODING_EMPTY \
|
371
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[36], GRPC_MDELEM_STORAGE_STATIC))
|
270
372
|
/* "content-language": "" */
|
271
|
-
#define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY
|
373
|
+
#define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY \
|
374
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[37], GRPC_MDELEM_STORAGE_STATIC))
|
272
375
|
/* "content-length": "" */
|
273
|
-
#define GRPC_MDELEM_CONTENT_LENGTH_EMPTY
|
376
|
+
#define GRPC_MDELEM_CONTENT_LENGTH_EMPTY \
|
377
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[38], GRPC_MDELEM_STORAGE_STATIC))
|
274
378
|
/* "content-location": "" */
|
275
|
-
#define GRPC_MDELEM_CONTENT_LOCATION_EMPTY
|
379
|
+
#define GRPC_MDELEM_CONTENT_LOCATION_EMPTY \
|
380
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[39], GRPC_MDELEM_STORAGE_STATIC))
|
276
381
|
/* "content-range": "" */
|
277
|
-
#define GRPC_MDELEM_CONTENT_RANGE_EMPTY
|
278
|
-
|
279
|
-
#define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC \
|
280
|
-
(&grpc_static_mdelem_table[18])
|
382
|
+
#define GRPC_MDELEM_CONTENT_RANGE_EMPTY \
|
383
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[40], GRPC_MDELEM_STORAGE_STATIC))
|
281
384
|
/* "content-type": "" */
|
282
|
-
#define GRPC_MDELEM_CONTENT_TYPE_EMPTY
|
385
|
+
#define GRPC_MDELEM_CONTENT_TYPE_EMPTY \
|
386
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[41], GRPC_MDELEM_STORAGE_STATIC))
|
283
387
|
/* "cookie": "" */
|
284
|
-
#define GRPC_MDELEM_COOKIE_EMPTY
|
388
|
+
#define GRPC_MDELEM_COOKIE_EMPTY \
|
389
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[42], GRPC_MDELEM_STORAGE_STATIC))
|
285
390
|
/* "date": "" */
|
286
|
-
#define GRPC_MDELEM_DATE_EMPTY
|
391
|
+
#define GRPC_MDELEM_DATE_EMPTY \
|
392
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[43], GRPC_MDELEM_STORAGE_STATIC))
|
287
393
|
/* "etag": "" */
|
288
|
-
#define GRPC_MDELEM_ETAG_EMPTY
|
394
|
+
#define GRPC_MDELEM_ETAG_EMPTY \
|
395
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[44], GRPC_MDELEM_STORAGE_STATIC))
|
289
396
|
/* "expect": "" */
|
290
|
-
#define GRPC_MDELEM_EXPECT_EMPTY
|
397
|
+
#define GRPC_MDELEM_EXPECT_EMPTY \
|
398
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[45], GRPC_MDELEM_STORAGE_STATIC))
|
291
399
|
/* "expires": "" */
|
292
|
-
#define GRPC_MDELEM_EXPIRES_EMPTY
|
400
|
+
#define GRPC_MDELEM_EXPIRES_EMPTY \
|
401
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[46], GRPC_MDELEM_STORAGE_STATIC))
|
293
402
|
/* "from": "" */
|
294
|
-
#define GRPC_MDELEM_FROM_EMPTY
|
295
|
-
|
296
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE (&grpc_static_mdelem_table[26])
|
297
|
-
/* "grpc-accept-encoding": "deflate,gzip" */
|
298
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \
|
299
|
-
(&grpc_static_mdelem_table[27])
|
300
|
-
/* "grpc-accept-encoding": "gzip" */
|
301
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP (&grpc_static_mdelem_table[28])
|
302
|
-
/* "grpc-accept-encoding": "identity" */
|
303
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \
|
304
|
-
(&grpc_static_mdelem_table[29])
|
305
|
-
/* "grpc-accept-encoding": "identity,deflate" */
|
306
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \
|
307
|
-
(&grpc_static_mdelem_table[30])
|
308
|
-
/* "grpc-accept-encoding": "identity,deflate,gzip" */
|
309
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
310
|
-
(&grpc_static_mdelem_table[31])
|
311
|
-
/* "grpc-accept-encoding": "identity,gzip" */
|
312
|
-
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
|
313
|
-
(&grpc_static_mdelem_table[32])
|
314
|
-
/* "grpc-encoding": "deflate" */
|
315
|
-
#define GRPC_MDELEM_GRPC_ENCODING_DEFLATE (&grpc_static_mdelem_table[33])
|
316
|
-
/* "grpc-encoding": "gzip" */
|
317
|
-
#define GRPC_MDELEM_GRPC_ENCODING_GZIP (&grpc_static_mdelem_table[34])
|
318
|
-
/* "grpc-encoding": "identity" */
|
319
|
-
#define GRPC_MDELEM_GRPC_ENCODING_IDENTITY (&grpc_static_mdelem_table[35])
|
320
|
-
/* "grpc-status": "0" */
|
321
|
-
#define GRPC_MDELEM_GRPC_STATUS_0 (&grpc_static_mdelem_table[36])
|
322
|
-
/* "grpc-status": "1" */
|
323
|
-
#define GRPC_MDELEM_GRPC_STATUS_1 (&grpc_static_mdelem_table[37])
|
324
|
-
/* "grpc-status": "2" */
|
325
|
-
#define GRPC_MDELEM_GRPC_STATUS_2 (&grpc_static_mdelem_table[38])
|
403
|
+
#define GRPC_MDELEM_FROM_EMPTY \
|
404
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[47], GRPC_MDELEM_STORAGE_STATIC))
|
326
405
|
/* "host": "" */
|
327
|
-
#define GRPC_MDELEM_HOST_EMPTY
|
406
|
+
#define GRPC_MDELEM_HOST_EMPTY \
|
407
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[48], GRPC_MDELEM_STORAGE_STATIC))
|
328
408
|
/* "if-match": "" */
|
329
|
-
#define GRPC_MDELEM_IF_MATCH_EMPTY
|
409
|
+
#define GRPC_MDELEM_IF_MATCH_EMPTY \
|
410
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[49], GRPC_MDELEM_STORAGE_STATIC))
|
330
411
|
/* "if-modified-since": "" */
|
331
|
-
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY
|
412
|
+
#define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY \
|
413
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[50], GRPC_MDELEM_STORAGE_STATIC))
|
332
414
|
/* "if-none-match": "" */
|
333
|
-
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY
|
415
|
+
#define GRPC_MDELEM_IF_NONE_MATCH_EMPTY \
|
416
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[51], GRPC_MDELEM_STORAGE_STATIC))
|
334
417
|
/* "if-range": "" */
|
335
|
-
#define GRPC_MDELEM_IF_RANGE_EMPTY
|
418
|
+
#define GRPC_MDELEM_IF_RANGE_EMPTY \
|
419
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[52], GRPC_MDELEM_STORAGE_STATIC))
|
336
420
|
/* "if-unmodified-since": "" */
|
337
|
-
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY
|
421
|
+
#define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY \
|
422
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[53], GRPC_MDELEM_STORAGE_STATIC))
|
338
423
|
/* "last-modified": "" */
|
339
|
-
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY
|
340
|
-
|
341
|
-
#define GRPC_MDELEM_LB_COST_BIN_EMPTY (&grpc_static_mdelem_table[46])
|
424
|
+
#define GRPC_MDELEM_LAST_MODIFIED_EMPTY \
|
425
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[54], GRPC_MDELEM_STORAGE_STATIC))
|
342
426
|
/* "lb-token": "" */
|
343
|
-
#define GRPC_MDELEM_LB_TOKEN_EMPTY
|
427
|
+
#define GRPC_MDELEM_LB_TOKEN_EMPTY \
|
428
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55], GRPC_MDELEM_STORAGE_STATIC))
|
344
429
|
/* "link": "" */
|
345
|
-
#define GRPC_MDELEM_LINK_EMPTY
|
430
|
+
#define GRPC_MDELEM_LINK_EMPTY \
|
431
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56], GRPC_MDELEM_STORAGE_STATIC))
|
346
432
|
/* "location": "" */
|
347
|
-
#define GRPC_MDELEM_LOCATION_EMPTY
|
433
|
+
#define GRPC_MDELEM_LOCATION_EMPTY \
|
434
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57], GRPC_MDELEM_STORAGE_STATIC))
|
348
435
|
/* "max-forwards": "" */
|
349
|
-
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY
|
350
|
-
|
351
|
-
#define GRPC_MDELEM_METHOD_GET (&grpc_static_mdelem_table[51])
|
352
|
-
/* ":method": "POST" */
|
353
|
-
#define GRPC_MDELEM_METHOD_POST (&grpc_static_mdelem_table[52])
|
354
|
-
/* ":method": "PUT" */
|
355
|
-
#define GRPC_MDELEM_METHOD_PUT (&grpc_static_mdelem_table[53])
|
356
|
-
/* ":path": "/" */
|
357
|
-
#define GRPC_MDELEM_PATH_SLASH (&grpc_static_mdelem_table[54])
|
358
|
-
/* ":path": "/index.html" */
|
359
|
-
#define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML (&grpc_static_mdelem_table[55])
|
436
|
+
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY \
|
437
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58], GRPC_MDELEM_STORAGE_STATIC))
|
360
438
|
/* "proxy-authenticate": "" */
|
361
|
-
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY
|
439
|
+
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY \
|
440
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59], GRPC_MDELEM_STORAGE_STATIC))
|
362
441
|
/* "proxy-authorization": "" */
|
363
|
-
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY
|
442
|
+
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY \
|
443
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60], GRPC_MDELEM_STORAGE_STATIC))
|
364
444
|
/* "range": "" */
|
365
|
-
#define GRPC_MDELEM_RANGE_EMPTY
|
445
|
+
#define GRPC_MDELEM_RANGE_EMPTY \
|
446
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61], GRPC_MDELEM_STORAGE_STATIC))
|
366
447
|
/* "referer": "" */
|
367
|
-
#define GRPC_MDELEM_REFERER_EMPTY
|
448
|
+
#define GRPC_MDELEM_REFERER_EMPTY \
|
449
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62], GRPC_MDELEM_STORAGE_STATIC))
|
368
450
|
/* "refresh": "" */
|
369
|
-
#define GRPC_MDELEM_REFRESH_EMPTY
|
451
|
+
#define GRPC_MDELEM_REFRESH_EMPTY \
|
452
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63], GRPC_MDELEM_STORAGE_STATIC))
|
370
453
|
/* "retry-after": "" */
|
371
|
-
#define GRPC_MDELEM_RETRY_AFTER_EMPTY
|
372
|
-
|
373
|
-
#define GRPC_MDELEM_SCHEME_GRPC (&grpc_static_mdelem_table[62])
|
374
|
-
/* ":scheme": "http" */
|
375
|
-
#define GRPC_MDELEM_SCHEME_HTTP (&grpc_static_mdelem_table[63])
|
376
|
-
/* ":scheme": "https" */
|
377
|
-
#define GRPC_MDELEM_SCHEME_HTTPS (&grpc_static_mdelem_table[64])
|
454
|
+
#define GRPC_MDELEM_RETRY_AFTER_EMPTY \
|
455
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64], GRPC_MDELEM_STORAGE_STATIC))
|
378
456
|
/* "server": "" */
|
379
|
-
#define GRPC_MDELEM_SERVER_EMPTY
|
457
|
+
#define GRPC_MDELEM_SERVER_EMPTY \
|
458
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65], GRPC_MDELEM_STORAGE_STATIC))
|
380
459
|
/* "set-cookie": "" */
|
381
|
-
#define GRPC_MDELEM_SET_COOKIE_EMPTY
|
382
|
-
|
383
|
-
#define GRPC_MDELEM_STATUS_200 (&grpc_static_mdelem_table[67])
|
384
|
-
/* ":status": "204" */
|
385
|
-
#define GRPC_MDELEM_STATUS_204 (&grpc_static_mdelem_table[68])
|
386
|
-
/* ":status": "206" */
|
387
|
-
#define GRPC_MDELEM_STATUS_206 (&grpc_static_mdelem_table[69])
|
388
|
-
/* ":status": "304" */
|
389
|
-
#define GRPC_MDELEM_STATUS_304 (&grpc_static_mdelem_table[70])
|
390
|
-
/* ":status": "400" */
|
391
|
-
#define GRPC_MDELEM_STATUS_400 (&grpc_static_mdelem_table[71])
|
392
|
-
/* ":status": "404" */
|
393
|
-
#define GRPC_MDELEM_STATUS_404 (&grpc_static_mdelem_table[72])
|
394
|
-
/* ":status": "500" */
|
395
|
-
#define GRPC_MDELEM_STATUS_500 (&grpc_static_mdelem_table[73])
|
460
|
+
#define GRPC_MDELEM_SET_COOKIE_EMPTY \
|
461
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66], GRPC_MDELEM_STORAGE_STATIC))
|
396
462
|
/* "strict-transport-security": "" */
|
397
463
|
#define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \
|
398
|
-
(&grpc_static_mdelem_table[
|
399
|
-
/* "te": "trailers" */
|
400
|
-
#define GRPC_MDELEM_TE_TRAILERS (&grpc_static_mdelem_table[75])
|
464
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67], GRPC_MDELEM_STORAGE_STATIC))
|
401
465
|
/* "transfer-encoding": "" */
|
402
|
-
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY
|
466
|
+
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY \
|
467
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68], GRPC_MDELEM_STORAGE_STATIC))
|
403
468
|
/* "user-agent": "" */
|
404
|
-
#define GRPC_MDELEM_USER_AGENT_EMPTY
|
469
|
+
#define GRPC_MDELEM_USER_AGENT_EMPTY \
|
470
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69], GRPC_MDELEM_STORAGE_STATIC))
|
405
471
|
/* "vary": "" */
|
406
|
-
#define GRPC_MDELEM_VARY_EMPTY
|
472
|
+
#define GRPC_MDELEM_VARY_EMPTY \
|
473
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70], GRPC_MDELEM_STORAGE_STATIC))
|
407
474
|
/* "via": "" */
|
408
|
-
#define GRPC_MDELEM_VIA_EMPTY
|
475
|
+
#define GRPC_MDELEM_VIA_EMPTY \
|
476
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71], GRPC_MDELEM_STORAGE_STATIC))
|
409
477
|
/* "www-authenticate": "" */
|
410
|
-
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY
|
478
|
+
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY \
|
479
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72], GRPC_MDELEM_STORAGE_STATIC))
|
480
|
+
/* "grpc-accept-encoding": "identity" */
|
481
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \
|
482
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73], GRPC_MDELEM_STORAGE_STATIC))
|
483
|
+
/* "grpc-accept-encoding": "deflate" */
|
484
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE \
|
485
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74], GRPC_MDELEM_STORAGE_STATIC))
|
486
|
+
/* "grpc-accept-encoding": "identity,deflate" */
|
487
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \
|
488
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75], GRPC_MDELEM_STORAGE_STATIC))
|
489
|
+
/* "grpc-accept-encoding": "gzip" */
|
490
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP \
|
491
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76], GRPC_MDELEM_STORAGE_STATIC))
|
492
|
+
/* "grpc-accept-encoding": "identity,gzip" */
|
493
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
|
494
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77], GRPC_MDELEM_STORAGE_STATIC))
|
495
|
+
/* "grpc-accept-encoding": "deflate,gzip" */
|
496
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \
|
497
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78], GRPC_MDELEM_STORAGE_STATIC))
|
498
|
+
/* "grpc-accept-encoding": "identity,deflate,gzip" */
|
499
|
+
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
500
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79], GRPC_MDELEM_STORAGE_STATIC))
|
501
|
+
|
502
|
+
grpc_mdelem grpc_static_mdelem_for_static_strings(int a, int b);
|
503
|
+
typedef enum {
|
504
|
+
GRPC_BATCH_PATH,
|
505
|
+
GRPC_BATCH_METHOD,
|
506
|
+
GRPC_BATCH_STATUS,
|
507
|
+
GRPC_BATCH_AUTHORITY,
|
508
|
+
GRPC_BATCH_SCHEME,
|
509
|
+
GRPC_BATCH_TE,
|
510
|
+
GRPC_BATCH_GRPC_MESSAGE,
|
511
|
+
GRPC_BATCH_GRPC_STATUS,
|
512
|
+
GRPC_BATCH_GRPC_PAYLOAD_BIN,
|
513
|
+
GRPC_BATCH_GRPC_ENCODING,
|
514
|
+
GRPC_BATCH_GRPC_ACCEPT_ENCODING,
|
515
|
+
GRPC_BATCH_CONTENT_TYPE,
|
516
|
+
GRPC_BATCH_GRPC_INTERNAL_ENCODING_REQUEST,
|
517
|
+
GRPC_BATCH_USER_AGENT,
|
518
|
+
GRPC_BATCH_HOST,
|
519
|
+
GRPC_BATCH_LB_TOKEN,
|
520
|
+
GRPC_BATCH_CALLOUTS_COUNT
|
521
|
+
} grpc_metadata_batch_callouts_index;
|
522
|
+
|
523
|
+
typedef union {
|
524
|
+
struct grpc_linked_mdelem *array[GRPC_BATCH_CALLOUTS_COUNT];
|
525
|
+
struct {
|
526
|
+
struct grpc_linked_mdelem *path;
|
527
|
+
struct grpc_linked_mdelem *method;
|
528
|
+
struct grpc_linked_mdelem *status;
|
529
|
+
struct grpc_linked_mdelem *authority;
|
530
|
+
struct grpc_linked_mdelem *scheme;
|
531
|
+
struct grpc_linked_mdelem *te;
|
532
|
+
struct grpc_linked_mdelem *grpc_message;
|
533
|
+
struct grpc_linked_mdelem *grpc_status;
|
534
|
+
struct grpc_linked_mdelem *grpc_payload_bin;
|
535
|
+
struct grpc_linked_mdelem *grpc_encoding;
|
536
|
+
struct grpc_linked_mdelem *grpc_accept_encoding;
|
537
|
+
struct grpc_linked_mdelem *content_type;
|
538
|
+
struct grpc_linked_mdelem *grpc_internal_encoding_request;
|
539
|
+
struct grpc_linked_mdelem *user_agent;
|
540
|
+
struct grpc_linked_mdelem *host;
|
541
|
+
struct grpc_linked_mdelem *lb_token;
|
542
|
+
} named;
|
543
|
+
} grpc_metadata_batch_callouts;
|
544
|
+
|
545
|
+
#define GRPC_BATCH_INDEX_OF(slice) \
|
546
|
+
(GRPC_IS_STATIC_METADATA_STRING((slice)) \
|
547
|
+
? (grpc_metadata_batch_callouts_index)GPR_CLAMP( \
|
548
|
+
GRPC_STATIC_METADATA_INDEX((slice)), 0, \
|
549
|
+
GRPC_BATCH_CALLOUTS_COUNT) \
|
550
|
+
: GRPC_BATCH_CALLOUTS_COUNT)
|
411
551
|
|
412
|
-
extern const uint8_t
|
413
|
-
grpc_static_metadata_elem_indices[GRPC_STATIC_MDELEM_COUNT * 2];
|
414
|
-
extern const char *const grpc_static_metadata_strings[GRPC_STATIC_MDSTR_COUNT];
|
415
552
|
extern const uint8_t grpc_static_accept_encoding_metadata[8];
|
416
|
-
#define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs)
|
417
|
-
(
|
553
|
+
#define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) \
|
554
|
+
(GRPC_MAKE_MDELEM( \
|
555
|
+
&grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]], \
|
556
|
+
GRPC_MDELEM_STORAGE_STATIC))
|
418
557
|
#endif /* GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H */
|