grpc 1.3.4 → 1.4.0
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 +581 -450
- data/include/grpc/census.h +49 -49
- data/include/grpc/grpc.h +16 -70
- data/include/grpc/grpc_security.h +59 -59
- data/include/grpc/grpc_security_constants.h +9 -9
- data/include/grpc/impl/codegen/atm.h +1 -1
- data/include/grpc/impl/codegen/atm_windows.h +4 -4
- data/include/grpc/impl/codegen/byte_buffer_reader.h +2 -2
- data/include/grpc/impl/codegen/compression_types.h +4 -5
- data/include/grpc/impl/codegen/gpr_slice.h +5 -5
- data/include/grpc/impl/codegen/gpr_types.h +6 -7
- data/include/grpc/impl/codegen/grpc_types.h +128 -59
- data/include/grpc/impl/codegen/port_platform.h +6 -0
- data/include/grpc/impl/codegen/propagation_bits.h +2 -2
- data/include/grpc/impl/codegen/slice.h +13 -12
- data/include/grpc/impl/codegen/status.h +23 -18
- data/include/grpc/impl/codegen/sync.h +1 -1
- data/include/grpc/load_reporting.h +6 -6
- data/include/grpc/slice.h +47 -25
- data/include/grpc/slice_buffer.h +18 -14
- data/include/grpc/support/alloc.h +7 -7
- data/include/grpc/support/cmdline.h +10 -10
- data/include/grpc/support/cpu.h +3 -3
- data/include/grpc/support/histogram.h +1 -1
- data/include/grpc/support/host_port.h +2 -2
- data/include/grpc/support/log.h +9 -9
- data/include/grpc/support/log_windows.h +1 -1
- data/include/grpc/support/string_util.h +3 -3
- data/include/grpc/support/subprocess.h +3 -3
- data/include/grpc/support/sync.h +31 -31
- data/include/grpc/support/thd.h +11 -11
- data/include/grpc/support/time.h +12 -12
- data/include/grpc/support/tls.h +1 -1
- data/include/grpc/support/tls_gcc.h +2 -2
- data/include/grpc/support/tls_msvc.h +1 -1
- data/include/grpc/support/tls_pthread.h +1 -1
- data/include/grpc/support/useful.h +2 -2
- data/include/grpc/support/workaround_list.h +46 -0
- data/src/core/ext/census/context.c +1 -1
- data/src/core/ext/census/intrusive_hash_map.c +319 -0
- data/src/core/ext/census/intrusive_hash_map.h +167 -0
- data/src/core/ext/census/intrusive_hash_map_internal.h +63 -0
- data/src/core/ext/census/resource.c +3 -1
- data/src/core/ext/filters/client_channel/channel_connectivity.c +1 -1
- data/src/core/ext/filters/client_channel/client_channel.c +173 -103
- data/src/core/ext/filters/client_channel/client_channel_plugin.c +3 -2
- data/src/core/ext/filters/client_channel/lb_policy.c +2 -1
- data/src/core/ext/filters/client_channel/lb_policy.h +8 -7
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c +153 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +42 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c +405 -102
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c +133 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +65 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c +90 -51
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +7 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +19 -8
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +63 -34
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c +2 -1
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c +188 -294
- data/src/core/ext/filters/client_channel/lb_policy_factory.c +28 -5
- data/src/core/ext/filters/client_channel/lb_policy_factory.h +18 -4
- data/src/core/ext/filters/client_channel/parse_address.c +90 -59
- data/src/core/ext/filters/client_channel/parse_address.h +17 -8
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c +11 -7
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +59 -14
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +6 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c +3 -3
- data/src/core/ext/filters/client_channel/subchannel.c +20 -17
- data/src/core/ext/filters/client_channel/subchannel.h +1 -0
- data/src/core/ext/filters/client_channel/subchannel_index.c +11 -1
- data/src/core/ext/filters/client_channel/uri_parser.c +36 -22
- data/src/core/ext/filters/client_channel/uri_parser.h +1 -1
- data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.c +42 -17
- data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.h +8 -9
- data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.c +19 -11
- data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.h +3 -6
- data/src/core/ext/filters/http/http_filters_plugin.c +104 -0
- data/src/core/{lib/channel/compress_filter.c → ext/filters/http/message_compress/message_compress_filter.c} +124 -23
- data/src/core/{lib/channel/compress_filter.h → ext/filters/http/message_compress/message_compress_filter.h} +5 -6
- data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.c +4 -6
- data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.h +3 -3
- data/src/core/ext/filters/load_reporting/load_reporting.c +2 -25
- data/src/core/ext/filters/load_reporting/load_reporting_filter.c +26 -1
- data/src/core/ext/filters/max_age/max_age_filter.c +14 -14
- data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.c +91 -47
- data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.h +3 -3
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c +223 -0
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h +40 -0
- data/src/core/ext/filters/workarounds/workaround_utils.c +65 -0
- data/src/core/ext/filters/workarounds/workaround_utils.h +52 -0
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +1 -1
- data/src/core/ext/transport/chttp2/server/chttp2_server.c +3 -2
- data/src/core/ext/transport/chttp2/transport/bin_decoder.c +2 -2
- data/src/core/ext/transport/chttp2/transport/bin_encoder.c +3 -3
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +319 -175
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +3 -2
- data/src/core/ext/transport/chttp2/transport/frame_data.c +203 -164
- data/src/core/ext/transport/chttp2/transport/frame_data.h +8 -14
- data/src/core/ext/transport/chttp2/transport/frame_goaway.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.c +5 -5
- data/src/core/ext/transport/chttp2/transport/frame_window_update.c +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +4 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parser.c +2 -4
- data/src/core/ext/transport/chttp2/transport/hpack_table.c +4 -3
- data/src/core/ext/transport/chttp2/transport/internal.h +50 -33
- data/src/core/ext/transport/chttp2/transport/parsing.c +10 -11
- data/src/core/ext/transport/chttp2/transport/writing.c +32 -13
- data/src/core/lib/channel/channel_args.c +30 -9
- data/src/core/lib/channel/channel_args.h +5 -1
- data/src/core/lib/channel/channel_stack.c +1 -1
- data/src/core/lib/channel/channel_stack.h +2 -2
- data/src/core/lib/channel/channel_stack_builder.c +13 -1
- data/src/core/lib/channel/channel_stack_builder.h +5 -1
- data/src/core/lib/channel/connected_channel.c +3 -1
- data/src/core/lib/channel/context.h +2 -2
- data/src/core/lib/compression/message_compress.c +2 -2
- data/src/core/lib/debug/trace.c +13 -6
- data/src/core/lib/debug/trace.h +27 -1
- data/src/core/lib/http/httpcli.c +1 -1
- data/src/core/lib/http/httpcli_security_connector.c +9 -11
- data/src/core/lib/http/parser.c +2 -2
- data/src/core/lib/http/parser.h +2 -1
- data/src/core/lib/iomgr/combiner.c +6 -6
- data/src/core/lib/iomgr/combiner.h +2 -1
- data/src/core/lib/iomgr/error.c +12 -5
- data/src/core/lib/iomgr/error.h +13 -13
- data/src/core/lib/iomgr/ev_epoll1_linux.c +984 -0
- data/src/core/lib/iomgr/ev_epoll1_linux.h +44 -0
- data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c +2146 -0
- data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.h +43 -0
- data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.c +1337 -0
- data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.h +43 -0
- data/src/core/lib/iomgr/ev_epollex_linux.c +1511 -0
- data/src/core/lib/iomgr/ev_epollex_linux.h +43 -0
- data/src/core/lib/iomgr/{ev_epoll_linux.c → ev_epollsig_linux.c} +41 -33
- data/src/core/lib/iomgr/{ev_epoll_linux.h → ev_epollsig_linux.h} +4 -4
- data/src/core/lib/iomgr/ev_poll_posix.c +12 -27
- data/src/core/lib/iomgr/ev_poll_posix.h +2 -2
- data/src/core/lib/iomgr/ev_posix.c +22 -8
- data/src/core/lib/iomgr/ev_posix.h +4 -3
- data/src/core/lib/iomgr/ev_windows.c +43 -0
- data/src/core/lib/iomgr/exec_ctx.c +5 -0
- data/src/core/lib/iomgr/exec_ctx.h +2 -0
- data/src/core/lib/iomgr/iomgr.c +4 -0
- data/src/core/lib/iomgr/iomgr.h +3 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.c +116 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.h +41 -0
- data/src/core/lib/iomgr/lockfree_event.c +16 -0
- data/src/core/lib/iomgr/pollset.h +2 -5
- data/src/core/lib/iomgr/pollset_uv.c +1 -1
- data/src/core/lib/iomgr/pollset_windows.c +3 -3
- data/src/core/lib/iomgr/resource_quota.c +9 -8
- data/src/core/lib/iomgr/resource_quota.h +2 -1
- data/src/core/lib/iomgr/sockaddr_utils.h +1 -1
- data/src/core/lib/iomgr/socket_mutator.h +2 -0
- data/src/core/lib/iomgr/sys_epoll_wrapper.h +43 -0
- data/src/core/lib/iomgr/tcp_client_posix.c +6 -6
- data/src/core/lib/iomgr/tcp_client_uv.c +3 -3
- data/src/core/lib/iomgr/tcp_posix.c +7 -7
- data/src/core/lib/iomgr/tcp_posix.h +2 -1
- data/src/core/lib/iomgr/tcp_server_posix.c +1 -1
- data/src/core/lib/iomgr/tcp_uv.c +6 -6
- data/src/core/lib/iomgr/tcp_uv.h +2 -1
- data/src/core/lib/iomgr/tcp_windows.c +1 -1
- data/src/core/lib/iomgr/timer_generic.c +24 -25
- data/src/core/lib/iomgr/timer_manager.c +276 -0
- data/src/core/lib/iomgr/timer_manager.h +52 -0
- data/src/core/lib/iomgr/timer_uv.c +6 -0
- data/src/core/lib/iomgr/udp_server.c +42 -9
- data/src/core/lib/iomgr/udp_server.h +3 -1
- data/src/core/lib/security/credentials/credentials.c +0 -1
- data/src/core/lib/security/credentials/fake/fake_credentials.c +23 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.h +12 -9
- data/src/core/lib/security/credentials/google_default/google_default_credentials.c +1 -1
- data/src/core/lib/security/credentials/jwt/jwt_credentials.c +1 -1
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.c +1 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.c +24 -53
- data/src/core/lib/security/transport/client_auth_filter.c +9 -3
- data/src/core/lib/security/transport/secure_endpoint.c +7 -7
- data/src/core/lib/security/transport/secure_endpoint.h +1 -1
- data/src/core/lib/security/transport/security_connector.c +45 -57
- data/src/core/lib/security/transport/security_connector.h +10 -14
- data/src/core/lib/security/transport/security_handshaker.c +123 -97
- data/src/core/lib/slice/b64.c +1 -1
- data/src/core/lib/slice/percent_encoding.c +3 -3
- data/src/core/lib/slice/slice.c +66 -33
- data/src/core/lib/slice/slice_buffer.c +25 -6
- data/src/core/lib/slice/slice_hash_table.c +33 -35
- data/src/core/lib/slice/slice_hash_table.h +7 -12
- data/src/core/lib/support/atomic.h +45 -0
- data/src/core/lib/support/atomic_with_atm.h +70 -0
- data/src/core/lib/support/atomic_with_std.h +48 -0
- data/src/core/lib/support/avl.c +14 -14
- data/src/core/lib/support/cmdline.c +3 -3
- data/src/core/lib/support/histogram.c +2 -2
- data/src/core/lib/support/host_port.c +1 -1
- data/src/core/lib/support/memory.h +74 -0
- data/src/core/lib/support/mpscq.c +36 -2
- data/src/core/lib/support/mpscq.h +28 -1
- data/src/core/lib/support/stack_lockfree.c +3 -36
- data/src/core/lib/support/string.c +12 -12
- data/src/core/lib/support/string_posix.c +1 -1
- data/src/core/lib/support/subprocess_posix.c +2 -2
- data/src/core/lib/support/thd_posix.c +1 -1
- data/src/core/lib/support/time_posix.c +8 -0
- data/src/core/lib/support/tmpfile_posix.c +10 -10
- data/src/core/lib/surface/alarm.c +3 -1
- data/src/core/lib/surface/api_trace.c +2 -1
- data/src/core/lib/surface/api_trace.h +2 -2
- data/src/core/lib/surface/byte_buffer_reader.c +1 -1
- data/src/core/lib/surface/call.c +65 -22
- data/src/core/lib/surface/call.h +4 -2
- data/src/core/lib/surface/channel_init.c +2 -19
- data/src/core/lib/surface/channel_stack_type.c +18 -0
- data/src/core/lib/surface/channel_stack_type.h +2 -0
- data/src/core/lib/surface/completion_queue.c +694 -247
- data/src/core/lib/surface/completion_queue.h +30 -13
- data/src/core/lib/surface/completion_queue_factory.c +24 -9
- data/src/core/lib/surface/init.c +1 -52
- data/src/core/lib/surface/{lame_client.c → lame_client.cc} +37 -26
- data/src/core/lib/surface/server.c +79 -110
- data/src/core/lib/surface/server.h +2 -1
- data/src/core/lib/surface/version.c +2 -2
- data/src/core/lib/transport/bdp_estimator.c +25 -9
- data/src/core/lib/transport/bdp_estimator.h +7 -1
- data/src/core/lib/transport/byte_stream.c +23 -9
- data/src/core/lib/transport/byte_stream.h +15 -6
- data/src/core/lib/transport/connectivity_state.c +6 -6
- data/src/core/lib/transport/connectivity_state.h +2 -1
- data/src/core/lib/transport/service_config.c +6 -13
- data/src/core/lib/transport/service_config.h +2 -2
- data/src/core/lib/transport/static_metadata.c +403 -389
- data/src/core/lib/transport/static_metadata.h +127 -114
- data/src/core/plugin_registry/grpc_plugin_registry.c +16 -0
- data/src/core/tsi/fake_transport_security.c +5 -4
- data/src/core/tsi/ssl_transport_security.c +71 -82
- data/src/core/tsi/ssl_transport_security.h +39 -61
- data/src/core/tsi/transport_security.c +83 -2
- data/src/core/tsi/transport_security.h +27 -2
- data/src/core/tsi/transport_security_adapter.c +236 -0
- data/src/core/tsi/transport_security_adapter.h +62 -0
- data/src/core/tsi/transport_security_interface.h +179 -66
- data/src/ruby/ext/grpc/extconf.rb +2 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +8 -6
- data/src/ruby/ext/grpc/rb_call.c +56 -48
- data/src/ruby/ext/grpc/rb_call.h +3 -4
- data/src/ruby/ext/grpc/rb_call_credentials.c +23 -22
- data/src/ruby/ext/grpc/rb_channel.c +2 -3
- data/src/ruby/ext/grpc/rb_channel_args.c +11 -9
- data/src/ruby/ext/grpc/rb_channel_credentials.c +16 -12
- data/src/ruby/ext/grpc/rb_completion_queue.c +7 -9
- data/src/ruby/ext/grpc/rb_compression_options.c +7 -6
- data/src/ruby/ext/grpc/rb_event_thread.c +10 -12
- data/src/ruby/ext/grpc/rb_event_thread.h +1 -2
- data/src/ruby/ext/grpc/rb_grpc.c +11 -15
- data/src/ruby/ext/grpc/rb_grpc.h +2 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +16 -6
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +25 -10
- data/src/ruby/ext/grpc/rb_server.c +26 -28
- data/src/ruby/lib/grpc/grpc.rb +1 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/cares/config_linux/ares_config.h +36 -2
- data/third_party/zlib/adler32.c +14 -7
- data/third_party/zlib/compress.c +24 -18
- data/third_party/zlib/crc32.c +29 -12
- data/third_party/zlib/deflate.c +499 -303
- data/third_party/zlib/deflate.h +19 -16
- data/third_party/zlib/gzguts.h +16 -7
- data/third_party/zlib/gzlib.c +17 -14
- data/third_party/zlib/gzread.c +108 -48
- data/third_party/zlib/gzwrite.c +210 -122
- data/third_party/zlib/infback.c +2 -2
- data/third_party/zlib/inffast.c +34 -51
- data/third_party/zlib/inflate.c +86 -37
- data/third_party/zlib/inflate.h +7 -4
- data/third_party/zlib/inftrees.c +12 -14
- data/third_party/zlib/trees.c +38 -61
- data/third_party/zlib/uncompr.c +66 -32
- data/third_party/zlib/zconf.h +32 -9
- data/third_party/zlib/zlib.h +298 -154
- data/third_party/zlib/zutil.c +25 -24
- data/third_party/zlib/zutil.h +35 -17
- metadata +63 -30
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
#include "src/core/lib/transport/metadata.h"
|
46
46
|
|
47
|
-
#define GRPC_STATIC_MDSTR_COUNT
|
47
|
+
#define GRPC_STATIC_MDSTR_COUNT 99
|
48
48
|
extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT];
|
49
49
|
/* ":path" */
|
50
50
|
#define GRPC_MDSTR_PATH (grpc_static_slice_table[0])
|
@@ -68,182 +68,186 @@ extern const grpc_slice grpc_static_slice_table[GRPC_STATIC_MDSTR_COUNT];
|
|
68
68
|
#define GRPC_MDSTR_GRPC_ENCODING (grpc_static_slice_table[9])
|
69
69
|
/* "grpc-accept-encoding" */
|
70
70
|
#define GRPC_MDSTR_GRPC_ACCEPT_ENCODING (grpc_static_slice_table[10])
|
71
|
+
/* "grpc-server-stats-bin" */
|
72
|
+
#define GRPC_MDSTR_GRPC_SERVER_STATS_BIN (grpc_static_slice_table[11])
|
73
|
+
/* "grpc-tags-bin" */
|
74
|
+
#define GRPC_MDSTR_GRPC_TAGS_BIN (grpc_static_slice_table[12])
|
75
|
+
/* "grpc-trace-bin" */
|
76
|
+
#define GRPC_MDSTR_GRPC_TRACE_BIN (grpc_static_slice_table[13])
|
71
77
|
/* "content-type" */
|
72
|
-
#define GRPC_MDSTR_CONTENT_TYPE (grpc_static_slice_table[
|
78
|
+
#define GRPC_MDSTR_CONTENT_TYPE (grpc_static_slice_table[14])
|
73
79
|
/* "grpc-internal-encoding-request" */
|
74
|
-
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (grpc_static_slice_table[
|
80
|
+
#define GRPC_MDSTR_GRPC_INTERNAL_ENCODING_REQUEST (grpc_static_slice_table[15])
|
75
81
|
/* "user-agent" */
|
76
|
-
#define GRPC_MDSTR_USER_AGENT (grpc_static_slice_table[
|
82
|
+
#define GRPC_MDSTR_USER_AGENT (grpc_static_slice_table[16])
|
77
83
|
/* "host" */
|
78
|
-
#define GRPC_MDSTR_HOST (grpc_static_slice_table[
|
84
|
+
#define GRPC_MDSTR_HOST (grpc_static_slice_table[17])
|
79
85
|
/* "lb-token" */
|
80
|
-
#define GRPC_MDSTR_LB_TOKEN (grpc_static_slice_table[
|
86
|
+
#define GRPC_MDSTR_LB_TOKEN (grpc_static_slice_table[18])
|
81
87
|
/* "grpc-timeout" */
|
82
|
-
#define GRPC_MDSTR_GRPC_TIMEOUT (grpc_static_slice_table[
|
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])
|
88
|
+
#define GRPC_MDSTR_GRPC_TIMEOUT (grpc_static_slice_table[19])
|
87
89
|
/* "" */
|
88
|
-
#define GRPC_MDSTR_EMPTY (grpc_static_slice_table[
|
90
|
+
#define GRPC_MDSTR_EMPTY (grpc_static_slice_table[20])
|
89
91
|
/* "grpc.wait_for_ready" */
|
90
|
-
#define GRPC_MDSTR_GRPC_DOT_WAIT_FOR_READY (grpc_static_slice_table[
|
92
|
+
#define GRPC_MDSTR_GRPC_DOT_WAIT_FOR_READY (grpc_static_slice_table[21])
|
91
93
|
/* "grpc.timeout" */
|
92
|
-
#define GRPC_MDSTR_GRPC_DOT_TIMEOUT (grpc_static_slice_table[
|
94
|
+
#define GRPC_MDSTR_GRPC_DOT_TIMEOUT (grpc_static_slice_table[22])
|
93
95
|
/* "grpc.max_request_message_bytes" */
|
94
96
|
#define GRPC_MDSTR_GRPC_DOT_MAX_REQUEST_MESSAGE_BYTES \
|
95
|
-
(grpc_static_slice_table[
|
97
|
+
(grpc_static_slice_table[23])
|
96
98
|
/* "grpc.max_response_message_bytes" */
|
97
99
|
#define GRPC_MDSTR_GRPC_DOT_MAX_RESPONSE_MESSAGE_BYTES \
|
98
|
-
(grpc_static_slice_table[
|
100
|
+
(grpc_static_slice_table[24])
|
99
101
|
/* "/grpc.lb.v1.LoadBalancer/BalanceLoad" */
|
100
102
|
#define GRPC_MDSTR_SLASH_GRPC_DOT_LB_DOT_V1_DOT_LOADBALANCER_SLASH_BALANCELOAD \
|
101
|
-
(grpc_static_slice_table[
|
103
|
+
(grpc_static_slice_table[25])
|
102
104
|
/* "0" */
|
103
|
-
#define GRPC_MDSTR_0 (grpc_static_slice_table[
|
105
|
+
#define GRPC_MDSTR_0 (grpc_static_slice_table[26])
|
104
106
|
/* "1" */
|
105
|
-
#define GRPC_MDSTR_1 (grpc_static_slice_table[
|
107
|
+
#define GRPC_MDSTR_1 (grpc_static_slice_table[27])
|
106
108
|
/* "2" */
|
107
|
-
#define GRPC_MDSTR_2 (grpc_static_slice_table[
|
109
|
+
#define GRPC_MDSTR_2 (grpc_static_slice_table[28])
|
108
110
|
/* "identity" */
|
109
|
-
#define GRPC_MDSTR_IDENTITY (grpc_static_slice_table[
|
111
|
+
#define GRPC_MDSTR_IDENTITY (grpc_static_slice_table[29])
|
110
112
|
/* "gzip" */
|
111
|
-
#define GRPC_MDSTR_GZIP (grpc_static_slice_table[
|
113
|
+
#define GRPC_MDSTR_GZIP (grpc_static_slice_table[30])
|
112
114
|
/* "deflate" */
|
113
|
-
#define GRPC_MDSTR_DEFLATE (grpc_static_slice_table[
|
115
|
+
#define GRPC_MDSTR_DEFLATE (grpc_static_slice_table[31])
|
114
116
|
/* "trailers" */
|
115
|
-
#define GRPC_MDSTR_TRAILERS (grpc_static_slice_table[
|
117
|
+
#define GRPC_MDSTR_TRAILERS (grpc_static_slice_table[32])
|
116
118
|
/* "application/grpc" */
|
117
|
-
#define GRPC_MDSTR_APPLICATION_SLASH_GRPC (grpc_static_slice_table[
|
119
|
+
#define GRPC_MDSTR_APPLICATION_SLASH_GRPC (grpc_static_slice_table[33])
|
118
120
|
/* "POST" */
|
119
|
-
#define GRPC_MDSTR_POST (grpc_static_slice_table[
|
121
|
+
#define GRPC_MDSTR_POST (grpc_static_slice_table[34])
|
120
122
|
/* "200" */
|
121
|
-
#define GRPC_MDSTR_200 (grpc_static_slice_table[
|
123
|
+
#define GRPC_MDSTR_200 (grpc_static_slice_table[35])
|
122
124
|
/* "404" */
|
123
|
-
#define GRPC_MDSTR_404 (grpc_static_slice_table[
|
125
|
+
#define GRPC_MDSTR_404 (grpc_static_slice_table[36])
|
124
126
|
/* "http" */
|
125
|
-
#define GRPC_MDSTR_HTTP (grpc_static_slice_table[
|
127
|
+
#define GRPC_MDSTR_HTTP (grpc_static_slice_table[37])
|
126
128
|
/* "https" */
|
127
|
-
#define GRPC_MDSTR_HTTPS (grpc_static_slice_table[
|
129
|
+
#define GRPC_MDSTR_HTTPS (grpc_static_slice_table[38])
|
128
130
|
/* "grpc" */
|
129
|
-
#define GRPC_MDSTR_GRPC (grpc_static_slice_table[
|
131
|
+
#define GRPC_MDSTR_GRPC (grpc_static_slice_table[39])
|
130
132
|
/* "GET" */
|
131
|
-
#define GRPC_MDSTR_GET (grpc_static_slice_table[
|
133
|
+
#define GRPC_MDSTR_GET (grpc_static_slice_table[40])
|
132
134
|
/* "PUT" */
|
133
|
-
#define GRPC_MDSTR_PUT (grpc_static_slice_table[
|
135
|
+
#define GRPC_MDSTR_PUT (grpc_static_slice_table[41])
|
134
136
|
/* "/" */
|
135
|
-
#define GRPC_MDSTR_SLASH (grpc_static_slice_table[
|
137
|
+
#define GRPC_MDSTR_SLASH (grpc_static_slice_table[42])
|
136
138
|
/* "/index.html" */
|
137
|
-
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (grpc_static_slice_table[
|
139
|
+
#define GRPC_MDSTR_SLASH_INDEX_DOT_HTML (grpc_static_slice_table[43])
|
138
140
|
/* "204" */
|
139
|
-
#define GRPC_MDSTR_204 (grpc_static_slice_table[
|
141
|
+
#define GRPC_MDSTR_204 (grpc_static_slice_table[44])
|
140
142
|
/* "206" */
|
141
|
-
#define GRPC_MDSTR_206 (grpc_static_slice_table[
|
143
|
+
#define GRPC_MDSTR_206 (grpc_static_slice_table[45])
|
142
144
|
/* "304" */
|
143
|
-
#define GRPC_MDSTR_304 (grpc_static_slice_table[
|
145
|
+
#define GRPC_MDSTR_304 (grpc_static_slice_table[46])
|
144
146
|
/* "400" */
|
145
|
-
#define GRPC_MDSTR_400 (grpc_static_slice_table[
|
147
|
+
#define GRPC_MDSTR_400 (grpc_static_slice_table[47])
|
146
148
|
/* "500" */
|
147
|
-
#define GRPC_MDSTR_500 (grpc_static_slice_table[
|
149
|
+
#define GRPC_MDSTR_500 (grpc_static_slice_table[48])
|
148
150
|
/* "accept-charset" */
|
149
|
-
#define GRPC_MDSTR_ACCEPT_CHARSET (grpc_static_slice_table[
|
151
|
+
#define GRPC_MDSTR_ACCEPT_CHARSET (grpc_static_slice_table[49])
|
150
152
|
/* "accept-encoding" */
|
151
|
-
#define GRPC_MDSTR_ACCEPT_ENCODING (grpc_static_slice_table[
|
153
|
+
#define GRPC_MDSTR_ACCEPT_ENCODING (grpc_static_slice_table[50])
|
152
154
|
/* "gzip, deflate" */
|
153
|
-
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (grpc_static_slice_table[
|
155
|
+
#define GRPC_MDSTR_GZIP_COMMA_DEFLATE (grpc_static_slice_table[51])
|
154
156
|
/* "accept-language" */
|
155
|
-
#define GRPC_MDSTR_ACCEPT_LANGUAGE (grpc_static_slice_table[
|
157
|
+
#define GRPC_MDSTR_ACCEPT_LANGUAGE (grpc_static_slice_table[52])
|
156
158
|
/* "accept-ranges" */
|
157
|
-
#define GRPC_MDSTR_ACCEPT_RANGES (grpc_static_slice_table[
|
159
|
+
#define GRPC_MDSTR_ACCEPT_RANGES (grpc_static_slice_table[53])
|
158
160
|
/* "accept" */
|
159
|
-
#define GRPC_MDSTR_ACCEPT (grpc_static_slice_table[
|
161
|
+
#define GRPC_MDSTR_ACCEPT (grpc_static_slice_table[54])
|
160
162
|
/* "access-control-allow-origin" */
|
161
|
-
#define GRPC_MDSTR_ACCESS_CONTROL_ALLOW_ORIGIN (grpc_static_slice_table[
|
163
|
+
#define GRPC_MDSTR_ACCESS_CONTROL_ALLOW_ORIGIN (grpc_static_slice_table[55])
|
162
164
|
/* "age" */
|
163
|
-
#define GRPC_MDSTR_AGE (grpc_static_slice_table[
|
165
|
+
#define GRPC_MDSTR_AGE (grpc_static_slice_table[56])
|
164
166
|
/* "allow" */
|
165
|
-
#define GRPC_MDSTR_ALLOW (grpc_static_slice_table[
|
167
|
+
#define GRPC_MDSTR_ALLOW (grpc_static_slice_table[57])
|
166
168
|
/* "authorization" */
|
167
|
-
#define GRPC_MDSTR_AUTHORIZATION (grpc_static_slice_table[
|
169
|
+
#define GRPC_MDSTR_AUTHORIZATION (grpc_static_slice_table[58])
|
168
170
|
/* "cache-control" */
|
169
|
-
#define GRPC_MDSTR_CACHE_CONTROL (grpc_static_slice_table[
|
171
|
+
#define GRPC_MDSTR_CACHE_CONTROL (grpc_static_slice_table[59])
|
170
172
|
/* "content-disposition" */
|
171
|
-
#define GRPC_MDSTR_CONTENT_DISPOSITION (grpc_static_slice_table[
|
173
|
+
#define GRPC_MDSTR_CONTENT_DISPOSITION (grpc_static_slice_table[60])
|
172
174
|
/* "content-encoding" */
|
173
|
-
#define GRPC_MDSTR_CONTENT_ENCODING (grpc_static_slice_table[
|
175
|
+
#define GRPC_MDSTR_CONTENT_ENCODING (grpc_static_slice_table[61])
|
174
176
|
/* "content-language" */
|
175
|
-
#define GRPC_MDSTR_CONTENT_LANGUAGE (grpc_static_slice_table[
|
177
|
+
#define GRPC_MDSTR_CONTENT_LANGUAGE (grpc_static_slice_table[62])
|
176
178
|
/* "content-length" */
|
177
|
-
#define GRPC_MDSTR_CONTENT_LENGTH (grpc_static_slice_table[
|
179
|
+
#define GRPC_MDSTR_CONTENT_LENGTH (grpc_static_slice_table[63])
|
178
180
|
/* "content-location" */
|
179
|
-
#define GRPC_MDSTR_CONTENT_LOCATION (grpc_static_slice_table[
|
181
|
+
#define GRPC_MDSTR_CONTENT_LOCATION (grpc_static_slice_table[64])
|
180
182
|
/* "content-range" */
|
181
|
-
#define GRPC_MDSTR_CONTENT_RANGE (grpc_static_slice_table[
|
183
|
+
#define GRPC_MDSTR_CONTENT_RANGE (grpc_static_slice_table[65])
|
182
184
|
/* "cookie" */
|
183
|
-
#define GRPC_MDSTR_COOKIE (grpc_static_slice_table[
|
185
|
+
#define GRPC_MDSTR_COOKIE (grpc_static_slice_table[66])
|
184
186
|
/* "date" */
|
185
|
-
#define GRPC_MDSTR_DATE (grpc_static_slice_table[
|
187
|
+
#define GRPC_MDSTR_DATE (grpc_static_slice_table[67])
|
186
188
|
/* "etag" */
|
187
|
-
#define GRPC_MDSTR_ETAG (grpc_static_slice_table[
|
189
|
+
#define GRPC_MDSTR_ETAG (grpc_static_slice_table[68])
|
188
190
|
/* "expect" */
|
189
|
-
#define GRPC_MDSTR_EXPECT (grpc_static_slice_table[
|
191
|
+
#define GRPC_MDSTR_EXPECT (grpc_static_slice_table[69])
|
190
192
|
/* "expires" */
|
191
|
-
#define GRPC_MDSTR_EXPIRES (grpc_static_slice_table[
|
193
|
+
#define GRPC_MDSTR_EXPIRES (grpc_static_slice_table[70])
|
192
194
|
/* "from" */
|
193
|
-
#define GRPC_MDSTR_FROM (grpc_static_slice_table[
|
195
|
+
#define GRPC_MDSTR_FROM (grpc_static_slice_table[71])
|
194
196
|
/* "if-match" */
|
195
|
-
#define GRPC_MDSTR_IF_MATCH (grpc_static_slice_table[
|
197
|
+
#define GRPC_MDSTR_IF_MATCH (grpc_static_slice_table[72])
|
196
198
|
/* "if-modified-since" */
|
197
|
-
#define GRPC_MDSTR_IF_MODIFIED_SINCE (grpc_static_slice_table[
|
199
|
+
#define GRPC_MDSTR_IF_MODIFIED_SINCE (grpc_static_slice_table[73])
|
198
200
|
/* "if-none-match" */
|
199
|
-
#define GRPC_MDSTR_IF_NONE_MATCH (grpc_static_slice_table[
|
201
|
+
#define GRPC_MDSTR_IF_NONE_MATCH (grpc_static_slice_table[74])
|
200
202
|
/* "if-range" */
|
201
|
-
#define GRPC_MDSTR_IF_RANGE (grpc_static_slice_table[
|
203
|
+
#define GRPC_MDSTR_IF_RANGE (grpc_static_slice_table[75])
|
202
204
|
/* "if-unmodified-since" */
|
203
|
-
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (grpc_static_slice_table[
|
205
|
+
#define GRPC_MDSTR_IF_UNMODIFIED_SINCE (grpc_static_slice_table[76])
|
204
206
|
/* "last-modified" */
|
205
|
-
#define GRPC_MDSTR_LAST_MODIFIED (grpc_static_slice_table[
|
207
|
+
#define GRPC_MDSTR_LAST_MODIFIED (grpc_static_slice_table[77])
|
208
|
+
/* "lb-cost-bin" */
|
209
|
+
#define GRPC_MDSTR_LB_COST_BIN (grpc_static_slice_table[78])
|
206
210
|
/* "link" */
|
207
|
-
#define GRPC_MDSTR_LINK (grpc_static_slice_table[
|
211
|
+
#define GRPC_MDSTR_LINK (grpc_static_slice_table[79])
|
208
212
|
/* "location" */
|
209
|
-
#define GRPC_MDSTR_LOCATION (grpc_static_slice_table[
|
213
|
+
#define GRPC_MDSTR_LOCATION (grpc_static_slice_table[80])
|
210
214
|
/* "max-forwards" */
|
211
|
-
#define GRPC_MDSTR_MAX_FORWARDS (grpc_static_slice_table[
|
215
|
+
#define GRPC_MDSTR_MAX_FORWARDS (grpc_static_slice_table[81])
|
212
216
|
/* "proxy-authenticate" */
|
213
|
-
#define GRPC_MDSTR_PROXY_AUTHENTICATE (grpc_static_slice_table[
|
217
|
+
#define GRPC_MDSTR_PROXY_AUTHENTICATE (grpc_static_slice_table[82])
|
214
218
|
/* "proxy-authorization" */
|
215
|
-
#define GRPC_MDSTR_PROXY_AUTHORIZATION (grpc_static_slice_table[
|
219
|
+
#define GRPC_MDSTR_PROXY_AUTHORIZATION (grpc_static_slice_table[83])
|
216
220
|
/* "range" */
|
217
|
-
#define GRPC_MDSTR_RANGE (grpc_static_slice_table[
|
221
|
+
#define GRPC_MDSTR_RANGE (grpc_static_slice_table[84])
|
218
222
|
/* "referer" */
|
219
|
-
#define GRPC_MDSTR_REFERER (grpc_static_slice_table[
|
223
|
+
#define GRPC_MDSTR_REFERER (grpc_static_slice_table[85])
|
220
224
|
/* "refresh" */
|
221
|
-
#define GRPC_MDSTR_REFRESH (grpc_static_slice_table[
|
225
|
+
#define GRPC_MDSTR_REFRESH (grpc_static_slice_table[86])
|
222
226
|
/* "retry-after" */
|
223
|
-
#define GRPC_MDSTR_RETRY_AFTER (grpc_static_slice_table[
|
227
|
+
#define GRPC_MDSTR_RETRY_AFTER (grpc_static_slice_table[87])
|
224
228
|
/* "server" */
|
225
|
-
#define GRPC_MDSTR_SERVER (grpc_static_slice_table[
|
229
|
+
#define GRPC_MDSTR_SERVER (grpc_static_slice_table[88])
|
226
230
|
/* "set-cookie" */
|
227
|
-
#define GRPC_MDSTR_SET_COOKIE (grpc_static_slice_table[
|
231
|
+
#define GRPC_MDSTR_SET_COOKIE (grpc_static_slice_table[89])
|
228
232
|
/* "strict-transport-security" */
|
229
|
-
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (grpc_static_slice_table[
|
233
|
+
#define GRPC_MDSTR_STRICT_TRANSPORT_SECURITY (grpc_static_slice_table[90])
|
230
234
|
/* "transfer-encoding" */
|
231
|
-
#define GRPC_MDSTR_TRANSFER_ENCODING (grpc_static_slice_table[
|
235
|
+
#define GRPC_MDSTR_TRANSFER_ENCODING (grpc_static_slice_table[91])
|
232
236
|
/* "vary" */
|
233
|
-
#define GRPC_MDSTR_VARY (grpc_static_slice_table[
|
237
|
+
#define GRPC_MDSTR_VARY (grpc_static_slice_table[92])
|
234
238
|
/* "via" */
|
235
|
-
#define GRPC_MDSTR_VIA (grpc_static_slice_table[
|
239
|
+
#define GRPC_MDSTR_VIA (grpc_static_slice_table[93])
|
236
240
|
/* "www-authenticate" */
|
237
|
-
#define GRPC_MDSTR_WWW_AUTHENTICATE (grpc_static_slice_table[
|
241
|
+
#define GRPC_MDSTR_WWW_AUTHENTICATE (grpc_static_slice_table[94])
|
238
242
|
/* "identity,deflate" */
|
239
|
-
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE (grpc_static_slice_table[
|
243
|
+
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE (grpc_static_slice_table[95])
|
240
244
|
/* "identity,gzip" */
|
241
|
-
#define GRPC_MDSTR_IDENTITY_COMMA_GZIP (grpc_static_slice_table[
|
245
|
+
#define GRPC_MDSTR_IDENTITY_COMMA_GZIP (grpc_static_slice_table[96])
|
242
246
|
/* "deflate,gzip" */
|
243
|
-
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (grpc_static_slice_table[
|
247
|
+
#define GRPC_MDSTR_DEFLATE_COMMA_GZIP (grpc_static_slice_table[97])
|
244
248
|
/* "identity,deflate,gzip" */
|
245
249
|
#define GRPC_MDSTR_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
246
|
-
(grpc_static_slice_table[
|
250
|
+
(grpc_static_slice_table[98])
|
247
251
|
|
248
252
|
extern const grpc_slice_refcount_vtable grpc_static_metadata_vtable;
|
249
253
|
extern grpc_slice_refcount
|
@@ -255,7 +259,7 @@ extern grpc_slice_refcount
|
|
255
259
|
#define GRPC_STATIC_METADATA_INDEX(static_slice) \
|
256
260
|
((int)((static_slice).refcount - grpc_static_metadata_refcounts))
|
257
261
|
|
258
|
-
#define GRPC_STATIC_MDELEM_COUNT
|
262
|
+
#define GRPC_STATIC_MDELEM_COUNT 81
|
259
263
|
extern grpc_mdelem_data grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];
|
260
264
|
extern uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT];
|
261
265
|
/* "grpc-status": "0" */
|
@@ -426,78 +430,81 @@ extern uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT];
|
|
426
430
|
/* "lb-token": "" */
|
427
431
|
#define GRPC_MDELEM_LB_TOKEN_EMPTY \
|
428
432
|
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55], GRPC_MDELEM_STORAGE_STATIC))
|
433
|
+
/* "lb-cost-bin": "" */
|
434
|
+
#define GRPC_MDELEM_LB_COST_BIN_EMPTY \
|
435
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56], GRPC_MDELEM_STORAGE_STATIC))
|
429
436
|
/* "link": "" */
|
430
437
|
#define GRPC_MDELEM_LINK_EMPTY \
|
431
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
438
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57], GRPC_MDELEM_STORAGE_STATIC))
|
432
439
|
/* "location": "" */
|
433
440
|
#define GRPC_MDELEM_LOCATION_EMPTY \
|
434
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
441
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58], GRPC_MDELEM_STORAGE_STATIC))
|
435
442
|
/* "max-forwards": "" */
|
436
443
|
#define GRPC_MDELEM_MAX_FORWARDS_EMPTY \
|
437
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
444
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59], GRPC_MDELEM_STORAGE_STATIC))
|
438
445
|
/* "proxy-authenticate": "" */
|
439
446
|
#define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY \
|
440
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
447
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60], GRPC_MDELEM_STORAGE_STATIC))
|
441
448
|
/* "proxy-authorization": "" */
|
442
449
|
#define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY \
|
443
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
450
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61], GRPC_MDELEM_STORAGE_STATIC))
|
444
451
|
/* "range": "" */
|
445
452
|
#define GRPC_MDELEM_RANGE_EMPTY \
|
446
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
453
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62], GRPC_MDELEM_STORAGE_STATIC))
|
447
454
|
/* "referer": "" */
|
448
455
|
#define GRPC_MDELEM_REFERER_EMPTY \
|
449
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
456
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63], GRPC_MDELEM_STORAGE_STATIC))
|
450
457
|
/* "refresh": "" */
|
451
458
|
#define GRPC_MDELEM_REFRESH_EMPTY \
|
452
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
459
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64], GRPC_MDELEM_STORAGE_STATIC))
|
453
460
|
/* "retry-after": "" */
|
454
461
|
#define GRPC_MDELEM_RETRY_AFTER_EMPTY \
|
455
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
462
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65], GRPC_MDELEM_STORAGE_STATIC))
|
456
463
|
/* "server": "" */
|
457
464
|
#define GRPC_MDELEM_SERVER_EMPTY \
|
458
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
465
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66], GRPC_MDELEM_STORAGE_STATIC))
|
459
466
|
/* "set-cookie": "" */
|
460
467
|
#define GRPC_MDELEM_SET_COOKIE_EMPTY \
|
461
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
468
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67], GRPC_MDELEM_STORAGE_STATIC))
|
462
469
|
/* "strict-transport-security": "" */
|
463
470
|
#define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \
|
464
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
471
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68], GRPC_MDELEM_STORAGE_STATIC))
|
465
472
|
/* "transfer-encoding": "" */
|
466
473
|
#define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY \
|
467
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
474
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69], GRPC_MDELEM_STORAGE_STATIC))
|
468
475
|
/* "user-agent": "" */
|
469
476
|
#define GRPC_MDELEM_USER_AGENT_EMPTY \
|
470
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
477
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70], GRPC_MDELEM_STORAGE_STATIC))
|
471
478
|
/* "vary": "" */
|
472
479
|
#define GRPC_MDELEM_VARY_EMPTY \
|
473
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
480
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71], GRPC_MDELEM_STORAGE_STATIC))
|
474
481
|
/* "via": "" */
|
475
482
|
#define GRPC_MDELEM_VIA_EMPTY \
|
476
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
483
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72], GRPC_MDELEM_STORAGE_STATIC))
|
477
484
|
/* "www-authenticate": "" */
|
478
485
|
#define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY \
|
479
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
486
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73], GRPC_MDELEM_STORAGE_STATIC))
|
480
487
|
/* "grpc-accept-encoding": "identity" */
|
481
488
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \
|
482
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
489
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74], GRPC_MDELEM_STORAGE_STATIC))
|
483
490
|
/* "grpc-accept-encoding": "deflate" */
|
484
491
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE \
|
485
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
492
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75], GRPC_MDELEM_STORAGE_STATIC))
|
486
493
|
/* "grpc-accept-encoding": "identity,deflate" */
|
487
494
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \
|
488
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
495
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76], GRPC_MDELEM_STORAGE_STATIC))
|
489
496
|
/* "grpc-accept-encoding": "gzip" */
|
490
497
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP \
|
491
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
498
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77], GRPC_MDELEM_STORAGE_STATIC))
|
492
499
|
/* "grpc-accept-encoding": "identity,gzip" */
|
493
500
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
|
494
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
501
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78], GRPC_MDELEM_STORAGE_STATIC))
|
495
502
|
/* "grpc-accept-encoding": "deflate,gzip" */
|
496
503
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \
|
497
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
504
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79], GRPC_MDELEM_STORAGE_STATIC))
|
498
505
|
/* "grpc-accept-encoding": "identity,deflate,gzip" */
|
499
506
|
#define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
|
500
|
-
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[
|
507
|
+
(GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[80], GRPC_MDELEM_STORAGE_STATIC))
|
501
508
|
|
502
509
|
grpc_mdelem grpc_static_mdelem_for_static_strings(int a, int b);
|
503
510
|
typedef enum {
|
@@ -512,6 +519,9 @@ typedef enum {
|
|
512
519
|
GRPC_BATCH_GRPC_PAYLOAD_BIN,
|
513
520
|
GRPC_BATCH_GRPC_ENCODING,
|
514
521
|
GRPC_BATCH_GRPC_ACCEPT_ENCODING,
|
522
|
+
GRPC_BATCH_GRPC_SERVER_STATS_BIN,
|
523
|
+
GRPC_BATCH_GRPC_TAGS_BIN,
|
524
|
+
GRPC_BATCH_GRPC_TRACE_BIN,
|
515
525
|
GRPC_BATCH_CONTENT_TYPE,
|
516
526
|
GRPC_BATCH_GRPC_INTERNAL_ENCODING_REQUEST,
|
517
527
|
GRPC_BATCH_USER_AGENT,
|
@@ -534,6 +544,9 @@ typedef union {
|
|
534
544
|
struct grpc_linked_mdelem *grpc_payload_bin;
|
535
545
|
struct grpc_linked_mdelem *grpc_encoding;
|
536
546
|
struct grpc_linked_mdelem *grpc_accept_encoding;
|
547
|
+
struct grpc_linked_mdelem *grpc_server_stats_bin;
|
548
|
+
struct grpc_linked_mdelem *grpc_tags_bin;
|
549
|
+
struct grpc_linked_mdelem *grpc_trace_bin;
|
537
550
|
struct grpc_linked_mdelem *content_type;
|
538
551
|
struct grpc_linked_mdelem *grpc_internal_encoding_request;
|
539
552
|
struct grpc_linked_mdelem *user_agent;
|
@@ -33,8 +33,12 @@
|
|
33
33
|
|
34
34
|
#include <grpc/grpc.h>
|
35
35
|
|
36
|
+
extern void grpc_http_filters_init(void);
|
37
|
+
extern void grpc_http_filters_shutdown(void);
|
36
38
|
extern void grpc_chttp2_plugin_init(void);
|
37
39
|
extern void grpc_chttp2_plugin_shutdown(void);
|
40
|
+
extern void grpc_deadline_filter_init(void);
|
41
|
+
extern void grpc_deadline_filter_shutdown(void);
|
38
42
|
extern void grpc_client_channel_init(void);
|
39
43
|
extern void grpc_client_channel_shutdown(void);
|
40
44
|
extern void grpc_lb_policy_grpclb_init(void);
|
@@ -55,10 +59,18 @@ extern void census_grpc_plugin_init(void);
|
|
55
59
|
extern void census_grpc_plugin_shutdown(void);
|
56
60
|
extern void grpc_max_age_filter_init(void);
|
57
61
|
extern void grpc_max_age_filter_shutdown(void);
|
62
|
+
extern void grpc_message_size_filter_init(void);
|
63
|
+
extern void grpc_message_size_filter_shutdown(void);
|
64
|
+
extern void grpc_workaround_cronet_compression_filter_init(void);
|
65
|
+
extern void grpc_workaround_cronet_compression_filter_shutdown(void);
|
58
66
|
|
59
67
|
void grpc_register_built_in_plugins(void) {
|
68
|
+
grpc_register_plugin(grpc_http_filters_init,
|
69
|
+
grpc_http_filters_shutdown);
|
60
70
|
grpc_register_plugin(grpc_chttp2_plugin_init,
|
61
71
|
grpc_chttp2_plugin_shutdown);
|
72
|
+
grpc_register_plugin(grpc_deadline_filter_init,
|
73
|
+
grpc_deadline_filter_shutdown);
|
62
74
|
grpc_register_plugin(grpc_client_channel_init,
|
63
75
|
grpc_client_channel_shutdown);
|
64
76
|
grpc_register_plugin(grpc_lb_policy_grpclb_init,
|
@@ -79,4 +91,8 @@ void grpc_register_built_in_plugins(void) {
|
|
79
91
|
census_grpc_plugin_shutdown);
|
80
92
|
grpc_register_plugin(grpc_max_age_filter_init,
|
81
93
|
grpc_max_age_filter_shutdown);
|
94
|
+
grpc_register_plugin(grpc_message_size_filter_init,
|
95
|
+
grpc_message_size_filter_shutdown);
|
96
|
+
grpc_register_plugin(grpc_workaround_cronet_compression_filter_init,
|
97
|
+
grpc_workaround_cronet_compression_filter_shutdown);
|
82
98
|
}
|