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.

Files changed (286) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +581 -450
  3. data/include/grpc/census.h +49 -49
  4. data/include/grpc/grpc.h +16 -70
  5. data/include/grpc/grpc_security.h +59 -59
  6. data/include/grpc/grpc_security_constants.h +9 -9
  7. data/include/grpc/impl/codegen/atm.h +1 -1
  8. data/include/grpc/impl/codegen/atm_windows.h +4 -4
  9. data/include/grpc/impl/codegen/byte_buffer_reader.h +2 -2
  10. data/include/grpc/impl/codegen/compression_types.h +4 -5
  11. data/include/grpc/impl/codegen/gpr_slice.h +5 -5
  12. data/include/grpc/impl/codegen/gpr_types.h +6 -7
  13. data/include/grpc/impl/codegen/grpc_types.h +128 -59
  14. data/include/grpc/impl/codegen/port_platform.h +6 -0
  15. data/include/grpc/impl/codegen/propagation_bits.h +2 -2
  16. data/include/grpc/impl/codegen/slice.h +13 -12
  17. data/include/grpc/impl/codegen/status.h +23 -18
  18. data/include/grpc/impl/codegen/sync.h +1 -1
  19. data/include/grpc/load_reporting.h +6 -6
  20. data/include/grpc/slice.h +47 -25
  21. data/include/grpc/slice_buffer.h +18 -14
  22. data/include/grpc/support/alloc.h +7 -7
  23. data/include/grpc/support/cmdline.h +10 -10
  24. data/include/grpc/support/cpu.h +3 -3
  25. data/include/grpc/support/histogram.h +1 -1
  26. data/include/grpc/support/host_port.h +2 -2
  27. data/include/grpc/support/log.h +9 -9
  28. data/include/grpc/support/log_windows.h +1 -1
  29. data/include/grpc/support/string_util.h +3 -3
  30. data/include/grpc/support/subprocess.h +3 -3
  31. data/include/grpc/support/sync.h +31 -31
  32. data/include/grpc/support/thd.h +11 -11
  33. data/include/grpc/support/time.h +12 -12
  34. data/include/grpc/support/tls.h +1 -1
  35. data/include/grpc/support/tls_gcc.h +2 -2
  36. data/include/grpc/support/tls_msvc.h +1 -1
  37. data/include/grpc/support/tls_pthread.h +1 -1
  38. data/include/grpc/support/useful.h +2 -2
  39. data/include/grpc/support/workaround_list.h +46 -0
  40. data/src/core/ext/census/context.c +1 -1
  41. data/src/core/ext/census/intrusive_hash_map.c +319 -0
  42. data/src/core/ext/census/intrusive_hash_map.h +167 -0
  43. data/src/core/ext/census/intrusive_hash_map_internal.h +63 -0
  44. data/src/core/ext/census/resource.c +3 -1
  45. data/src/core/ext/filters/client_channel/channel_connectivity.c +1 -1
  46. data/src/core/ext/filters/client_channel/client_channel.c +173 -103
  47. data/src/core/ext/filters/client_channel/client_channel_plugin.c +3 -2
  48. data/src/core/ext/filters/client_channel/lb_policy.c +2 -1
  49. data/src/core/ext/filters/client_channel/lb_policy.h +8 -7
  50. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c +153 -0
  51. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +42 -0
  52. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c +405 -102
  53. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c +133 -0
  54. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +65 -0
  55. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c +90 -51
  56. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +7 -1
  57. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +19 -8
  58. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +63 -34
  59. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c +2 -1
  60. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c +188 -294
  61. data/src/core/ext/filters/client_channel/lb_policy_factory.c +28 -5
  62. data/src/core/ext/filters/client_channel/lb_policy_factory.h +18 -4
  63. data/src/core/ext/filters/client_channel/parse_address.c +90 -59
  64. data/src/core/ext/filters/client_channel/parse_address.h +17 -8
  65. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c +11 -7
  66. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +59 -14
  67. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +6 -0
  68. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c +3 -3
  69. data/src/core/ext/filters/client_channel/subchannel.c +20 -17
  70. data/src/core/ext/filters/client_channel/subchannel.h +1 -0
  71. data/src/core/ext/filters/client_channel/subchannel_index.c +11 -1
  72. data/src/core/ext/filters/client_channel/uri_parser.c +36 -22
  73. data/src/core/ext/filters/client_channel/uri_parser.h +1 -1
  74. data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.c +42 -17
  75. data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.h +8 -9
  76. data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.c +19 -11
  77. data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.h +3 -6
  78. data/src/core/ext/filters/http/http_filters_plugin.c +104 -0
  79. data/src/core/{lib/channel/compress_filter.c → ext/filters/http/message_compress/message_compress_filter.c} +124 -23
  80. data/src/core/{lib/channel/compress_filter.h → ext/filters/http/message_compress/message_compress_filter.h} +5 -6
  81. data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.c +4 -6
  82. data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.h +3 -3
  83. data/src/core/ext/filters/load_reporting/load_reporting.c +2 -25
  84. data/src/core/ext/filters/load_reporting/load_reporting_filter.c +26 -1
  85. data/src/core/ext/filters/max_age/max_age_filter.c +14 -14
  86. data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.c +91 -47
  87. data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.h +3 -3
  88. data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c +223 -0
  89. data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h +40 -0
  90. data/src/core/ext/filters/workarounds/workaround_utils.c +65 -0
  91. data/src/core/ext/filters/workarounds/workaround_utils.h +52 -0
  92. data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +1 -1
  93. data/src/core/ext/transport/chttp2/server/chttp2_server.c +3 -2
  94. data/src/core/ext/transport/chttp2/transport/bin_decoder.c +2 -2
  95. data/src/core/ext/transport/chttp2/transport/bin_encoder.c +3 -3
  96. data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +319 -175
  97. data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +3 -2
  98. data/src/core/ext/transport/chttp2/transport/frame_data.c +203 -164
  99. data/src/core/ext/transport/chttp2/transport/frame_data.h +8 -14
  100. data/src/core/ext/transport/chttp2/transport/frame_goaway.c +1 -1
  101. data/src/core/ext/transport/chttp2/transport/frame_ping.c +1 -1
  102. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +1 -1
  103. data/src/core/ext/transport/chttp2/transport/frame_settings.c +5 -5
  104. data/src/core/ext/transport/chttp2/transport/frame_window_update.c +1 -1
  105. data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +4 -4
  106. data/src/core/ext/transport/chttp2/transport/hpack_parser.c +2 -4
  107. data/src/core/ext/transport/chttp2/transport/hpack_table.c +4 -3
  108. data/src/core/ext/transport/chttp2/transport/internal.h +50 -33
  109. data/src/core/ext/transport/chttp2/transport/parsing.c +10 -11
  110. data/src/core/ext/transport/chttp2/transport/writing.c +32 -13
  111. data/src/core/lib/channel/channel_args.c +30 -9
  112. data/src/core/lib/channel/channel_args.h +5 -1
  113. data/src/core/lib/channel/channel_stack.c +1 -1
  114. data/src/core/lib/channel/channel_stack.h +2 -2
  115. data/src/core/lib/channel/channel_stack_builder.c +13 -1
  116. data/src/core/lib/channel/channel_stack_builder.h +5 -1
  117. data/src/core/lib/channel/connected_channel.c +3 -1
  118. data/src/core/lib/channel/context.h +2 -2
  119. data/src/core/lib/compression/message_compress.c +2 -2
  120. data/src/core/lib/debug/trace.c +13 -6
  121. data/src/core/lib/debug/trace.h +27 -1
  122. data/src/core/lib/http/httpcli.c +1 -1
  123. data/src/core/lib/http/httpcli_security_connector.c +9 -11
  124. data/src/core/lib/http/parser.c +2 -2
  125. data/src/core/lib/http/parser.h +2 -1
  126. data/src/core/lib/iomgr/combiner.c +6 -6
  127. data/src/core/lib/iomgr/combiner.h +2 -1
  128. data/src/core/lib/iomgr/error.c +12 -5
  129. data/src/core/lib/iomgr/error.h +13 -13
  130. data/src/core/lib/iomgr/ev_epoll1_linux.c +984 -0
  131. data/src/core/lib/iomgr/ev_epoll1_linux.h +44 -0
  132. data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c +2146 -0
  133. data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.h +43 -0
  134. data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.c +1337 -0
  135. data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.h +43 -0
  136. data/src/core/lib/iomgr/ev_epollex_linux.c +1511 -0
  137. data/src/core/lib/iomgr/ev_epollex_linux.h +43 -0
  138. data/src/core/lib/iomgr/{ev_epoll_linux.c → ev_epollsig_linux.c} +41 -33
  139. data/src/core/lib/iomgr/{ev_epoll_linux.h → ev_epollsig_linux.h} +4 -4
  140. data/src/core/lib/iomgr/ev_poll_posix.c +12 -27
  141. data/src/core/lib/iomgr/ev_poll_posix.h +2 -2
  142. data/src/core/lib/iomgr/ev_posix.c +22 -8
  143. data/src/core/lib/iomgr/ev_posix.h +4 -3
  144. data/src/core/lib/iomgr/ev_windows.c +43 -0
  145. data/src/core/lib/iomgr/exec_ctx.c +5 -0
  146. data/src/core/lib/iomgr/exec_ctx.h +2 -0
  147. data/src/core/lib/iomgr/iomgr.c +4 -0
  148. data/src/core/lib/iomgr/iomgr.h +3 -0
  149. data/src/core/lib/iomgr/is_epollexclusive_available.c +116 -0
  150. data/src/core/lib/iomgr/is_epollexclusive_available.h +41 -0
  151. data/src/core/lib/iomgr/lockfree_event.c +16 -0
  152. data/src/core/lib/iomgr/pollset.h +2 -5
  153. data/src/core/lib/iomgr/pollset_uv.c +1 -1
  154. data/src/core/lib/iomgr/pollset_windows.c +3 -3
  155. data/src/core/lib/iomgr/resource_quota.c +9 -8
  156. data/src/core/lib/iomgr/resource_quota.h +2 -1
  157. data/src/core/lib/iomgr/sockaddr_utils.h +1 -1
  158. data/src/core/lib/iomgr/socket_mutator.h +2 -0
  159. data/src/core/lib/iomgr/sys_epoll_wrapper.h +43 -0
  160. data/src/core/lib/iomgr/tcp_client_posix.c +6 -6
  161. data/src/core/lib/iomgr/tcp_client_uv.c +3 -3
  162. data/src/core/lib/iomgr/tcp_posix.c +7 -7
  163. data/src/core/lib/iomgr/tcp_posix.h +2 -1
  164. data/src/core/lib/iomgr/tcp_server_posix.c +1 -1
  165. data/src/core/lib/iomgr/tcp_uv.c +6 -6
  166. data/src/core/lib/iomgr/tcp_uv.h +2 -1
  167. data/src/core/lib/iomgr/tcp_windows.c +1 -1
  168. data/src/core/lib/iomgr/timer_generic.c +24 -25
  169. data/src/core/lib/iomgr/timer_manager.c +276 -0
  170. data/src/core/lib/iomgr/timer_manager.h +52 -0
  171. data/src/core/lib/iomgr/timer_uv.c +6 -0
  172. data/src/core/lib/iomgr/udp_server.c +42 -9
  173. data/src/core/lib/iomgr/udp_server.h +3 -1
  174. data/src/core/lib/security/credentials/credentials.c +0 -1
  175. data/src/core/lib/security/credentials/fake/fake_credentials.c +23 -0
  176. data/src/core/lib/security/credentials/fake/fake_credentials.h +12 -9
  177. data/src/core/lib/security/credentials/google_default/google_default_credentials.c +1 -1
  178. data/src/core/lib/security/credentials/jwt/jwt_credentials.c +1 -1
  179. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.c +1 -1
  180. data/src/core/lib/security/credentials/ssl/ssl_credentials.c +24 -53
  181. data/src/core/lib/security/transport/client_auth_filter.c +9 -3
  182. data/src/core/lib/security/transport/secure_endpoint.c +7 -7
  183. data/src/core/lib/security/transport/secure_endpoint.h +1 -1
  184. data/src/core/lib/security/transport/security_connector.c +45 -57
  185. data/src/core/lib/security/transport/security_connector.h +10 -14
  186. data/src/core/lib/security/transport/security_handshaker.c +123 -97
  187. data/src/core/lib/slice/b64.c +1 -1
  188. data/src/core/lib/slice/percent_encoding.c +3 -3
  189. data/src/core/lib/slice/slice.c +66 -33
  190. data/src/core/lib/slice/slice_buffer.c +25 -6
  191. data/src/core/lib/slice/slice_hash_table.c +33 -35
  192. data/src/core/lib/slice/slice_hash_table.h +7 -12
  193. data/src/core/lib/support/atomic.h +45 -0
  194. data/src/core/lib/support/atomic_with_atm.h +70 -0
  195. data/src/core/lib/support/atomic_with_std.h +48 -0
  196. data/src/core/lib/support/avl.c +14 -14
  197. data/src/core/lib/support/cmdline.c +3 -3
  198. data/src/core/lib/support/histogram.c +2 -2
  199. data/src/core/lib/support/host_port.c +1 -1
  200. data/src/core/lib/support/memory.h +74 -0
  201. data/src/core/lib/support/mpscq.c +36 -2
  202. data/src/core/lib/support/mpscq.h +28 -1
  203. data/src/core/lib/support/stack_lockfree.c +3 -36
  204. data/src/core/lib/support/string.c +12 -12
  205. data/src/core/lib/support/string_posix.c +1 -1
  206. data/src/core/lib/support/subprocess_posix.c +2 -2
  207. data/src/core/lib/support/thd_posix.c +1 -1
  208. data/src/core/lib/support/time_posix.c +8 -0
  209. data/src/core/lib/support/tmpfile_posix.c +10 -10
  210. data/src/core/lib/surface/alarm.c +3 -1
  211. data/src/core/lib/surface/api_trace.c +2 -1
  212. data/src/core/lib/surface/api_trace.h +2 -2
  213. data/src/core/lib/surface/byte_buffer_reader.c +1 -1
  214. data/src/core/lib/surface/call.c +65 -22
  215. data/src/core/lib/surface/call.h +4 -2
  216. data/src/core/lib/surface/channel_init.c +2 -19
  217. data/src/core/lib/surface/channel_stack_type.c +18 -0
  218. data/src/core/lib/surface/channel_stack_type.h +2 -0
  219. data/src/core/lib/surface/completion_queue.c +694 -247
  220. data/src/core/lib/surface/completion_queue.h +30 -13
  221. data/src/core/lib/surface/completion_queue_factory.c +24 -9
  222. data/src/core/lib/surface/init.c +1 -52
  223. data/src/core/lib/surface/{lame_client.c → lame_client.cc} +37 -26
  224. data/src/core/lib/surface/server.c +79 -110
  225. data/src/core/lib/surface/server.h +2 -1
  226. data/src/core/lib/surface/version.c +2 -2
  227. data/src/core/lib/transport/bdp_estimator.c +25 -9
  228. data/src/core/lib/transport/bdp_estimator.h +7 -1
  229. data/src/core/lib/transport/byte_stream.c +23 -9
  230. data/src/core/lib/transport/byte_stream.h +15 -6
  231. data/src/core/lib/transport/connectivity_state.c +6 -6
  232. data/src/core/lib/transport/connectivity_state.h +2 -1
  233. data/src/core/lib/transport/service_config.c +6 -13
  234. data/src/core/lib/transport/service_config.h +2 -2
  235. data/src/core/lib/transport/static_metadata.c +403 -389
  236. data/src/core/lib/transport/static_metadata.h +127 -114
  237. data/src/core/plugin_registry/grpc_plugin_registry.c +16 -0
  238. data/src/core/tsi/fake_transport_security.c +5 -4
  239. data/src/core/tsi/ssl_transport_security.c +71 -82
  240. data/src/core/tsi/ssl_transport_security.h +39 -61
  241. data/src/core/tsi/transport_security.c +83 -2
  242. data/src/core/tsi/transport_security.h +27 -2
  243. data/src/core/tsi/transport_security_adapter.c +236 -0
  244. data/src/core/tsi/transport_security_adapter.h +62 -0
  245. data/src/core/tsi/transport_security_interface.h +179 -66
  246. data/src/ruby/ext/grpc/extconf.rb +2 -1
  247. data/src/ruby/ext/grpc/rb_byte_buffer.c +8 -6
  248. data/src/ruby/ext/grpc/rb_call.c +56 -48
  249. data/src/ruby/ext/grpc/rb_call.h +3 -4
  250. data/src/ruby/ext/grpc/rb_call_credentials.c +23 -22
  251. data/src/ruby/ext/grpc/rb_channel.c +2 -3
  252. data/src/ruby/ext/grpc/rb_channel_args.c +11 -9
  253. data/src/ruby/ext/grpc/rb_channel_credentials.c +16 -12
  254. data/src/ruby/ext/grpc/rb_completion_queue.c +7 -9
  255. data/src/ruby/ext/grpc/rb_compression_options.c +7 -6
  256. data/src/ruby/ext/grpc/rb_event_thread.c +10 -12
  257. data/src/ruby/ext/grpc/rb_event_thread.h +1 -2
  258. data/src/ruby/ext/grpc/rb_grpc.c +11 -15
  259. data/src/ruby/ext/grpc/rb_grpc.h +2 -2
  260. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +16 -6
  261. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +25 -10
  262. data/src/ruby/ext/grpc/rb_server.c +26 -28
  263. data/src/ruby/lib/grpc/grpc.rb +1 -1
  264. data/src/ruby/lib/grpc/version.rb +1 -1
  265. data/third_party/cares/config_linux/ares_config.h +36 -2
  266. data/third_party/zlib/adler32.c +14 -7
  267. data/third_party/zlib/compress.c +24 -18
  268. data/third_party/zlib/crc32.c +29 -12
  269. data/third_party/zlib/deflate.c +499 -303
  270. data/third_party/zlib/deflate.h +19 -16
  271. data/third_party/zlib/gzguts.h +16 -7
  272. data/third_party/zlib/gzlib.c +17 -14
  273. data/third_party/zlib/gzread.c +108 -48
  274. data/third_party/zlib/gzwrite.c +210 -122
  275. data/third_party/zlib/infback.c +2 -2
  276. data/third_party/zlib/inffast.c +34 -51
  277. data/third_party/zlib/inflate.c +86 -37
  278. data/third_party/zlib/inflate.h +7 -4
  279. data/third_party/zlib/inftrees.c +12 -14
  280. data/third_party/zlib/trees.c +38 -61
  281. data/third_party/zlib/uncompr.c +66 -32
  282. data/third_party/zlib/zconf.h +32 -9
  283. data/third_party/zlib/zlib.h +298 -154
  284. data/third_party/zlib/zutil.c +25 -24
  285. data/third_party/zlib/zutil.h +35 -17
  286. 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 97
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[11])
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[12])
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[13])
82
+ #define GRPC_MDSTR_USER_AGENT (grpc_static_slice_table[16])
77
83
  /* "host" */
78
- #define GRPC_MDSTR_HOST (grpc_static_slice_table[14])
84
+ #define GRPC_MDSTR_HOST (grpc_static_slice_table[17])
79
85
  /* "lb-token" */
80
- #define GRPC_MDSTR_LB_TOKEN (grpc_static_slice_table[15])
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[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])
88
+ #define GRPC_MDSTR_GRPC_TIMEOUT (grpc_static_slice_table[19])
87
89
  /* "" */
88
- #define GRPC_MDSTR_EMPTY (grpc_static_slice_table[19])
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[20])
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[21])
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[22])
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[23])
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[24])
103
+ (grpc_static_slice_table[25])
102
104
  /* "0" */
103
- #define GRPC_MDSTR_0 (grpc_static_slice_table[25])
105
+ #define GRPC_MDSTR_0 (grpc_static_slice_table[26])
104
106
  /* "1" */
105
- #define GRPC_MDSTR_1 (grpc_static_slice_table[26])
107
+ #define GRPC_MDSTR_1 (grpc_static_slice_table[27])
106
108
  /* "2" */
107
- #define GRPC_MDSTR_2 (grpc_static_slice_table[27])
109
+ #define GRPC_MDSTR_2 (grpc_static_slice_table[28])
108
110
  /* "identity" */
109
- #define GRPC_MDSTR_IDENTITY (grpc_static_slice_table[28])
111
+ #define GRPC_MDSTR_IDENTITY (grpc_static_slice_table[29])
110
112
  /* "gzip" */
111
- #define GRPC_MDSTR_GZIP (grpc_static_slice_table[29])
113
+ #define GRPC_MDSTR_GZIP (grpc_static_slice_table[30])
112
114
  /* "deflate" */
113
- #define GRPC_MDSTR_DEFLATE (grpc_static_slice_table[30])
115
+ #define GRPC_MDSTR_DEFLATE (grpc_static_slice_table[31])
114
116
  /* "trailers" */
115
- #define GRPC_MDSTR_TRAILERS (grpc_static_slice_table[31])
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[32])
119
+ #define GRPC_MDSTR_APPLICATION_SLASH_GRPC (grpc_static_slice_table[33])
118
120
  /* "POST" */
119
- #define GRPC_MDSTR_POST (grpc_static_slice_table[33])
121
+ #define GRPC_MDSTR_POST (grpc_static_slice_table[34])
120
122
  /* "200" */
121
- #define GRPC_MDSTR_200 (grpc_static_slice_table[34])
123
+ #define GRPC_MDSTR_200 (grpc_static_slice_table[35])
122
124
  /* "404" */
123
- #define GRPC_MDSTR_404 (grpc_static_slice_table[35])
125
+ #define GRPC_MDSTR_404 (grpc_static_slice_table[36])
124
126
  /* "http" */
125
- #define GRPC_MDSTR_HTTP (grpc_static_slice_table[36])
127
+ #define GRPC_MDSTR_HTTP (grpc_static_slice_table[37])
126
128
  /* "https" */
127
- #define GRPC_MDSTR_HTTPS (grpc_static_slice_table[37])
129
+ #define GRPC_MDSTR_HTTPS (grpc_static_slice_table[38])
128
130
  /* "grpc" */
129
- #define GRPC_MDSTR_GRPC (grpc_static_slice_table[38])
131
+ #define GRPC_MDSTR_GRPC (grpc_static_slice_table[39])
130
132
  /* "GET" */
131
- #define GRPC_MDSTR_GET (grpc_static_slice_table[39])
133
+ #define GRPC_MDSTR_GET (grpc_static_slice_table[40])
132
134
  /* "PUT" */
133
- #define GRPC_MDSTR_PUT (grpc_static_slice_table[40])
135
+ #define GRPC_MDSTR_PUT (grpc_static_slice_table[41])
134
136
  /* "/" */
135
- #define GRPC_MDSTR_SLASH (grpc_static_slice_table[41])
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[42])
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[43])
141
+ #define GRPC_MDSTR_204 (grpc_static_slice_table[44])
140
142
  /* "206" */
141
- #define GRPC_MDSTR_206 (grpc_static_slice_table[44])
143
+ #define GRPC_MDSTR_206 (grpc_static_slice_table[45])
142
144
  /* "304" */
143
- #define GRPC_MDSTR_304 (grpc_static_slice_table[45])
145
+ #define GRPC_MDSTR_304 (grpc_static_slice_table[46])
144
146
  /* "400" */
145
- #define GRPC_MDSTR_400 (grpc_static_slice_table[46])
147
+ #define GRPC_MDSTR_400 (grpc_static_slice_table[47])
146
148
  /* "500" */
147
- #define GRPC_MDSTR_500 (grpc_static_slice_table[47])
149
+ #define GRPC_MDSTR_500 (grpc_static_slice_table[48])
148
150
  /* "accept-charset" */
149
- #define GRPC_MDSTR_ACCEPT_CHARSET (grpc_static_slice_table[48])
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[49])
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[50])
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[51])
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[52])
159
+ #define GRPC_MDSTR_ACCEPT_RANGES (grpc_static_slice_table[53])
158
160
  /* "accept" */
159
- #define GRPC_MDSTR_ACCEPT (grpc_static_slice_table[53])
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[54])
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[55])
165
+ #define GRPC_MDSTR_AGE (grpc_static_slice_table[56])
164
166
  /* "allow" */
165
- #define GRPC_MDSTR_ALLOW (grpc_static_slice_table[56])
167
+ #define GRPC_MDSTR_ALLOW (grpc_static_slice_table[57])
166
168
  /* "authorization" */
167
- #define GRPC_MDSTR_AUTHORIZATION (grpc_static_slice_table[57])
169
+ #define GRPC_MDSTR_AUTHORIZATION (grpc_static_slice_table[58])
168
170
  /* "cache-control" */
169
- #define GRPC_MDSTR_CACHE_CONTROL (grpc_static_slice_table[58])
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[59])
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[60])
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[61])
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[62])
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[63])
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[64])
183
+ #define GRPC_MDSTR_CONTENT_RANGE (grpc_static_slice_table[65])
182
184
  /* "cookie" */
183
- #define GRPC_MDSTR_COOKIE (grpc_static_slice_table[65])
185
+ #define GRPC_MDSTR_COOKIE (grpc_static_slice_table[66])
184
186
  /* "date" */
185
- #define GRPC_MDSTR_DATE (grpc_static_slice_table[66])
187
+ #define GRPC_MDSTR_DATE (grpc_static_slice_table[67])
186
188
  /* "etag" */
187
- #define GRPC_MDSTR_ETAG (grpc_static_slice_table[67])
189
+ #define GRPC_MDSTR_ETAG (grpc_static_slice_table[68])
188
190
  /* "expect" */
189
- #define GRPC_MDSTR_EXPECT (grpc_static_slice_table[68])
191
+ #define GRPC_MDSTR_EXPECT (grpc_static_slice_table[69])
190
192
  /* "expires" */
191
- #define GRPC_MDSTR_EXPIRES (grpc_static_slice_table[69])
193
+ #define GRPC_MDSTR_EXPIRES (grpc_static_slice_table[70])
192
194
  /* "from" */
193
- #define GRPC_MDSTR_FROM (grpc_static_slice_table[70])
195
+ #define GRPC_MDSTR_FROM (grpc_static_slice_table[71])
194
196
  /* "if-match" */
195
- #define GRPC_MDSTR_IF_MATCH (grpc_static_slice_table[71])
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[72])
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[73])
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[74])
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[75])
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[76])
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[77])
211
+ #define GRPC_MDSTR_LINK (grpc_static_slice_table[79])
208
212
  /* "location" */
209
- #define GRPC_MDSTR_LOCATION (grpc_static_slice_table[78])
213
+ #define GRPC_MDSTR_LOCATION (grpc_static_slice_table[80])
210
214
  /* "max-forwards" */
211
- #define GRPC_MDSTR_MAX_FORWARDS (grpc_static_slice_table[79])
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[80])
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[81])
219
+ #define GRPC_MDSTR_PROXY_AUTHORIZATION (grpc_static_slice_table[83])
216
220
  /* "range" */
217
- #define GRPC_MDSTR_RANGE (grpc_static_slice_table[82])
221
+ #define GRPC_MDSTR_RANGE (grpc_static_slice_table[84])
218
222
  /* "referer" */
219
- #define GRPC_MDSTR_REFERER (grpc_static_slice_table[83])
223
+ #define GRPC_MDSTR_REFERER (grpc_static_slice_table[85])
220
224
  /* "refresh" */
221
- #define GRPC_MDSTR_REFRESH (grpc_static_slice_table[84])
225
+ #define GRPC_MDSTR_REFRESH (grpc_static_slice_table[86])
222
226
  /* "retry-after" */
223
- #define GRPC_MDSTR_RETRY_AFTER (grpc_static_slice_table[85])
227
+ #define GRPC_MDSTR_RETRY_AFTER (grpc_static_slice_table[87])
224
228
  /* "server" */
225
- #define GRPC_MDSTR_SERVER (grpc_static_slice_table[86])
229
+ #define GRPC_MDSTR_SERVER (grpc_static_slice_table[88])
226
230
  /* "set-cookie" */
227
- #define GRPC_MDSTR_SET_COOKIE (grpc_static_slice_table[87])
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[88])
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[89])
235
+ #define GRPC_MDSTR_TRANSFER_ENCODING (grpc_static_slice_table[91])
232
236
  /* "vary" */
233
- #define GRPC_MDSTR_VARY (grpc_static_slice_table[90])
237
+ #define GRPC_MDSTR_VARY (grpc_static_slice_table[92])
234
238
  /* "via" */
235
- #define GRPC_MDSTR_VIA (grpc_static_slice_table[91])
239
+ #define GRPC_MDSTR_VIA (grpc_static_slice_table[93])
236
240
  /* "www-authenticate" */
237
- #define GRPC_MDSTR_WWW_AUTHENTICATE (grpc_static_slice_table[92])
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[93])
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[94])
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[95])
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[96])
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 80
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[56], GRPC_MDELEM_STORAGE_STATIC))
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[57], GRPC_MDELEM_STORAGE_STATIC))
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[58], GRPC_MDELEM_STORAGE_STATIC))
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[59], GRPC_MDELEM_STORAGE_STATIC))
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[60], GRPC_MDELEM_STORAGE_STATIC))
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[61], GRPC_MDELEM_STORAGE_STATIC))
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[62], GRPC_MDELEM_STORAGE_STATIC))
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[63], GRPC_MDELEM_STORAGE_STATIC))
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[64], GRPC_MDELEM_STORAGE_STATIC))
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[65], GRPC_MDELEM_STORAGE_STATIC))
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[66], GRPC_MDELEM_STORAGE_STATIC))
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[67], GRPC_MDELEM_STORAGE_STATIC))
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[68], GRPC_MDELEM_STORAGE_STATIC))
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[69], GRPC_MDELEM_STORAGE_STATIC))
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[70], GRPC_MDELEM_STORAGE_STATIC))
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[71], GRPC_MDELEM_STORAGE_STATIC))
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[72], GRPC_MDELEM_STORAGE_STATIC))
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[73], GRPC_MDELEM_STORAGE_STATIC))
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[74], GRPC_MDELEM_STORAGE_STATIC))
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[75], GRPC_MDELEM_STORAGE_STATIC))
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[76], GRPC_MDELEM_STORAGE_STATIC))
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[77], GRPC_MDELEM_STORAGE_STATIC))
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[78], GRPC_MDELEM_STORAGE_STATIC))
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[79], GRPC_MDELEM_STORAGE_STATIC))
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
  }