grpc 1.43.1 → 1.44.0.pre2

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 (382) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +84 -64
  3. data/include/grpc/grpc_security.h +10 -0
  4. data/include/grpc/impl/codegen/compression_types.h +0 -2
  5. data/include/grpc/impl/codegen/grpc_types.h +6 -0
  6. data/src/core/ext/filters/client_channel/backend_metric.h +1 -1
  7. data/src/core/ext/filters/client_channel/client_channel.cc +62 -68
  8. data/src/core/ext/filters/client_channel/client_channel.h +8 -8
  9. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +1 -1
  10. data/src/core/ext/filters/client_channel/config_selector.h +4 -4
  11. data/src/core/ext/filters/client_channel/dynamic_filters.h +1 -1
  12. data/src/core/ext/filters/client_channel/health/health_check_client.cc +16 -14
  13. data/src/core/ext/filters/client_channel/health/health_check_client.h +3 -3
  14. data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +1 -1
  15. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +4 -3
  16. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +6 -5
  17. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +3 -7
  18. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +31 -32
  19. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -7
  20. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +1 -1
  21. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +1 -1
  22. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +1 -1
  23. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +43 -29
  24. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +6 -2
  25. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +120 -68
  26. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +60 -48
  27. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +62 -61
  28. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +16 -11
  29. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +11 -5
  30. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +19 -15
  31. data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +1 -1
  32. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +14 -12
  33. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +3 -2
  34. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +50 -105
  35. data/src/core/ext/filters/client_channel/lb_policy.cc +15 -14
  36. data/src/core/ext/filters/client_channel/lb_policy.h +19 -3
  37. data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +3 -3
  38. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +207 -81
  39. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +22 -12
  40. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +19 -15
  41. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +23 -38
  42. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +118 -207
  43. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +25 -32
  44. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
  45. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +82 -73
  46. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +10 -10
  47. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +2 -1
  48. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +2 -5
  49. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +5 -5
  50. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +157 -67
  51. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +1 -1
  52. data/src/core/ext/filters/client_channel/resolver_result_parsing.h +2 -2
  53. data/src/core/ext/filters/client_channel/retry_filter.cc +37 -64
  54. data/src/core/ext/filters/client_channel/retry_service_config.cc +1 -1
  55. data/src/core/ext/filters/client_channel/retry_service_config.h +1 -1
  56. data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +1 -1
  57. data/src/core/ext/filters/client_channel/subchannel.cc +12 -16
  58. data/src/core/ext/filters/client_channel/subchannel.h +2 -3
  59. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +37 -48
  60. data/src/core/ext/filters/fault_injection/service_config_parser.cc +6 -8
  61. data/src/core/ext/filters/fault_injection/service_config_parser.h +1 -1
  62. data/src/core/ext/filters/http/client/http_client_filter.cc +51 -122
  63. data/src/core/ext/filters/http/client_authority_filter.cc +8 -24
  64. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +42 -140
  65. data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +5 -25
  66. data/src/core/ext/filters/http/server/http_server_filter.cc +50 -135
  67. data/src/core/ext/filters/message_size/message_size_filter.cc +1 -1
  68. data/src/core/ext/filters/message_size/message_size_filter.h +1 -1
  69. data/src/core/ext/filters/rbac/rbac_filter.cc +157 -0
  70. data/src/core/ext/filters/rbac/rbac_filter.h +74 -0
  71. data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +605 -0
  72. data/src/core/ext/filters/rbac/rbac_service_config_parser.h +70 -0
  73. data/src/core/ext/filters/server_config_selector/server_config_selector.h +3 -2
  74. data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +11 -6
  75. data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +1 -1
  76. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +1 -1
  77. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +89 -29
  78. data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +0 -1
  79. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +45 -186
  80. data/src/core/ext/transport/chttp2/transport/frame_data.cc +0 -1
  81. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +341 -279
  82. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +69 -159
  83. data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +1 -1
  84. data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +2 -0
  85. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +19 -32
  86. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +0 -1
  87. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +94 -1
  88. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +2 -24
  89. data/src/core/ext/transport/chttp2/transport/internal.h +0 -33
  90. data/src/core/ext/transport/chttp2/transport/parsing.cc +0 -6
  91. data/src/core/ext/transport/chttp2/transport/writing.cc +47 -116
  92. data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -4
  93. data/src/core/ext/transport/inproc/inproc_transport.cc +11 -63
  94. data/src/core/ext/transport/inproc/inproc_transport.h +0 -3
  95. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +61 -0
  96. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +146 -0
  97. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +188 -0
  98. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +70 -0
  99. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +56 -0
  100. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
  101. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +154 -0
  102. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
  103. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.c +58 -0
  104. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.h +55 -0
  105. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.c +44 -0
  106. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.h +40 -0
  107. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +153 -0
  108. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
  109. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.c +75 -0
  110. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.h +55 -0
  111. data/src/core/ext/xds/upb_utils.h +65 -0
  112. data/src/core/ext/xds/xds_api.cc +81 -3458
  113. data/src/core/ext/xds/xds_api.h +56 -611
  114. data/src/core/ext/xds/xds_bootstrap.cc +189 -125
  115. data/src/core/ext/xds/xds_bootstrap.h +20 -15
  116. data/src/core/ext/xds/xds_certificate_provider.h +1 -0
  117. data/src/core/ext/xds/xds_channel_creds.cc +108 -0
  118. data/src/core/ext/xds/xds_channel_creds.h +50 -0
  119. data/src/core/ext/xds/xds_client.cc +584 -994
  120. data/src/core/ext/xds/xds_client.h +78 -135
  121. data/src/core/ext/xds/xds_cluster.cc +451 -0
  122. data/src/core/ext/xds/xds_cluster.h +111 -0
  123. data/src/core/ext/xds/xds_common_types.cc +388 -0
  124. data/src/core/ext/xds/xds_common_types.h +110 -0
  125. data/src/core/ext/xds/xds_endpoint.cc +364 -0
  126. data/src/core/ext/xds/xds_endpoint.h +135 -0
  127. data/src/core/ext/xds/xds_http_filters.cc +5 -0
  128. data/src/core/ext/xds/xds_http_rbac_filter.cc +563 -0
  129. data/src/core/ext/xds/xds_http_rbac_filter.h +54 -0
  130. data/src/core/ext/xds/xds_listener.cc +1036 -0
  131. data/src/core/ext/xds/xds_listener.h +220 -0
  132. data/src/core/ext/{transport/chttp2/transport/hpack_utils.h → xds/xds_resource_type.cc} +12 -9
  133. data/src/core/ext/xds/xds_resource_type.h +98 -0
  134. data/src/core/ext/xds/xds_resource_type_impl.h +87 -0
  135. data/src/core/ext/xds/xds_route_config.cc +993 -0
  136. data/src/core/ext/xds/xds_route_config.h +215 -0
  137. data/src/core/ext/xds/xds_routing.cc +11 -8
  138. data/src/core/ext/xds/xds_routing.h +8 -5
  139. data/src/core/ext/xds/xds_server_config_fetcher.cc +159 -99
  140. data/src/core/lib/address_utils/parse_address.cc +20 -0
  141. data/src/core/lib/address_utils/parse_address.h +5 -0
  142. data/src/core/lib/address_utils/sockaddr_utils.cc +33 -36
  143. data/src/core/lib/address_utils/sockaddr_utils.h +1 -16
  144. data/src/core/lib/backoff/backoff.cc +4 -30
  145. data/src/core/lib/backoff/backoff.h +3 -3
  146. data/src/core/lib/channel/channel_args.cc +0 -1
  147. data/src/core/lib/channel/channel_stack.cc +8 -0
  148. data/src/core/lib/channel/channel_stack.h +1 -1
  149. data/src/core/lib/channel/channel_stack_builder.cc +5 -9
  150. data/src/core/lib/channel/channel_stack_builder.h +4 -7
  151. data/src/core/lib/channel/channelz.cc +1 -0
  152. data/src/core/lib/compression/compression.cc +19 -111
  153. data/src/core/lib/compression/compression_internal.cc +142 -202
  154. data/src/core/lib/compression/compression_internal.h +64 -69
  155. data/src/core/lib/compression/message_compress.cc +11 -11
  156. data/src/core/lib/compression/message_compress.h +2 -2
  157. data/src/core/lib/gpr/useful.h +4 -0
  158. data/src/core/lib/gprpp/bitset.h +7 -0
  159. data/src/core/lib/gprpp/chunked_vector.h +45 -3
  160. data/src/core/lib/gprpp/status_helper.cc +20 -28
  161. data/src/core/lib/gprpp/status_helper.h +6 -19
  162. data/src/core/lib/gprpp/table.h +11 -0
  163. data/src/core/lib/http/httpcli.cc +37 -46
  164. data/src/core/lib/http/httpcli.h +3 -15
  165. data/src/core/lib/iomgr/call_combiner.cc +15 -4
  166. data/src/core/lib/iomgr/closure.h +29 -9
  167. data/src/core/lib/iomgr/combiner.cc +25 -3
  168. data/src/core/lib/iomgr/error.cc +2 -0
  169. data/src/core/lib/iomgr/error.h +3 -0
  170. data/src/core/lib/iomgr/event_engine/iomgr.cc +3 -2
  171. data/src/core/lib/iomgr/event_engine/resolved_address_internal.cc +6 -0
  172. data/src/core/lib/iomgr/event_engine/resolved_address_internal.h +2 -0
  173. data/src/core/lib/iomgr/event_engine/resolver.cc +66 -48
  174. data/src/core/lib/iomgr/event_engine/resolver.h +56 -0
  175. data/src/core/lib/iomgr/exec_ctx.cc +22 -9
  176. data/src/core/lib/iomgr/executor.cc +10 -1
  177. data/src/core/lib/iomgr/fork_posix.cc +3 -2
  178. data/src/core/lib/iomgr/iomgr_custom.cc +4 -1
  179. data/src/core/lib/iomgr/iomgr_posix.cc +2 -2
  180. data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +2 -2
  181. data/src/core/lib/iomgr/iomgr_windows.cc +2 -2
  182. data/src/core/lib/iomgr/port.h +2 -2
  183. data/src/core/lib/iomgr/resolve_address.cc +5 -24
  184. data/src/core/lib/iomgr/resolve_address.h +47 -44
  185. data/src/core/lib/iomgr/resolve_address_custom.cc +131 -109
  186. data/src/core/lib/iomgr/resolve_address_custom.h +101 -19
  187. data/src/core/lib/iomgr/resolve_address_impl.h +59 -0
  188. data/src/core/lib/iomgr/resolve_address_posix.cc +82 -66
  189. data/src/core/lib/iomgr/resolve_address_posix.h +47 -0
  190. data/src/core/lib/iomgr/resolve_address_windows.cc +93 -74
  191. data/src/core/lib/iomgr/resolve_address_windows.h +47 -0
  192. data/src/core/lib/iomgr/resolved_address.h +39 -0
  193. data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +1 -0
  194. data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +1 -0
  195. data/src/core/lib/iomgr/unix_sockets_posix.cc +22 -34
  196. data/src/core/lib/iomgr/unix_sockets_posix.h +4 -7
  197. data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +6 -15
  198. data/src/core/lib/matchers/matchers.cc +1 -1
  199. data/src/core/lib/promise/activity.h +49 -20
  200. data/src/core/lib/promise/detail/status.h +5 -0
  201. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.cc +17 -25
  202. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.h +43 -44
  203. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_factory.h +10 -5
  204. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_registry.cc +3 -2
  205. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_registry.h +4 -5
  206. data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.cc +1 -1
  207. data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.h +4 -4
  208. data/src/core/lib/resource_quota/api.h +0 -1
  209. data/src/core/lib/{gprpp → resource_quota}/arena.cc +16 -13
  210. data/src/core/lib/{gprpp → resource_quota}/arena.h +24 -13
  211. data/src/core/lib/security/authorization/evaluate_args.cc +30 -15
  212. data/src/core/lib/security/authorization/evaluate_args.h +1 -0
  213. data/src/core/lib/security/authorization/grpc_authorization_engine.cc +60 -0
  214. data/src/core/lib/security/authorization/grpc_authorization_engine.h +62 -0
  215. data/src/core/lib/security/authorization/matchers.cc +227 -0
  216. data/src/core/lib/security/authorization/matchers.h +211 -0
  217. data/src/core/lib/security/authorization/rbac_policy.cc +442 -0
  218. data/src/core/lib/security/authorization/rbac_policy.h +170 -0
  219. data/src/core/lib/security/context/security_context.cc +4 -2
  220. data/src/core/lib/security/context/security_context.h +1 -1
  221. data/src/core/lib/security/credentials/composite/composite_credentials.cc +5 -5
  222. data/src/core/lib/security/credentials/composite/composite_credentials.h +4 -3
  223. data/src/core/lib/security/credentials/credentials.h +10 -20
  224. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +6 -9
  225. data/src/core/lib/security/credentials/external/external_account_credentials.cc +7 -9
  226. data/src/core/lib/security/credentials/external/external_account_credentials.h +2 -7
  227. data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +2 -3
  228. data/src/core/lib/security/credentials/fake/fake_credentials.cc +5 -4
  229. data/src/core/lib/security/credentials/fake/fake_credentials.h +8 -7
  230. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +2 -5
  231. data/src/core/lib/security/credentials/iam/iam_credentials.cc +16 -19
  232. data/src/core/lib/security/credentials/iam/iam_credentials.h +6 -5
  233. data/src/core/lib/security/credentials/jwt/json_token.cc +4 -6
  234. data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +16 -28
  235. data/src/core/lib/security/credentials/jwt/jwt_credentials.h +8 -8
  236. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +6 -13
  237. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +44 -57
  238. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +13 -15
  239. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +6 -7
  240. data/src/core/lib/security/credentials/plugin/plugin_credentials.h +5 -4
  241. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +1 -10
  242. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +6 -0
  243. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +7 -0
  244. data/src/core/lib/security/credentials/xds/xds_credentials.h +1 -1
  245. data/src/core/lib/security/security_connector/security_connector.cc +0 -4
  246. data/src/core/lib/security/security_connector/security_connector.h +5 -1
  247. data/src/core/lib/security/security_connector/ssl_utils.cc +14 -24
  248. data/src/core/lib/security/security_connector/ssl_utils.h +5 -14
  249. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -3
  250. data/src/core/lib/security/transport/auth_filters.h +7 -0
  251. data/src/core/lib/security/transport/client_auth_filter.cc +53 -33
  252. data/src/core/lib/security/transport/server_auth_filter.cc +40 -35
  253. data/src/core/{ext → lib}/service_config/service_config.cc +2 -2
  254. data/src/core/{ext → lib}/service_config/service_config.h +4 -4
  255. data/src/core/{ext → lib}/service_config/service_config_call_data.h +5 -5
  256. data/src/core/{ext → lib}/service_config/service_config_parser.cc +1 -1
  257. data/src/core/{ext → lib}/service_config/service_config_parser.h +3 -3
  258. data/src/core/lib/slice/slice.cc +3 -1
  259. data/src/core/lib/slice/slice.h +43 -13
  260. data/src/core/lib/slice/slice_intern.cc +3 -101
  261. data/src/core/lib/slice/slice_internal.h +1 -2
  262. data/src/core/lib/slice/slice_refcount.h +4 -13
  263. data/src/core/lib/slice/slice_refcount_base.h +0 -16
  264. data/src/core/lib/surface/call.cc +140 -382
  265. data/src/core/lib/surface/call.h +4 -4
  266. data/src/core/lib/surface/channel.cc +42 -44
  267. data/src/core/lib/surface/channel.h +4 -4
  268. data/src/core/lib/surface/init.cc +0 -2
  269. data/src/core/lib/surface/lame_client.cc +0 -1
  270. data/src/core/lib/surface/server.cc +12 -29
  271. data/src/core/lib/surface/server.h +2 -2
  272. data/src/core/lib/surface/version.cc +2 -2
  273. data/src/core/lib/transport/error_utils.h +14 -0
  274. data/src/core/lib/transport/metadata_batch.h +799 -717
  275. data/src/core/lib/transport/parsed_metadata.cc +2 -0
  276. data/src/core/lib/transport/parsed_metadata.h +95 -92
  277. data/src/core/lib/transport/timeout_encoding.cc +200 -66
  278. data/src/core/lib/transport/timeout_encoding.h +40 -10
  279. data/src/core/lib/transport/transport.h +1 -1
  280. data/src/core/lib/transport/transport_op_string.cc +6 -39
  281. data/src/core/lib/uri/uri_parser.cc +223 -53
  282. data/src/core/lib/uri/uri_parser.h +36 -23
  283. data/src/core/plugin_registry/grpc_plugin_registry.cc +4 -3
  284. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
  285. data/src/core/tsi/ssl/session_cache/ssl_session.h +2 -4
  286. data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +3 -5
  287. data/src/core/tsi/ssl_transport_security.cc +53 -13
  288. data/src/core/tsi/ssl_transport_security.h +18 -6
  289. data/src/ruby/ext/grpc/extconf.rb +10 -3
  290. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
  291. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +3 -0
  292. data/src/ruby/lib/grpc/version.rb +1 -1
  293. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -1
  294. data/third_party/abseil-cpp/absl/base/internal/fast_type_id.h +48 -0
  295. data/third_party/abseil-cpp/absl/random/bernoulli_distribution.h +200 -0
  296. data/third_party/abseil-cpp/absl/random/beta_distribution.h +427 -0
  297. data/third_party/abseil-cpp/absl/random/discrete_distribution.cc +98 -0
  298. data/third_party/abseil-cpp/absl/random/discrete_distribution.h +247 -0
  299. data/third_party/abseil-cpp/absl/random/distributions.h +452 -0
  300. data/third_party/abseil-cpp/absl/random/exponential_distribution.h +165 -0
  301. data/third_party/abseil-cpp/absl/random/gaussian_distribution.cc +104 -0
  302. data/third_party/abseil-cpp/absl/random/gaussian_distribution.h +275 -0
  303. data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +92 -0
  304. data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +268 -0
  305. data/third_party/abseil-cpp/absl/random/internal/fastmath.h +57 -0
  306. data/third_party/abseil-cpp/absl/random/internal/generate_real.h +144 -0
  307. data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +245 -0
  308. data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +150 -0
  309. data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +308 -0
  310. data/third_party/abseil-cpp/absl/random/internal/platform.h +171 -0
  311. data/third_party/abseil-cpp/absl/random/internal/pool_urbg.cc +253 -0
  312. data/third_party/abseil-cpp/absl/random/internal/pool_urbg.h +131 -0
  313. data/third_party/abseil-cpp/absl/random/internal/randen.cc +91 -0
  314. data/third_party/abseil-cpp/absl/random/internal/randen.h +102 -0
  315. data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +221 -0
  316. data/third_party/abseil-cpp/absl/random/internal/randen_detect.h +33 -0
  317. data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +239 -0
  318. data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +526 -0
  319. data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.h +50 -0
  320. data/third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc +462 -0
  321. data/third_party/abseil-cpp/absl/random/internal/randen_slow.cc +471 -0
  322. data/third_party/abseil-cpp/absl/random/internal/randen_slow.h +40 -0
  323. data/third_party/abseil-cpp/absl/random/internal/randen_traits.h +88 -0
  324. data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +167 -0
  325. data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +267 -0
  326. data/third_party/abseil-cpp/absl/random/internal/seed_material.h +104 -0
  327. data/third_party/abseil-cpp/absl/random/internal/traits.h +101 -0
  328. data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +244 -0
  329. data/third_party/abseil-cpp/absl/random/internal/wide_multiply.h +111 -0
  330. data/third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h +257 -0
  331. data/third_party/abseil-cpp/absl/random/poisson_distribution.h +258 -0
  332. data/third_party/abseil-cpp/absl/random/random.h +189 -0
  333. data/third_party/abseil-cpp/absl/random/seed_gen_exception.cc +46 -0
  334. data/third_party/abseil-cpp/absl/random/seed_gen_exception.h +55 -0
  335. data/third_party/abseil-cpp/absl/random/seed_sequences.cc +29 -0
  336. data/third_party/abseil-cpp/absl/random/seed_sequences.h +110 -0
  337. data/third_party/abseil-cpp/absl/random/uniform_int_distribution.h +275 -0
  338. data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +202 -0
  339. data/third_party/abseil-cpp/absl/random/zipf_distribution.h +271 -0
  340. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -0
  341. data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +13 -0
  342. data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +21 -0
  343. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +12 -0
  344. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +1 -2
  345. data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +2 -2
  346. data/third_party/boringssl-with-bazel/src/crypto/mem.c +1 -1
  347. data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +29 -0
  348. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +0 -1
  349. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +1 -1
  350. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +1 -1
  351. data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +8 -0
  352. data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +13 -1
  353. data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +10 -0
  354. data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +1 -1
  355. data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +9 -4
  356. data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +6 -1
  357. data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +23 -2
  358. data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +4 -0
  359. data/third_party/xxhash/xxhash.h +607 -352
  360. metadata +149 -77
  361. data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +0 -107
  362. data/src/core/ext/transport/chttp2/transport/hpack_utils.cc +0 -46
  363. data/src/core/ext/transport/chttp2/transport/popularity_count.h +0 -60
  364. data/src/core/lib/compression/algorithm_metadata.h +0 -62
  365. data/src/core/lib/compression/compression_args.cc +0 -140
  366. data/src/core/lib/compression/compression_args.h +0 -58
  367. data/src/core/lib/compression/stream_compression.cc +0 -81
  368. data/src/core/lib/compression/stream_compression.h +0 -117
  369. data/src/core/lib/compression/stream_compression_gzip.cc +0 -231
  370. data/src/core/lib/compression/stream_compression_gzip.h +0 -28
  371. data/src/core/lib/compression/stream_compression_identity.cc +0 -91
  372. data/src/core/lib/compression/stream_compression_identity.h +0 -29
  373. data/src/core/lib/security/credentials/credentials_metadata.cc +0 -61
  374. data/src/core/lib/slice/static_slice.cc +0 -377
  375. data/src/core/lib/slice/static_slice.h +0 -300
  376. data/src/core/lib/transport/metadata.cc +0 -714
  377. data/src/core/lib/transport/metadata.h +0 -449
  378. data/src/core/lib/transport/metadata_batch.cc +0 -99
  379. data/src/core/lib/transport/static_metadata.cc +0 -1032
  380. data/src/core/lib/transport/static_metadata.h +0 -322
  381. data/src/core/lib/transport/status_metadata.cc +0 -63
  382. data/src/core/lib/transport/status_metadata.h +0 -48
@@ -1,1032 +0,0 @@
1
- /*
2
- * Copyright 2015 gRPC authors.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- /*
18
- * WARNING: Auto-generated code.
19
- *
20
- * To make changes to this file, change
21
- * tools/codegen/core/gen_static_metadata.py, and then re-run it.
22
- *
23
- * See metadata.h for an explanation of the interface here, and metadata.cc for
24
- * an explanation of what's going on.
25
- */
26
-
27
- #include <grpc/support/port_platform.h>
28
-
29
- #include "src/core/lib/transport/static_metadata.h"
30
-
31
- #include "src/core/lib/slice/slice_internal.h"
32
-
33
- namespace grpc_core {
34
- StaticMetadata g_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT] = {
35
- StaticMetadata(
36
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[3].base, 10,
37
- g_static_metadata_bytes + 19),
38
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
39
- g_static_metadata_bytes + 217),
40
- 0),
41
- StaticMetadata(
42
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[1].base, 7,
43
- g_static_metadata_bytes + 5),
44
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[31].base, 3,
45
- g_static_metadata_bytes + 603),
46
- 1),
47
- StaticMetadata(
48
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[1].base, 7,
49
- g_static_metadata_bytes + 5),
50
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[32].base, 4,
51
- g_static_metadata_bytes + 606),
52
- 2),
53
- StaticMetadata(
54
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[0].base, 5,
55
- g_static_metadata_bytes + 0),
56
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[33].base, 1,
57
- g_static_metadata_bytes + 610),
58
- 3),
59
- StaticMetadata(
60
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[0].base, 5,
61
- g_static_metadata_bytes + 0),
62
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[34].base, 11,
63
- g_static_metadata_bytes + 611),
64
- 4),
65
- StaticMetadata(
66
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[4].base, 7,
67
- g_static_metadata_bytes + 29),
68
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[35].base, 4,
69
- g_static_metadata_bytes + 622),
70
- 5),
71
- StaticMetadata(
72
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[4].base, 7,
73
- g_static_metadata_bytes + 29),
74
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[36].base, 5,
75
- g_static_metadata_bytes + 626),
76
- 6),
77
- StaticMetadata(
78
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
79
- g_static_metadata_bytes + 12),
80
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[37].base, 3,
81
- g_static_metadata_bytes + 631),
82
- 7),
83
- StaticMetadata(
84
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
85
- g_static_metadata_bytes + 12),
86
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[38].base, 3,
87
- g_static_metadata_bytes + 634),
88
- 8),
89
- StaticMetadata(
90
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
91
- g_static_metadata_bytes + 12),
92
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[39].base, 3,
93
- g_static_metadata_bytes + 637),
94
- 9),
95
- StaticMetadata(
96
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
97
- g_static_metadata_bytes + 12),
98
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[40].base, 3,
99
- g_static_metadata_bytes + 640),
100
- 10),
101
- StaticMetadata(
102
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
103
- g_static_metadata_bytes + 12),
104
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[41].base, 3,
105
- g_static_metadata_bytes + 643),
106
- 11),
107
- StaticMetadata(
108
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
109
- g_static_metadata_bytes + 12),
110
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[42].base, 3,
111
- g_static_metadata_bytes + 646),
112
- 12),
113
- StaticMetadata(
114
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[2].base, 7,
115
- g_static_metadata_bytes + 12),
116
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[43].base, 3,
117
- g_static_metadata_bytes + 649),
118
- 13),
119
- StaticMetadata(
120
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[44].base, 14,
121
- g_static_metadata_bytes + 652),
122
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
123
- g_static_metadata_bytes + 217),
124
- 14),
125
- StaticMetadata(
126
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[10].base, 15,
127
- g_static_metadata_bytes + 108),
128
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[45].base, 13,
129
- g_static_metadata_bytes + 666),
130
- 15),
131
- StaticMetadata(
132
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[46].base, 15,
133
- g_static_metadata_bytes + 679),
134
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
135
- g_static_metadata_bytes + 217),
136
- 16),
137
- StaticMetadata(
138
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[47].base, 13,
139
- g_static_metadata_bytes + 694),
140
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
141
- g_static_metadata_bytes + 217),
142
- 17),
143
- StaticMetadata(
144
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[48].base, 6,
145
- g_static_metadata_bytes + 707),
146
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
147
- g_static_metadata_bytes + 217),
148
- 18),
149
- StaticMetadata(
150
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[49].base, 27,
151
- g_static_metadata_bytes + 713),
152
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
153
- g_static_metadata_bytes + 217),
154
- 19),
155
- StaticMetadata(
156
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[50].base, 3,
157
- g_static_metadata_bytes + 740),
158
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
159
- g_static_metadata_bytes + 217),
160
- 20),
161
- StaticMetadata(
162
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[51].base, 5,
163
- g_static_metadata_bytes + 743),
164
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
165
- g_static_metadata_bytes + 217),
166
- 21),
167
- StaticMetadata(
168
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[52].base, 13,
169
- g_static_metadata_bytes + 748),
170
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
171
- g_static_metadata_bytes + 217),
172
- 22),
173
- StaticMetadata(
174
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[53].base, 13,
175
- g_static_metadata_bytes + 761),
176
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
177
- g_static_metadata_bytes + 217),
178
- 23),
179
- StaticMetadata(
180
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[54].base, 19,
181
- g_static_metadata_bytes + 774),
182
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
183
- g_static_metadata_bytes + 217),
184
- 24),
185
- StaticMetadata(
186
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[9].base, 16,
187
- g_static_metadata_bytes + 92),
188
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
189
- g_static_metadata_bytes + 217),
190
- 25),
191
- StaticMetadata(
192
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[55].base, 16,
193
- g_static_metadata_bytes + 793),
194
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
195
- g_static_metadata_bytes + 217),
196
- 26),
197
- StaticMetadata(
198
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[56].base, 14,
199
- g_static_metadata_bytes + 809),
200
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
201
- g_static_metadata_bytes + 217),
202
- 27),
203
- StaticMetadata(
204
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[57].base, 16,
205
- g_static_metadata_bytes + 823),
206
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
207
- g_static_metadata_bytes + 217),
208
- 28),
209
- StaticMetadata(
210
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[58].base, 13,
211
- g_static_metadata_bytes + 839),
212
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
213
- g_static_metadata_bytes + 217),
214
- 29),
215
- StaticMetadata(
216
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[8].base, 12,
217
- g_static_metadata_bytes + 80),
218
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
219
- g_static_metadata_bytes + 217),
220
- 30),
221
- StaticMetadata(
222
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[59].base, 6,
223
- g_static_metadata_bytes + 852),
224
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
225
- g_static_metadata_bytes + 217),
226
- 31),
227
- StaticMetadata(
228
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[60].base, 4,
229
- g_static_metadata_bytes + 858),
230
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
231
- g_static_metadata_bytes + 217),
232
- 32),
233
- StaticMetadata(
234
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[61].base, 4,
235
- g_static_metadata_bytes + 862),
236
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
237
- g_static_metadata_bytes + 217),
238
- 33),
239
- StaticMetadata(
240
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[62].base, 6,
241
- g_static_metadata_bytes + 866),
242
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
243
- g_static_metadata_bytes + 217),
244
- 34),
245
- StaticMetadata(
246
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[63].base, 7,
247
- g_static_metadata_bytes + 872),
248
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
249
- g_static_metadata_bytes + 217),
250
- 35),
251
- StaticMetadata(
252
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[64].base, 4,
253
- g_static_metadata_bytes + 879),
254
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
255
- g_static_metadata_bytes + 217),
256
- 36),
257
- StaticMetadata(
258
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[65].base, 4,
259
- g_static_metadata_bytes + 883),
260
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
261
- g_static_metadata_bytes + 217),
262
- 37),
263
- StaticMetadata(
264
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[66].base, 8,
265
- g_static_metadata_bytes + 887),
266
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
267
- g_static_metadata_bytes + 217),
268
- 38),
269
- StaticMetadata(
270
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[67].base, 17,
271
- g_static_metadata_bytes + 895),
272
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
273
- g_static_metadata_bytes + 217),
274
- 39),
275
- StaticMetadata(
276
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[68].base, 13,
277
- g_static_metadata_bytes + 912),
278
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
279
- g_static_metadata_bytes + 217),
280
- 40),
281
- StaticMetadata(
282
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[69].base, 8,
283
- g_static_metadata_bytes + 925),
284
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
285
- g_static_metadata_bytes + 217),
286
- 41),
287
- StaticMetadata(
288
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[70].base, 19,
289
- g_static_metadata_bytes + 933),
290
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
291
- g_static_metadata_bytes + 217),
292
- 42),
293
- StaticMetadata(
294
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[71].base, 13,
295
- g_static_metadata_bytes + 952),
296
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
297
- g_static_metadata_bytes + 217),
298
- 43),
299
- StaticMetadata(
300
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[72].base, 4,
301
- g_static_metadata_bytes + 965),
302
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
303
- g_static_metadata_bytes + 217),
304
- 44),
305
- StaticMetadata(
306
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[73].base, 8,
307
- g_static_metadata_bytes + 969),
308
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
309
- g_static_metadata_bytes + 217),
310
- 45),
311
- StaticMetadata(
312
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[74].base, 12,
313
- g_static_metadata_bytes + 977),
314
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
315
- g_static_metadata_bytes + 217),
316
- 46),
317
- StaticMetadata(
318
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[75].base, 18,
319
- g_static_metadata_bytes + 989),
320
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
321
- g_static_metadata_bytes + 217),
322
- 47),
323
- StaticMetadata(
324
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[76].base, 19,
325
- g_static_metadata_bytes + 1007),
326
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
327
- g_static_metadata_bytes + 217),
328
- 48),
329
- StaticMetadata(
330
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[77].base, 5,
331
- g_static_metadata_bytes + 1026),
332
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
333
- g_static_metadata_bytes + 217),
334
- 49),
335
- StaticMetadata(
336
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[78].base, 7,
337
- g_static_metadata_bytes + 1031),
338
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
339
- g_static_metadata_bytes + 217),
340
- 50),
341
- StaticMetadata(
342
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[79].base, 7,
343
- g_static_metadata_bytes + 1038),
344
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
345
- g_static_metadata_bytes + 217),
346
- 51),
347
- StaticMetadata(
348
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[80].base, 11,
349
- g_static_metadata_bytes + 1045),
350
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
351
- g_static_metadata_bytes + 217),
352
- 52),
353
- StaticMetadata(
354
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[81].base, 6,
355
- g_static_metadata_bytes + 1056),
356
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
357
- g_static_metadata_bytes + 217),
358
- 53),
359
- StaticMetadata(
360
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[82].base, 10,
361
- g_static_metadata_bytes + 1062),
362
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
363
- g_static_metadata_bytes + 217),
364
- 54),
365
- StaticMetadata(
366
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[83].base, 25,
367
- g_static_metadata_bytes + 1072),
368
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
369
- g_static_metadata_bytes + 217),
370
- 55),
371
- StaticMetadata(
372
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[84].base, 17,
373
- g_static_metadata_bytes + 1097),
374
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
375
- g_static_metadata_bytes + 217),
376
- 56),
377
- StaticMetadata(
378
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[85].base, 10,
379
- g_static_metadata_bytes + 1114),
380
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
381
- g_static_metadata_bytes + 217),
382
- 57),
383
- StaticMetadata(
384
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[86].base, 4,
385
- g_static_metadata_bytes + 1124),
386
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
387
- g_static_metadata_bytes + 217),
388
- 58),
389
- StaticMetadata(
390
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[87].base, 3,
391
- g_static_metadata_bytes + 1128),
392
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
393
- g_static_metadata_bytes + 217),
394
- 59),
395
- StaticMetadata(
396
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[88].base, 16,
397
- g_static_metadata_bytes + 1131),
398
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
399
- g_static_metadata_bytes + 217),
400
- 60),
401
- StaticMetadata(
402
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[5].base, 11,
403
- g_static_metadata_bytes + 36),
404
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[89].base, 1,
405
- g_static_metadata_bytes + 1147),
406
- 61),
407
- StaticMetadata(
408
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[5].base, 11,
409
- g_static_metadata_bytes + 36),
410
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[15].base, 1,
411
- g_static_metadata_bytes + 213),
412
- 62),
413
- StaticMetadata(
414
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[5].base, 11,
415
- g_static_metadata_bytes + 36),
416
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[16].base, 1,
417
- g_static_metadata_bytes + 214),
418
- 63),
419
- StaticMetadata(
420
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[6].base, 13,
421
- g_static_metadata_bytes + 47),
422
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[90].base, 8,
423
- g_static_metadata_bytes + 1148),
424
- 64),
425
- StaticMetadata(
426
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[6].base, 13,
427
- g_static_metadata_bytes + 47),
428
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[27].base, 4,
429
- g_static_metadata_bytes + 578),
430
- 65),
431
- StaticMetadata(
432
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[6].base, 13,
433
- g_static_metadata_bytes + 47),
434
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[26].base, 7,
435
- g_static_metadata_bytes + 571),
436
- 66),
437
- StaticMetadata(
438
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[8].base, 12,
439
- g_static_metadata_bytes + 80),
440
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[91].base, 16,
441
- g_static_metadata_bytes + 1156),
442
- 67),
443
- StaticMetadata(
444
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[4].base, 7,
445
- g_static_metadata_bytes + 29),
446
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[92].base, 4,
447
- g_static_metadata_bytes + 1172),
448
- 68),
449
- StaticMetadata(
450
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[1].base, 7,
451
- g_static_metadata_bytes + 5),
452
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[93].base, 3,
453
- g_static_metadata_bytes + 1176),
454
- 69),
455
- StaticMetadata(
456
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[10].base, 15,
457
- g_static_metadata_bytes + 108),
458
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
459
- g_static_metadata_bytes + 217),
460
- 70),
461
- StaticMetadata(
462
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[9].base, 16,
463
- g_static_metadata_bytes + 92),
464
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[90].base, 8,
465
- g_static_metadata_bytes + 1148),
466
- 71),
467
- StaticMetadata(
468
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[9].base, 16,
469
- g_static_metadata_bytes + 92),
470
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[27].base, 4,
471
- g_static_metadata_bytes + 578),
472
- 72),
473
- StaticMetadata(
474
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[94].base, 11,
475
- g_static_metadata_bytes + 1179),
476
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[19].base, 0,
477
- g_static_metadata_bytes + 217),
478
- 73),
479
- StaticMetadata(
480
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
481
- g_static_metadata_bytes + 60),
482
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[90].base, 8,
483
- g_static_metadata_bytes + 1148),
484
- 74),
485
- StaticMetadata(
486
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
487
- g_static_metadata_bytes + 60),
488
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[26].base, 7,
489
- g_static_metadata_bytes + 571),
490
- 75),
491
- StaticMetadata(
492
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
493
- g_static_metadata_bytes + 60),
494
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[95].base, 16,
495
- g_static_metadata_bytes + 1190),
496
- 76),
497
- StaticMetadata(
498
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
499
- g_static_metadata_bytes + 60),
500
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[27].base, 4,
501
- g_static_metadata_bytes + 578),
502
- 77),
503
- StaticMetadata(
504
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
505
- g_static_metadata_bytes + 60),
506
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[96].base, 13,
507
- g_static_metadata_bytes + 1206),
508
- 78),
509
- StaticMetadata(
510
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
511
- g_static_metadata_bytes + 60),
512
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[97].base, 12,
513
- g_static_metadata_bytes + 1219),
514
- 79),
515
- StaticMetadata(
516
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[7].base, 20,
517
- g_static_metadata_bytes + 60),
518
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[98].base, 21,
519
- g_static_metadata_bytes + 1231),
520
- 80),
521
- StaticMetadata(
522
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[10].base, 15,
523
- g_static_metadata_bytes + 108),
524
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[90].base, 8,
525
- g_static_metadata_bytes + 1148),
526
- 81),
527
- StaticMetadata(
528
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[10].base, 15,
529
- g_static_metadata_bytes + 108),
530
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[27].base, 4,
531
- g_static_metadata_bytes + 578),
532
- 82),
533
- StaticMetadata(
534
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[10].base, 15,
535
- g_static_metadata_bytes + 108),
536
- StaticMetadataSlice(&g_static_metadata_slice_refcounts[96].base, 13,
537
- g_static_metadata_bytes + 1206),
538
- 83),
539
- };
540
-
541
- /* Warning: the core static metadata currently operates under the soft
542
- constraint that the first GRPC_CHTTP2_LAST_STATIC_ENTRY (61) entries must
543
- contain metadata specified by the http2 hpack standard. The CHTTP2 transport
544
- reads the core metadata with this assumption in mind. If the order of the core
545
- static metadata is to be changed, then the CHTTP2 transport must be changed as
546
- well to stop relying on the core metadata. */
547
-
548
- grpc_mdelem g_static_mdelem_manifested[GRPC_STATIC_MDELEM_COUNT] = {
549
- // clang-format off
550
- /* GRPC_MDELEM_AUTHORITY_EMPTY:
551
- ":authority": "" */
552
- GRPC_MAKE_MDELEM(
553
- &g_static_mdelem_table[0].data(),
554
- GRPC_MDELEM_STORAGE_STATIC),
555
- /* GRPC_MDELEM_METHOD_GET:
556
- ":method": "GET" */
557
- GRPC_MAKE_MDELEM(
558
- &g_static_mdelem_table[1].data(),
559
- GRPC_MDELEM_STORAGE_STATIC),
560
- /* GRPC_MDELEM_METHOD_POST:
561
- ":method": "POST" */
562
- GRPC_MAKE_MDELEM(
563
- &g_static_mdelem_table[2].data(),
564
- GRPC_MDELEM_STORAGE_STATIC),
565
- /* GRPC_MDELEM_PATH_SLASH:
566
- ":path": "/" */
567
- GRPC_MAKE_MDELEM(
568
- &g_static_mdelem_table[3].data(),
569
- GRPC_MDELEM_STORAGE_STATIC),
570
- /* GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML:
571
- ":path": "/index.html" */
572
- GRPC_MAKE_MDELEM(
573
- &g_static_mdelem_table[4].data(),
574
- GRPC_MDELEM_STORAGE_STATIC),
575
- /* GRPC_MDELEM_SCHEME_HTTP:
576
- ":scheme": "http" */
577
- GRPC_MAKE_MDELEM(
578
- &g_static_mdelem_table[5].data(),
579
- GRPC_MDELEM_STORAGE_STATIC),
580
- /* GRPC_MDELEM_SCHEME_HTTPS:
581
- ":scheme": "https" */
582
- GRPC_MAKE_MDELEM(
583
- &g_static_mdelem_table[6].data(),
584
- GRPC_MDELEM_STORAGE_STATIC),
585
- /* GRPC_MDELEM_STATUS_200:
586
- ":status": "200" */
587
- GRPC_MAKE_MDELEM(
588
- &g_static_mdelem_table[7].data(),
589
- GRPC_MDELEM_STORAGE_STATIC),
590
- /* GRPC_MDELEM_STATUS_204:
591
- ":status": "204" */
592
- GRPC_MAKE_MDELEM(
593
- &g_static_mdelem_table[8].data(),
594
- GRPC_MDELEM_STORAGE_STATIC),
595
- /* GRPC_MDELEM_STATUS_206:
596
- ":status": "206" */
597
- GRPC_MAKE_MDELEM(
598
- &g_static_mdelem_table[9].data(),
599
- GRPC_MDELEM_STORAGE_STATIC),
600
- /* GRPC_MDELEM_STATUS_304:
601
- ":status": "304" */
602
- GRPC_MAKE_MDELEM(
603
- &g_static_mdelem_table[10].data(),
604
- GRPC_MDELEM_STORAGE_STATIC),
605
- /* GRPC_MDELEM_STATUS_400:
606
- ":status": "400" */
607
- GRPC_MAKE_MDELEM(
608
- &g_static_mdelem_table[11].data(),
609
- GRPC_MDELEM_STORAGE_STATIC),
610
- /* GRPC_MDELEM_STATUS_404:
611
- ":status": "404" */
612
- GRPC_MAKE_MDELEM(
613
- &g_static_mdelem_table[12].data(),
614
- GRPC_MDELEM_STORAGE_STATIC),
615
- /* GRPC_MDELEM_STATUS_500:
616
- ":status": "500" */
617
- GRPC_MAKE_MDELEM(
618
- &g_static_mdelem_table[13].data(),
619
- GRPC_MDELEM_STORAGE_STATIC),
620
- /* GRPC_MDELEM_ACCEPT_CHARSET_EMPTY:
621
- "accept-charset": "" */
622
- GRPC_MAKE_MDELEM(
623
- &g_static_mdelem_table[14].data(),
624
- GRPC_MDELEM_STORAGE_STATIC),
625
- /* GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE:
626
- "accept-encoding": "gzip, deflate" */
627
- GRPC_MAKE_MDELEM(
628
- &g_static_mdelem_table[15].data(),
629
- GRPC_MDELEM_STORAGE_STATIC),
630
- /* GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY:
631
- "accept-language": "" */
632
- GRPC_MAKE_MDELEM(
633
- &g_static_mdelem_table[16].data(),
634
- GRPC_MDELEM_STORAGE_STATIC),
635
- /* GRPC_MDELEM_ACCEPT_RANGES_EMPTY:
636
- "accept-ranges": "" */
637
- GRPC_MAKE_MDELEM(
638
- &g_static_mdelem_table[17].data(),
639
- GRPC_MDELEM_STORAGE_STATIC),
640
- /* GRPC_MDELEM_ACCEPT_EMPTY:
641
- "accept": "" */
642
- GRPC_MAKE_MDELEM(
643
- &g_static_mdelem_table[18].data(),
644
- GRPC_MDELEM_STORAGE_STATIC),
645
- /* GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY:
646
- "access-control-allow-origin": "" */
647
- GRPC_MAKE_MDELEM(
648
- &g_static_mdelem_table[19].data(),
649
- GRPC_MDELEM_STORAGE_STATIC),
650
- /* GRPC_MDELEM_AGE_EMPTY:
651
- "age": "" */
652
- GRPC_MAKE_MDELEM(
653
- &g_static_mdelem_table[20].data(),
654
- GRPC_MDELEM_STORAGE_STATIC),
655
- /* GRPC_MDELEM_ALLOW_EMPTY:
656
- "allow": "" */
657
- GRPC_MAKE_MDELEM(
658
- &g_static_mdelem_table[21].data(),
659
- GRPC_MDELEM_STORAGE_STATIC),
660
- /* GRPC_MDELEM_AUTHORIZATION_EMPTY:
661
- "authorization": "" */
662
- GRPC_MAKE_MDELEM(
663
- &g_static_mdelem_table[22].data(),
664
- GRPC_MDELEM_STORAGE_STATIC),
665
- /* GRPC_MDELEM_CACHE_CONTROL_EMPTY:
666
- "cache-control": "" */
667
- GRPC_MAKE_MDELEM(
668
- &g_static_mdelem_table[23].data(),
669
- GRPC_MDELEM_STORAGE_STATIC),
670
- /* GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY:
671
- "content-disposition": "" */
672
- GRPC_MAKE_MDELEM(
673
- &g_static_mdelem_table[24].data(),
674
- GRPC_MDELEM_STORAGE_STATIC),
675
- /* GRPC_MDELEM_CONTENT_ENCODING_EMPTY:
676
- "content-encoding": "" */
677
- GRPC_MAKE_MDELEM(
678
- &g_static_mdelem_table[25].data(),
679
- GRPC_MDELEM_STORAGE_STATIC),
680
- /* GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY:
681
- "content-language": "" */
682
- GRPC_MAKE_MDELEM(
683
- &g_static_mdelem_table[26].data(),
684
- GRPC_MDELEM_STORAGE_STATIC),
685
- /* GRPC_MDELEM_CONTENT_LENGTH_EMPTY:
686
- "content-length": "" */
687
- GRPC_MAKE_MDELEM(
688
- &g_static_mdelem_table[27].data(),
689
- GRPC_MDELEM_STORAGE_STATIC),
690
- /* GRPC_MDELEM_CONTENT_LOCATION_EMPTY:
691
- "content-location": "" */
692
- GRPC_MAKE_MDELEM(
693
- &g_static_mdelem_table[28].data(),
694
- GRPC_MDELEM_STORAGE_STATIC),
695
- /* GRPC_MDELEM_CONTENT_RANGE_EMPTY:
696
- "content-range": "" */
697
- GRPC_MAKE_MDELEM(
698
- &g_static_mdelem_table[29].data(),
699
- GRPC_MDELEM_STORAGE_STATIC),
700
- /* GRPC_MDELEM_CONTENT_TYPE_EMPTY:
701
- "content-type": "" */
702
- GRPC_MAKE_MDELEM(
703
- &g_static_mdelem_table[30].data(),
704
- GRPC_MDELEM_STORAGE_STATIC),
705
- /* GRPC_MDELEM_COOKIE_EMPTY:
706
- "cookie": "" */
707
- GRPC_MAKE_MDELEM(
708
- &g_static_mdelem_table[31].data(),
709
- GRPC_MDELEM_STORAGE_STATIC),
710
- /* GRPC_MDELEM_DATE_EMPTY:
711
- "date": "" */
712
- GRPC_MAKE_MDELEM(
713
- &g_static_mdelem_table[32].data(),
714
- GRPC_MDELEM_STORAGE_STATIC),
715
- /* GRPC_MDELEM_ETAG_EMPTY:
716
- "etag": "" */
717
- GRPC_MAKE_MDELEM(
718
- &g_static_mdelem_table[33].data(),
719
- GRPC_MDELEM_STORAGE_STATIC),
720
- /* GRPC_MDELEM_EXPECT_EMPTY:
721
- "expect": "" */
722
- GRPC_MAKE_MDELEM(
723
- &g_static_mdelem_table[34].data(),
724
- GRPC_MDELEM_STORAGE_STATIC),
725
- /* GRPC_MDELEM_EXPIRES_EMPTY:
726
- "expires": "" */
727
- GRPC_MAKE_MDELEM(
728
- &g_static_mdelem_table[35].data(),
729
- GRPC_MDELEM_STORAGE_STATIC),
730
- /* GRPC_MDELEM_FROM_EMPTY:
731
- "from": "" */
732
- GRPC_MAKE_MDELEM(
733
- &g_static_mdelem_table[36].data(),
734
- GRPC_MDELEM_STORAGE_STATIC),
735
- /* GRPC_MDELEM_HOST_EMPTY:
736
- "host": "" */
737
- GRPC_MAKE_MDELEM(
738
- &g_static_mdelem_table[37].data(),
739
- GRPC_MDELEM_STORAGE_STATIC),
740
- /* GRPC_MDELEM_IF_MATCH_EMPTY:
741
- "if-match": "" */
742
- GRPC_MAKE_MDELEM(
743
- &g_static_mdelem_table[38].data(),
744
- GRPC_MDELEM_STORAGE_STATIC),
745
- /* GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY:
746
- "if-modified-since": "" */
747
- GRPC_MAKE_MDELEM(
748
- &g_static_mdelem_table[39].data(),
749
- GRPC_MDELEM_STORAGE_STATIC),
750
- /* GRPC_MDELEM_IF_NONE_MATCH_EMPTY:
751
- "if-none-match": "" */
752
- GRPC_MAKE_MDELEM(
753
- &g_static_mdelem_table[40].data(),
754
- GRPC_MDELEM_STORAGE_STATIC),
755
- /* GRPC_MDELEM_IF_RANGE_EMPTY:
756
- "if-range": "" */
757
- GRPC_MAKE_MDELEM(
758
- &g_static_mdelem_table[41].data(),
759
- GRPC_MDELEM_STORAGE_STATIC),
760
- /* GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY:
761
- "if-unmodified-since": "" */
762
- GRPC_MAKE_MDELEM(
763
- &g_static_mdelem_table[42].data(),
764
- GRPC_MDELEM_STORAGE_STATIC),
765
- /* GRPC_MDELEM_LAST_MODIFIED_EMPTY:
766
- "last-modified": "" */
767
- GRPC_MAKE_MDELEM(
768
- &g_static_mdelem_table[43].data(),
769
- GRPC_MDELEM_STORAGE_STATIC),
770
- /* GRPC_MDELEM_LINK_EMPTY:
771
- "link": "" */
772
- GRPC_MAKE_MDELEM(
773
- &g_static_mdelem_table[44].data(),
774
- GRPC_MDELEM_STORAGE_STATIC),
775
- /* GRPC_MDELEM_LOCATION_EMPTY:
776
- "location": "" */
777
- GRPC_MAKE_MDELEM(
778
- &g_static_mdelem_table[45].data(),
779
- GRPC_MDELEM_STORAGE_STATIC),
780
- /* GRPC_MDELEM_MAX_FORWARDS_EMPTY:
781
- "max-forwards": "" */
782
- GRPC_MAKE_MDELEM(
783
- &g_static_mdelem_table[46].data(),
784
- GRPC_MDELEM_STORAGE_STATIC),
785
- /* GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY:
786
- "proxy-authenticate": "" */
787
- GRPC_MAKE_MDELEM(
788
- &g_static_mdelem_table[47].data(),
789
- GRPC_MDELEM_STORAGE_STATIC),
790
- /* GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY:
791
- "proxy-authorization": "" */
792
- GRPC_MAKE_MDELEM(
793
- &g_static_mdelem_table[48].data(),
794
- GRPC_MDELEM_STORAGE_STATIC),
795
- /* GRPC_MDELEM_RANGE_EMPTY:
796
- "range": "" */
797
- GRPC_MAKE_MDELEM(
798
- &g_static_mdelem_table[49].data(),
799
- GRPC_MDELEM_STORAGE_STATIC),
800
- /* GRPC_MDELEM_REFERER_EMPTY:
801
- "referer": "" */
802
- GRPC_MAKE_MDELEM(
803
- &g_static_mdelem_table[50].data(),
804
- GRPC_MDELEM_STORAGE_STATIC),
805
- /* GRPC_MDELEM_REFRESH_EMPTY:
806
- "refresh": "" */
807
- GRPC_MAKE_MDELEM(
808
- &g_static_mdelem_table[51].data(),
809
- GRPC_MDELEM_STORAGE_STATIC),
810
- /* GRPC_MDELEM_RETRY_AFTER_EMPTY:
811
- "retry-after": "" */
812
- GRPC_MAKE_MDELEM(
813
- &g_static_mdelem_table[52].data(),
814
- GRPC_MDELEM_STORAGE_STATIC),
815
- /* GRPC_MDELEM_SERVER_EMPTY:
816
- "server": "" */
817
- GRPC_MAKE_MDELEM(
818
- &g_static_mdelem_table[53].data(),
819
- GRPC_MDELEM_STORAGE_STATIC),
820
- /* GRPC_MDELEM_SET_COOKIE_EMPTY:
821
- "set-cookie": "" */
822
- GRPC_MAKE_MDELEM(
823
- &g_static_mdelem_table[54].data(),
824
- GRPC_MDELEM_STORAGE_STATIC),
825
- /* GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY:
826
- "strict-transport-security": "" */
827
- GRPC_MAKE_MDELEM(
828
- &g_static_mdelem_table[55].data(),
829
- GRPC_MDELEM_STORAGE_STATIC),
830
- /* GRPC_MDELEM_TRANSFER_ENCODING_EMPTY:
831
- "transfer-encoding": "" */
832
- GRPC_MAKE_MDELEM(
833
- &g_static_mdelem_table[56].data(),
834
- GRPC_MDELEM_STORAGE_STATIC),
835
- /* GRPC_MDELEM_USER_AGENT_EMPTY:
836
- "user-agent": "" */
837
- GRPC_MAKE_MDELEM(
838
- &g_static_mdelem_table[57].data(),
839
- GRPC_MDELEM_STORAGE_STATIC),
840
- /* GRPC_MDELEM_VARY_EMPTY:
841
- "vary": "" */
842
- GRPC_MAKE_MDELEM(
843
- &g_static_mdelem_table[58].data(),
844
- GRPC_MDELEM_STORAGE_STATIC),
845
- /* GRPC_MDELEM_VIA_EMPTY:
846
- "via": "" */
847
- GRPC_MAKE_MDELEM(
848
- &g_static_mdelem_table[59].data(),
849
- GRPC_MDELEM_STORAGE_STATIC),
850
- /* GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY:
851
- "www-authenticate": "" */
852
- GRPC_MAKE_MDELEM(
853
- &g_static_mdelem_table[60].data(),
854
- GRPC_MDELEM_STORAGE_STATIC),
855
- /* GRPC_MDELEM_GRPC_STATUS_0:
856
- "grpc-status": "0" */
857
- GRPC_MAKE_MDELEM(
858
- &g_static_mdelem_table[61].data(),
859
- GRPC_MDELEM_STORAGE_STATIC),
860
- /* GRPC_MDELEM_GRPC_STATUS_1:
861
- "grpc-status": "1" */
862
- GRPC_MAKE_MDELEM(
863
- &g_static_mdelem_table[62].data(),
864
- GRPC_MDELEM_STORAGE_STATIC),
865
- /* GRPC_MDELEM_GRPC_STATUS_2:
866
- "grpc-status": "2" */
867
- GRPC_MAKE_MDELEM(
868
- &g_static_mdelem_table[63].data(),
869
- GRPC_MDELEM_STORAGE_STATIC),
870
- /* GRPC_MDELEM_GRPC_ENCODING_IDENTITY:
871
- "grpc-encoding": "identity" */
872
- GRPC_MAKE_MDELEM(
873
- &g_static_mdelem_table[64].data(),
874
- GRPC_MDELEM_STORAGE_STATIC),
875
- /* GRPC_MDELEM_GRPC_ENCODING_GZIP:
876
- "grpc-encoding": "gzip" */
877
- GRPC_MAKE_MDELEM(
878
- &g_static_mdelem_table[65].data(),
879
- GRPC_MDELEM_STORAGE_STATIC),
880
- /* GRPC_MDELEM_GRPC_ENCODING_DEFLATE:
881
- "grpc-encoding": "deflate" */
882
- GRPC_MAKE_MDELEM(
883
- &g_static_mdelem_table[66].data(),
884
- GRPC_MDELEM_STORAGE_STATIC),
885
- /* GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC:
886
- "content-type": "application/grpc" */
887
- GRPC_MAKE_MDELEM(
888
- &g_static_mdelem_table[67].data(),
889
- GRPC_MDELEM_STORAGE_STATIC),
890
- /* GRPC_MDELEM_SCHEME_GRPC:
891
- ":scheme": "grpc" */
892
- GRPC_MAKE_MDELEM(
893
- &g_static_mdelem_table[68].data(),
894
- GRPC_MDELEM_STORAGE_STATIC),
895
- /* GRPC_MDELEM_METHOD_PUT:
896
- ":method": "PUT" */
897
- GRPC_MAKE_MDELEM(
898
- &g_static_mdelem_table[69].data(),
899
- GRPC_MDELEM_STORAGE_STATIC),
900
- /* GRPC_MDELEM_ACCEPT_ENCODING_EMPTY:
901
- "accept-encoding": "" */
902
- GRPC_MAKE_MDELEM(
903
- &g_static_mdelem_table[70].data(),
904
- GRPC_MDELEM_STORAGE_STATIC),
905
- /* GRPC_MDELEM_CONTENT_ENCODING_IDENTITY:
906
- "content-encoding": "identity" */
907
- GRPC_MAKE_MDELEM(
908
- &g_static_mdelem_table[71].data(),
909
- GRPC_MDELEM_STORAGE_STATIC),
910
- /* GRPC_MDELEM_CONTENT_ENCODING_GZIP:
911
- "content-encoding": "gzip" */
912
- GRPC_MAKE_MDELEM(
913
- &g_static_mdelem_table[72].data(),
914
- GRPC_MDELEM_STORAGE_STATIC),
915
- /* GRPC_MDELEM_LB_COST_BIN_EMPTY:
916
- "lb-cost-bin": "" */
917
- GRPC_MAKE_MDELEM(
918
- &g_static_mdelem_table[73].data(),
919
- GRPC_MDELEM_STORAGE_STATIC),
920
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY:
921
- "grpc-accept-encoding": "identity" */
922
- GRPC_MAKE_MDELEM(
923
- &g_static_mdelem_table[74].data(),
924
- GRPC_MDELEM_STORAGE_STATIC),
925
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE:
926
- "grpc-accept-encoding": "deflate" */
927
- GRPC_MAKE_MDELEM(
928
- &g_static_mdelem_table[75].data(),
929
- GRPC_MDELEM_STORAGE_STATIC),
930
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE:
931
- "grpc-accept-encoding": "identity,deflate" */
932
- GRPC_MAKE_MDELEM(
933
- &g_static_mdelem_table[76].data(),
934
- GRPC_MDELEM_STORAGE_STATIC),
935
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP:
936
- "grpc-accept-encoding": "gzip" */
937
- GRPC_MAKE_MDELEM(
938
- &g_static_mdelem_table[77].data(),
939
- GRPC_MDELEM_STORAGE_STATIC),
940
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP:
941
- "grpc-accept-encoding": "identity,gzip" */
942
- GRPC_MAKE_MDELEM(
943
- &g_static_mdelem_table[78].data(),
944
- GRPC_MDELEM_STORAGE_STATIC),
945
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP:
946
- "grpc-accept-encoding": "deflate,gzip" */
947
- GRPC_MAKE_MDELEM(
948
- &g_static_mdelem_table[79].data(),
949
- GRPC_MDELEM_STORAGE_STATIC),
950
- /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP:
951
- "grpc-accept-encoding": "identity,deflate,gzip" */
952
- GRPC_MAKE_MDELEM(
953
- &g_static_mdelem_table[80].data(),
954
- GRPC_MDELEM_STORAGE_STATIC),
955
- /* GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY:
956
- "accept-encoding": "identity" */
957
- GRPC_MAKE_MDELEM(
958
- &g_static_mdelem_table[81].data(),
959
- GRPC_MDELEM_STORAGE_STATIC),
960
- /* GRPC_MDELEM_ACCEPT_ENCODING_GZIP:
961
- "accept-encoding": "gzip" */
962
- GRPC_MAKE_MDELEM(
963
- &g_static_mdelem_table[82].data(),
964
- GRPC_MDELEM_STORAGE_STATIC),
965
- /* GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP:
966
- "accept-encoding": "identity,gzip" */
967
- GRPC_MAKE_MDELEM(
968
- &g_static_mdelem_table[83].data(),
969
- GRPC_MDELEM_STORAGE_STATIC)
970
- // clang-format on
971
- };
972
- } // namespace grpc_core
973
-
974
- uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT] = {
975
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
976
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
977
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
978
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 6, 6, 8, 8, 2, 4, 4};
979
-
980
- static const int8_t elems_r[] = {
981
- 18, 11, -8, 0, -1, -46, 11, 0, 13, 10, 7, 0, 0, 0,
982
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
983
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
984
- 0, 0, -51, 0, -54, -55, -56, -57, -58, -59, -60, -61, -62, -63,
985
- 0, 33, 32, 31, 30, 29, 29, 28, 27, 26, 25, 24, 23, 22,
986
- 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8,
987
- 7, 6, 5, 4, 4, 3, 0, 0, 0, 0, 0, -8, 0};
988
- static uint32_t elems_phash(uint32_t i) {
989
- i -= 33;
990
- uint32_t x = i % 97;
991
- uint32_t y = i / 97;
992
- uint32_t h = x;
993
- if (y < GPR_ARRAY_SIZE(elems_r)) {
994
- uint32_t delta = static_cast<uint32_t>(elems_r[y]);
995
- h += delta;
996
- }
997
- return h;
998
- }
999
-
1000
- static const uint16_t elem_keys[] = {
1001
- 235, 236, 237, 238, 239, 240, 241, 719, 720, 431, 432, 130,
1002
- 131, 1009, 910, 811, 620, 621, 33, 34, 584, 1017, 918, 4375,
1003
- 4573, 4672, 4771, 4870, 4969, 5068, 5167, 5266, 5365, 5464, 5563, 5662,
1004
- 5761, 5860, 5959, 1035, 6058, 6157, 6256, 6355, 6454, 6553, 6652, 6751,
1005
- 6850, 6949, 7048, 7147, 7246, 7345, 7444, 7543, 7642, 7741, 7840, 7939,
1006
- 8038, 8137, 8236, 8335, 8434, 8533, 488, 8632, 8731, 9325, 0, 783,
1007
- 0, 192, 0, 0, 788, 789, 790, 791, 684, 316, 0, 0,
1008
- 1080, 981, 0, 883, 510, 511, 1086};
1009
- static const uint8_t elem_idxs[] = {
1010
- 7, 8, 9, 10, 11, 12, 13, 75, 77, 5, 6, 1, 2, 70, 25, 30,
1011
- 66, 65, 3, 4, 61, 82, 72, 14, 16, 17, 18, 19, 20, 21, 22, 23,
1012
- 24, 26, 27, 28, 29, 31, 32, 15, 33, 34, 35, 36, 37, 38, 39, 40,
1013
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
1014
- 57, 58, 68, 59, 60, 73, 255, 74, 255, 69, 255, 255, 76, 78, 79, 80,
1015
- 64, 0, 255, 255, 81, 71, 255, 67, 62, 63, 83};
1016
-
1017
- grpc_mdelem grpc_static_mdelem_for_static_strings(intptr_t a, intptr_t b) {
1018
- if (a == -1 || b == -1) return GRPC_MDNULL;
1019
- uint32_t k = static_cast<uint32_t>(a * 99 + b);
1020
- uint32_t h = elems_phash(k);
1021
- return h < GPR_ARRAY_SIZE(elem_keys) && elem_keys[h] == k &&
1022
- elem_idxs[h] != 255
1023
- ? GRPC_MAKE_MDELEM(
1024
- &grpc_core::g_static_mdelem_table[elem_idxs[h]].data(),
1025
- GRPC_MDELEM_STORAGE_STATIC)
1026
- : GRPC_MDNULL;
1027
- }
1028
-
1029
- const uint8_t grpc_static_accept_encoding_metadata[8] = {0, 74, 75, 76,
1030
- 77, 78, 79, 80};
1031
-
1032
- const uint8_t grpc_static_accept_stream_encoding_metadata[4] = {0, 81, 82, 83};