couchbase 3.0.1-universal-darwin-19 → 3.0.2-universal-darwin-19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1318) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +73 -4
  3. data/ext/extconf.rb +0 -95
  4. data/lib/couchbase.rb +1 -0
  5. data/lib/couchbase/analytics_options.rb +1 -71
  6. data/lib/couchbase/binary_collection.rb +60 -22
  7. data/lib/couchbase/binary_collection_options.rb +0 -76
  8. data/lib/couchbase/bucket.rb +40 -36
  9. data/lib/couchbase/cluster.rb +89 -156
  10. data/lib/couchbase/collection.rb +290 -72
  11. data/lib/couchbase/collection_options.rb +30 -243
  12. data/lib/couchbase/datastructures/couchbase_list.rb +5 -16
  13. data/lib/couchbase/datastructures/couchbase_map.rb +5 -16
  14. data/lib/couchbase/datastructures/couchbase_queue.rb +5 -16
  15. data/lib/couchbase/datastructures/couchbase_set.rb +5 -16
  16. data/lib/couchbase/diagnostics.rb +181 -0
  17. data/lib/couchbase/json_transcoder.rb +1 -1
  18. data/lib/couchbase/libcouchbase.bundle +0 -0
  19. data/lib/couchbase/{common_options.rb → logger.rb} +24 -11
  20. data/lib/couchbase/management/query_index_manager.rb +1 -1
  21. data/lib/couchbase/management/user_manager.rb +3 -0
  22. data/lib/couchbase/options.rb +2094 -0
  23. data/lib/couchbase/query_options.rb +1 -144
  24. data/lib/couchbase/scope.rb +8 -25
  25. data/lib/couchbase/search_options.rb +0 -93
  26. data/lib/couchbase/version.rb +20 -1
  27. data/lib/couchbase/view_options.rb +1 -91
  28. metadata +8 -1296
  29. data/ext/CMakeLists.txt +0 -127
  30. data/ext/LICENSE.txt +0 -202
  31. data/ext/build_config.hxx.in +0 -20
  32. data/ext/build_version.hxx.in +0 -27
  33. data/ext/cmake/Backtrace.cmake +0 -35
  34. data/ext/cmake/BuildTracing.cmake +0 -6
  35. data/ext/cmake/Cache.cmake +0 -29
  36. data/ext/cmake/CompilerWarnings.cmake +0 -78
  37. data/ext/cmake/PreventInSourceBuilds.cmake +0 -18
  38. data/ext/cmake/Sanitizers.cmake +0 -66
  39. data/ext/cmake/StandardProjectSettings.cmake +0 -40
  40. data/ext/cmake/StaticAnalyzers.cmake +0 -37
  41. data/ext/cmake/Testing.cmake +0 -52
  42. data/ext/cmake/ThirdPartyDependencies.cmake +0 -20
  43. data/ext/cmake/VersionInfo.cmake +0 -37
  44. data/ext/couchbase/bucket.hxx +0 -338
  45. data/ext/couchbase/capabilities.hxx +0 -117
  46. data/ext/couchbase/cbcrypto/cbcrypto.cc +0 -888
  47. data/ext/couchbase/cbcrypto/cbcrypto.h +0 -89
  48. data/ext/couchbase/cbsasl/client.cc +0 -48
  49. data/ext/couchbase/cbsasl/client.h +0 -127
  50. data/ext/couchbase/cbsasl/context.cc +0 -33
  51. data/ext/couchbase/cbsasl/context.h +0 -52
  52. data/ext/couchbase/cbsasl/error.h +0 -72
  53. data/ext/couchbase/cbsasl/mechanism.cc +0 -48
  54. data/ext/couchbase/cbsasl/mechanism.h +0 -55
  55. data/ext/couchbase/cbsasl/plain/plain.cc +0 -36
  56. data/ext/couchbase/cbsasl/plain/plain.h +0 -53
  57. data/ext/couchbase/cbsasl/scram-sha/scram-sha.cc +0 -390
  58. data/ext/couchbase/cbsasl/scram-sha/scram-sha.h +0 -185
  59. data/ext/couchbase/cbsasl/scram-sha/stringutils.cc +0 -81
  60. data/ext/couchbase/cbsasl/scram-sha/stringutils.h +0 -48
  61. data/ext/couchbase/cluster.hxx +0 -267
  62. data/ext/couchbase/cluster_options.hxx +0 -54
  63. data/ext/couchbase/collections_manifest.hxx +0 -88
  64. data/ext/couchbase/configuration.hxx +0 -650
  65. data/ext/couchbase/couchbase.cxx +0 -6431
  66. data/ext/couchbase/diagnostics.hxx +0 -251
  67. data/ext/couchbase/document_id.hxx +0 -40
  68. data/ext/couchbase/error_map.hxx +0 -261
  69. data/ext/couchbase/errors.hxx +0 -706
  70. data/ext/couchbase/io/dns_client.hxx +0 -217
  71. data/ext/couchbase/io/dns_codec.hxx +0 -207
  72. data/ext/couchbase/io/dns_config.hxx +0 -116
  73. data/ext/couchbase/io/dns_message.hxx +0 -555
  74. data/ext/couchbase/io/http_command.hxx +0 -95
  75. data/ext/couchbase/io/http_context.hxx +0 -37
  76. data/ext/couchbase/io/http_message.hxx +0 -47
  77. data/ext/couchbase/io/http_parser.hxx +0 -176
  78. data/ext/couchbase/io/http_session.hxx +0 -442
  79. data/ext/couchbase/io/http_session_manager.hxx +0 -182
  80. data/ext/couchbase/io/mcbp_command.hxx +0 -246
  81. data/ext/couchbase/io/mcbp_message.hxx +0 -63
  82. data/ext/couchbase/io/mcbp_parser.hxx +0 -101
  83. data/ext/couchbase/io/mcbp_session.hxx +0 -1283
  84. data/ext/couchbase/io/query_cache.hxx +0 -61
  85. data/ext/couchbase/io/retry_action.hxx +0 -30
  86. data/ext/couchbase/io/retry_context.hxx +0 -38
  87. data/ext/couchbase/io/retry_orchestrator.hxx +0 -112
  88. data/ext/couchbase/io/retry_reason.hxx +0 -235
  89. data/ext/couchbase/io/retry_strategy.hxx +0 -156
  90. data/ext/couchbase/io/streams.hxx +0 -216
  91. data/ext/couchbase/mutation_token.hxx +0 -38
  92. data/ext/couchbase/operations.hxx +0 -104
  93. data/ext/couchbase/operations/analytics_dataset_create.hxx +0 -117
  94. data/ext/couchbase/operations/analytics_dataset_drop.hxx +0 -103
  95. data/ext/couchbase/operations/analytics_dataset_get_all.hxx +0 -107
  96. data/ext/couchbase/operations/analytics_dataverse_create.hxx +0 -104
  97. data/ext/couchbase/operations/analytics_dataverse_drop.hxx +0 -104
  98. data/ext/couchbase/operations/analytics_get_pending_mutations.hxx +0 -91
  99. data/ext/couchbase/operations/analytics_index_create.hxx +0 -128
  100. data/ext/couchbase/operations/analytics_index_drop.hxx +0 -110
  101. data/ext/couchbase/operations/analytics_index_get_all.hxx +0 -106
  102. data/ext/couchbase/operations/analytics_link_connect.hxx +0 -102
  103. data/ext/couchbase/operations/analytics_link_disconnect.hxx +0 -101
  104. data/ext/couchbase/operations/bucket_create.hxx +0 -147
  105. data/ext/couchbase/operations/bucket_drop.hxx +0 -68
  106. data/ext/couchbase/operations/bucket_flush.hxx +0 -68
  107. data/ext/couchbase/operations/bucket_get.hxx +0 -72
  108. data/ext/couchbase/operations/bucket_get_all.hxx +0 -65
  109. data/ext/couchbase/operations/bucket_settings.hxx +0 -150
  110. data/ext/couchbase/operations/bucket_update.hxx +0 -124
  111. data/ext/couchbase/operations/cluster_developer_preview_enable.hxx +0 -63
  112. data/ext/couchbase/operations/collection_create.hxx +0 -95
  113. data/ext/couchbase/operations/collection_drop.hxx +0 -85
  114. data/ext/couchbase/operations/collections_manifest_get.hxx +0 -70
  115. data/ext/couchbase/operations/design_document.hxx +0 -59
  116. data/ext/couchbase/operations/document_analytics.hxx +0 -293
  117. data/ext/couchbase/operations/document_decrement.hxx +0 -87
  118. data/ext/couchbase/operations/document_exists.hxx +0 -84
  119. data/ext/couchbase/operations/document_get.hxx +0 -69
  120. data/ext/couchbase/operations/document_get_and_lock.hxx +0 -71
  121. data/ext/couchbase/operations/document_get_and_touch.hxx +0 -71
  122. data/ext/couchbase/operations/document_get_projected.hxx +0 -249
  123. data/ext/couchbase/operations/document_increment.hxx +0 -89
  124. data/ext/couchbase/operations/document_insert.hxx +0 -81
  125. data/ext/couchbase/operations/document_lookup_in.hxx +0 -111
  126. data/ext/couchbase/operations/document_mutate_in.hxx +0 -145
  127. data/ext/couchbase/operations/document_query.hxx +0 -422
  128. data/ext/couchbase/operations/document_remove.hxx +0 -74
  129. data/ext/couchbase/operations/document_replace.hxx +0 -83
  130. data/ext/couchbase/operations/document_search.hxx +0 -370
  131. data/ext/couchbase/operations/document_touch.hxx +0 -67
  132. data/ext/couchbase/operations/document_unlock.hxx +0 -67
  133. data/ext/couchbase/operations/document_upsert.hxx +0 -81
  134. data/ext/couchbase/operations/document_view.hxx +0 -228
  135. data/ext/couchbase/operations/group_drop.hxx +0 -71
  136. data/ext/couchbase/operations/group_get.hxx +0 -75
  137. data/ext/couchbase/operations/group_get_all.hxx +0 -70
  138. data/ext/couchbase/operations/group_upsert.hxx +0 -118
  139. data/ext/couchbase/operations/query_index_build_deferred.hxx +0 -86
  140. data/ext/couchbase/operations/query_index_create.hxx +0 -145
  141. data/ext/couchbase/operations/query_index_drop.hxx +0 -119
  142. data/ext/couchbase/operations/query_index_get_all.hxx +0 -117
  143. data/ext/couchbase/operations/rbac.hxx +0 -276
  144. data/ext/couchbase/operations/role_get_all.hxx +0 -70
  145. data/ext/couchbase/operations/scope_create.hxx +0 -88
  146. data/ext/couchbase/operations/scope_drop.hxx +0 -82
  147. data/ext/couchbase/operations/scope_get_all.hxx +0 -76
  148. data/ext/couchbase/operations/search_get_stats.hxx +0 -59
  149. data/ext/couchbase/operations/search_index.hxx +0 -79
  150. data/ext/couchbase/operations/search_index_analyze_document.hxx +0 -92
  151. data/ext/couchbase/operations/search_index_control_ingest.hxx +0 -80
  152. data/ext/couchbase/operations/search_index_control_plan_freeze.hxx +0 -80
  153. data/ext/couchbase/operations/search_index_control_query.hxx +0 -80
  154. data/ext/couchbase/operations/search_index_drop.hxx +0 -77
  155. data/ext/couchbase/operations/search_index_get.hxx +0 -80
  156. data/ext/couchbase/operations/search_index_get_all.hxx +0 -82
  157. data/ext/couchbase/operations/search_index_get_documents_count.hxx +0 -89
  158. data/ext/couchbase/operations/search_index_get_stats.hxx +0 -81
  159. data/ext/couchbase/operations/search_index_upsert.hxx +0 -106
  160. data/ext/couchbase/operations/user_drop.hxx +0 -72
  161. data/ext/couchbase/operations/user_get.hxx +0 -76
  162. data/ext/couchbase/operations/user_get_all.hxx +0 -71
  163. data/ext/couchbase/operations/user_upsert.hxx +0 -125
  164. data/ext/couchbase/operations/view_index_drop.hxx +0 -67
  165. data/ext/couchbase/operations/view_index_get.hxx +0 -90
  166. data/ext/couchbase/operations/view_index_get_all.hxx +0 -125
  167. data/ext/couchbase/operations/view_index_upsert.hxx +0 -87
  168. data/ext/couchbase/origin.hxx +0 -178
  169. data/ext/couchbase/platform/backtrace.c +0 -189
  170. data/ext/couchbase/platform/backtrace.h +0 -54
  171. data/ext/couchbase/platform/base64.cc +0 -234
  172. data/ext/couchbase/platform/base64.h +0 -47
  173. data/ext/couchbase/platform/random.cc +0 -119
  174. data/ext/couchbase/platform/random.h +0 -39
  175. data/ext/couchbase/platform/string_hex.cc +0 -99
  176. data/ext/couchbase/platform/string_hex.h +0 -50
  177. data/ext/couchbase/platform/terminate_handler.cc +0 -123
  178. data/ext/couchbase/platform/terminate_handler.h +0 -36
  179. data/ext/couchbase/platform/uuid.cc +0 -96
  180. data/ext/couchbase/platform/uuid.h +0 -56
  181. data/ext/couchbase/protocol/client_opcode.hxx +0 -264
  182. data/ext/couchbase/protocol/client_request.hxx +0 -160
  183. data/ext/couchbase/protocol/client_response.hxx +0 -218
  184. data/ext/couchbase/protocol/cmd_cluster_map_change_notification.hxx +0 -79
  185. data/ext/couchbase/protocol/cmd_decrement.hxx +0 -187
  186. data/ext/couchbase/protocol/cmd_exists.hxx +0 -171
  187. data/ext/couchbase/protocol/cmd_get.hxx +0 -122
  188. data/ext/couchbase/protocol/cmd_get_and_lock.hxx +0 -142
  189. data/ext/couchbase/protocol/cmd_get_and_touch.hxx +0 -142
  190. data/ext/couchbase/protocol/cmd_get_cluster_config.hxx +0 -126
  191. data/ext/couchbase/protocol/cmd_get_collection_id.hxx +0 -117
  192. data/ext/couchbase/protocol/cmd_get_collections_manifest.hxx +0 -99
  193. data/ext/couchbase/protocol/cmd_get_error_map.hxx +0 -126
  194. data/ext/couchbase/protocol/cmd_hello.hxx +0 -156
  195. data/ext/couchbase/protocol/cmd_increment.hxx +0 -187
  196. data/ext/couchbase/protocol/cmd_info.hxx +0 -25
  197. data/ext/couchbase/protocol/cmd_insert.hxx +0 -172
  198. data/ext/couchbase/protocol/cmd_lookup_in.hxx +0 -219
  199. data/ext/couchbase/protocol/cmd_mutate_in.hxx +0 -365
  200. data/ext/couchbase/protocol/cmd_remove.hxx +0 -134
  201. data/ext/couchbase/protocol/cmd_replace.hxx +0 -172
  202. data/ext/couchbase/protocol/cmd_sasl_auth.hxx +0 -106
  203. data/ext/couchbase/protocol/cmd_sasl_list_mechs.hxx +0 -100
  204. data/ext/couchbase/protocol/cmd_sasl_step.hxx +0 -104
  205. data/ext/couchbase/protocol/cmd_select_bucket.hxx +0 -85
  206. data/ext/couchbase/protocol/cmd_touch.hxx +0 -102
  207. data/ext/couchbase/protocol/cmd_unlock.hxx +0 -95
  208. data/ext/couchbase/protocol/cmd_upsert.hxx +0 -172
  209. data/ext/couchbase/protocol/datatype.hxx +0 -48
  210. data/ext/couchbase/protocol/durability_level.hxx +0 -67
  211. data/ext/couchbase/protocol/frame_info_id.hxx +0 -187
  212. data/ext/couchbase/protocol/hello_feature.hxx +0 -255
  213. data/ext/couchbase/protocol/magic.hxx +0 -83
  214. data/ext/couchbase/protocol/server_opcode.hxx +0 -57
  215. data/ext/couchbase/protocol/server_request.hxx +0 -122
  216. data/ext/couchbase/protocol/status.hxx +0 -343
  217. data/ext/couchbase/protocol/unsigned_leb128.h +0 -195
  218. data/ext/couchbase/service_type.hxx +0 -60
  219. data/ext/couchbase/timeout_defaults.hxx +0 -41
  220. data/ext/couchbase/utils/byteswap.hxx +0 -33
  221. data/ext/couchbase/utils/connection_string.hxx +0 -379
  222. data/ext/couchbase/utils/crc32.hxx +0 -48
  223. data/ext/couchbase/utils/url_codec.hxx +0 -225
  224. data/ext/couchbase/version.hxx +0 -24
  225. data/ext/test/test_helper.hxx +0 -141
  226. data/ext/test/test_helper_native.hxx +0 -59
  227. data/ext/test/test_helper_ruby.hxx +0 -72
  228. data/ext/test/test_native_diagnostics.cxx +0 -385
  229. data/ext/test/test_native_trivial_crud.cxx +0 -83
  230. data/ext/test/test_ruby_trivial_crud.cxx +0 -35
  231. data/ext/test/test_ruby_trivial_query.cxx +0 -34
  232. data/ext/third_party/asio/asio/include/asio.hpp +0 -182
  233. data/ext/third_party/asio/asio/include/asio/any_io_executor.hpp +0 -71
  234. data/ext/third_party/asio/asio/include/asio/associated_allocator.hpp +0 -125
  235. data/ext/third_party/asio/asio/include/asio/associated_executor.hpp +0 -166
  236. data/ext/third_party/asio/asio/include/asio/async_result.hpp +0 -582
  237. data/ext/third_party/asio/asio/include/asio/awaitable.hpp +0 -133
  238. data/ext/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +0 -1215
  239. data/ext/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +0 -693
  240. data/ext/third_party/asio/asio/include/asio/basic_io_object.hpp +0 -290
  241. data/ext/third_party/asio/asio/include/asio/basic_raw_socket.hpp +0 -1206
  242. data/ext/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +0 -761
  243. data/ext/third_party/asio/asio/include/asio/basic_serial_port.hpp +0 -907
  244. data/ext/third_party/asio/asio/include/asio/basic_signal_set.hpp +0 -568
  245. data/ext/third_party/asio/asio/include/asio/basic_socket.hpp +0 -1894
  246. data/ext/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +0 -2501
  247. data/ext/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +0 -407
  248. data/ext/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +0 -687
  249. data/ext/third_party/asio/asio/include/asio/basic_stream_socket.hpp +0 -1053
  250. data/ext/third_party/asio/asio/include/asio/basic_streambuf.hpp +0 -452
  251. data/ext/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +0 -36
  252. data/ext/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +0 -811
  253. data/ext/third_party/asio/asio/include/asio/bind_executor.hpp +0 -575
  254. data/ext/third_party/asio/asio/include/asio/buffer.hpp +0 -2496
  255. data/ext/third_party/asio/asio/include/asio/buffered_read_stream.hpp +0 -253
  256. data/ext/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +0 -25
  257. data/ext/third_party/asio/asio/include/asio/buffered_stream.hpp +0 -279
  258. data/ext/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +0 -25
  259. data/ext/third_party/asio/asio/include/asio/buffered_write_stream.hpp +0 -245
  260. data/ext/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +0 -25
  261. data/ext/third_party/asio/asio/include/asio/buffers_iterator.hpp +0 -521
  262. data/ext/third_party/asio/asio/include/asio/co_spawn.hpp +0 -471
  263. data/ext/third_party/asio/asio/include/asio/completion_condition.hpp +0 -218
  264. data/ext/third_party/asio/asio/include/asio/compose.hpp +0 -136
  265. data/ext/third_party/asio/asio/include/asio/connect.hpp +0 -1076
  266. data/ext/third_party/asio/asio/include/asio/coroutine.hpp +0 -328
  267. data/ext/third_party/asio/asio/include/asio/deadline_timer.hpp +0 -38
  268. data/ext/third_party/asio/asio/include/asio/defer.hpp +0 -130
  269. data/ext/third_party/asio/asio/include/asio/detached.hpp +0 -112
  270. data/ext/third_party/asio/asio/include/asio/detail/array.hpp +0 -38
  271. data/ext/third_party/asio/asio/include/asio/detail/array_fwd.hpp +0 -34
  272. data/ext/third_party/asio/asio/include/asio/detail/assert.hpp +0 -32
  273. data/ext/third_party/asio/asio/include/asio/detail/atomic_count.hpp +0 -64
  274. data/ext/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +0 -69
  275. data/ext/third_party/asio/asio/include/asio/detail/bind_handler.hpp +0 -934
  276. data/ext/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +0 -107
  277. data/ext/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +0 -66
  278. data/ext/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +0 -650
  279. data/ext/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +0 -126
  280. data/ext/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +0 -88
  281. data/ext/third_party/asio/asio/include/asio/detail/call_stack.hpp +0 -125
  282. data/ext/third_party/asio/asio/include/asio/detail/chrono.hpp +0 -66
  283. data/ext/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +0 -190
  284. data/ext/third_party/asio/asio/include/asio/detail/completion_handler.hpp +0 -88
  285. data/ext/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +0 -94
  286. data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +0 -120
  287. data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +0 -149
  288. data/ext/third_party/asio/asio/include/asio/detail/config.hpp +0 -1822
  289. data/ext/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +0 -414
  290. data/ext/third_party/asio/asio/include/asio/detail/cstddef.hpp +0 -31
  291. data/ext/third_party/asio/asio/include/asio/detail/cstdint.hpp +0 -60
  292. data/ext/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +0 -34
  293. data/ext/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +0 -295
  294. data/ext/third_party/asio/asio/include/asio/detail/dependent_type.hpp +0 -36
  295. data/ext/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +0 -139
  296. data/ext/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +0 -148
  297. data/ext/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +0 -148
  298. data/ext/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +0 -218
  299. data/ext/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +0 -266
  300. data/ext/third_party/asio/asio/include/asio/detail/event.hpp +0 -48
  301. data/ext/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +0 -83
  302. data/ext/third_party/asio/asio/include/asio/detail/executor_function.hpp +0 -203
  303. data/ext/third_party/asio/asio/include/asio/detail/executor_op.hpp +0 -84
  304. data/ext/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +0 -39
  305. data/ext/third_party/asio/asio/include/asio/detail/fenced_block.hpp +0 -80
  306. data/ext/third_party/asio/asio/include/asio/detail/functional.hpp +0 -38
  307. data/ext/third_party/asio/asio/include/asio/detail/future.hpp +0 -33
  308. data/ext/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +0 -91
  309. data/ext/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +0 -68
  310. data/ext/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +0 -65
  311. data/ext/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +0 -99
  312. data/ext/third_party/asio/asio/include/asio/detail/global.hpp +0 -52
  313. data/ext/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +0 -284
  314. data/ext/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +0 -45
  315. data/ext/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +0 -80
  316. data/ext/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +0 -264
  317. data/ext/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +0 -556
  318. data/ext/third_party/asio/asio/include/asio/detail/handler_work.hpp +0 -438
  319. data/ext/third_party/asio/asio/include/asio/detail/hash_map.hpp +0 -331
  320. data/ext/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +0 -118
  321. data/ext/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +0 -608
  322. data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +0 -91
  323. data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +0 -446
  324. data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +0 -89
  325. data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +0 -787
  326. data/ext/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +0 -169
  327. data/ext/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +0 -396
  328. data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +0 -93
  329. data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +0 -570
  330. data/ext/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +0 -74
  331. data/ext/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +0 -129
  332. data/ext/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +0 -59
  333. data/ext/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +0 -46
  334. data/ext/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +0 -84
  335. data/ext/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +0 -46
  336. data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +0 -223
  337. data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_serial_port_service.ipp +0 -149
  338. data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +0 -300
  339. data/ext/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +0 -158
  340. data/ext/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +0 -654
  341. data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +0 -100
  342. data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +0 -338
  343. data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +0 -94
  344. data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +0 -197
  345. data/ext/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +0 -668
  346. data/ext/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +0 -3962
  347. data/ext/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +0 -185
  348. data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +0 -385
  349. data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +0 -134
  350. data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +0 -117
  351. data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +0 -178
  352. data/ext/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +0 -60
  353. data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +0 -91
  354. data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +0 -101
  355. data/ext/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +0 -76
  356. data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +0 -525
  357. data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +0 -103
  358. data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +0 -603
  359. data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +0 -192
  360. data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +0 -801
  361. data/ext/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +0 -84
  362. data/ext/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +0 -448
  363. data/ext/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +0 -136
  364. data/ext/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +0 -150
  365. data/ext/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +0 -57
  366. data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +0 -626
  367. data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +0 -92
  368. data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +0 -121
  369. data/ext/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +0 -82
  370. data/ext/third_party/asio/asio/include/asio/detail/io_control.hpp +0 -84
  371. data/ext/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +0 -175
  372. data/ext/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +0 -312
  373. data/ext/third_party/asio/asio/include/asio/detail/is_executor.hpp +0 -126
  374. data/ext/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +0 -70
  375. data/ext/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +0 -242
  376. data/ext/third_party/asio/asio/include/asio/detail/limits.hpp +0 -26
  377. data/ext/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +0 -59
  378. data/ext/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +0 -62
  379. data/ext/third_party/asio/asio/include/asio/detail/memory.hpp +0 -73
  380. data/ext/third_party/asio/asio/include/asio/detail/mutex.hpp +0 -48
  381. data/ext/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +0 -54
  382. data/ext/third_party/asio/asio/include/asio/detail/noncopyable.hpp +0 -43
  383. data/ext/third_party/asio/asio/include/asio/detail/null_event.hpp +0 -106
  384. data/ext/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +0 -47
  385. data/ext/third_party/asio/asio/include/asio/detail/null_global.hpp +0 -59
  386. data/ext/third_party/asio/asio/include/asio/detail/null_mutex.hpp +0 -64
  387. data/ext/third_party/asio/asio/include/asio/detail/null_reactor.hpp +0 -68
  388. data/ext/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +0 -69
  389. data/ext/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +0 -519
  390. data/ext/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +0 -60
  391. data/ext/third_party/asio/asio/include/asio/detail/null_thread.hpp +0 -67
  392. data/ext/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +0 -68
  393. data/ext/third_party/asio/asio/include/asio/detail/object_pool.hpp +0 -171
  394. data/ext/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +0 -214
  395. data/ext/third_party/asio/asio/include/asio/detail/op_queue.hpp +0 -162
  396. data/ext/third_party/asio/asio/include/asio/detail/operation.hpp +0 -38
  397. data/ext/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +0 -89
  398. data/ext/third_party/asio/asio/include/asio/detail/pop_options.hpp +0 -141
  399. data/ext/third_party/asio/asio/include/asio/detail/posix_event.hpp +0 -175
  400. data/ext/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +0 -118
  401. data/ext/third_party/asio/asio/include/asio/detail/posix_global.hpp +0 -80
  402. data/ext/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +0 -76
  403. data/ext/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +0 -85
  404. data/ext/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +0 -64
  405. data/ext/third_party/asio/asio/include/asio/detail/posix_thread.hpp +0 -109
  406. data/ext/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +0 -79
  407. data/ext/third_party/asio/asio/include/asio/detail/push_options.hpp +0 -185
  408. data/ext/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +0 -416
  409. data/ext/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +0 -98
  410. data/ext/third_party/asio/asio/include/asio/detail/reactive_serial_port_service.hpp +0 -237
  411. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +0 -242
  412. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +0 -123
  413. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +0 -159
  414. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +0 -164
  415. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +0 -145
  416. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +0 -162
  417. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +0 -156
  418. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +0 -528
  419. data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +0 -541
  420. data/ext/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +0 -98
  421. data/ext/third_party/asio/asio/include/asio/detail/reactor.hpp +0 -32
  422. data/ext/third_party/asio/asio/include/asio/detail/reactor_fwd.hpp +0 -40
  423. data/ext/third_party/asio/asio/include/asio/detail/reactor_op.hpp +0 -67
  424. data/ext/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +0 -168
  425. data/ext/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +0 -106
  426. data/ext/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +0 -35
  427. data/ext/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +0 -140
  428. data/ext/third_party/asio/asio/include/asio/detail/resolve_op.hpp +0 -45
  429. data/ext/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +0 -150
  430. data/ext/third_party/asio/asio/include/asio/detail/resolver_service.hpp +0 -145
  431. data/ext/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +0 -143
  432. data/ext/third_party/asio/asio/include/asio/detail/scheduler.hpp +0 -232
  433. data/ext/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +0 -78
  434. data/ext/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +0 -40
  435. data/ext/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +0 -101
  436. data/ext/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +0 -87
  437. data/ext/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +0 -46
  438. data/ext/third_party/asio/asio/include/asio/detail/select_reactor.hpp +0 -238
  439. data/ext/third_party/asio/asio/include/asio/detail/service_registry.hpp +0 -164
  440. data/ext/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +0 -44
  441. data/ext/third_party/asio/asio/include/asio/detail/signal_handler.hpp +0 -90
  442. data/ext/third_party/asio/asio/include/asio/detail/signal_init.hpp +0 -47
  443. data/ext/third_party/asio/asio/include/asio/detail/signal_op.hpp +0 -49
  444. data/ext/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +0 -229
  445. data/ext/third_party/asio/asio/include/asio/detail/socket_holder.hpp +0 -98
  446. data/ext/third_party/asio/asio/include/asio/detail/socket_ops.hpp +0 -383
  447. data/ext/third_party/asio/asio/include/asio/detail/socket_option.hpp +0 -316
  448. data/ext/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +0 -91
  449. data/ext/third_party/asio/asio/include/asio/detail/socket_types.hpp +0 -416
  450. data/ext/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +0 -62
  451. data/ext/third_party/asio/asio/include/asio/detail/source_location.hpp +0 -45
  452. data/ext/third_party/asio/asio/include/asio/detail/static_mutex.hpp +0 -52
  453. data/ext/third_party/asio/asio/include/asio/detail/std_event.hpp +0 -188
  454. data/ext/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +0 -62
  455. data/ext/third_party/asio/asio/include/asio/detail/std_global.hpp +0 -70
  456. data/ext/third_party/asio/asio/include/asio/detail/std_mutex.hpp +0 -73
  457. data/ext/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +0 -81
  458. data/ext/third_party/asio/asio/include/asio/detail/std_thread.hpp +0 -71
  459. data/ext/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +0 -166
  460. data/ext/third_party/asio/asio/include/asio/detail/strand_service.hpp +0 -145
  461. data/ext/third_party/asio/asio/include/asio/detail/string_view.hpp +0 -47
  462. data/ext/third_party/asio/asio/include/asio/detail/thread.hpp +0 -60
  463. data/ext/third_party/asio/asio/include/asio/detail/thread_context.hpp +0 -42
  464. data/ext/third_party/asio/asio/include/asio/detail/thread_group.hpp +0 -95
  465. data/ext/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +0 -183
  466. data/ext/third_party/asio/asio/include/asio/detail/throw_error.hpp +0 -53
  467. data/ext/third_party/asio/asio/include/asio/detail/throw_exception.hpp +0 -51
  468. data/ext/third_party/asio/asio/include/asio/detail/timer_queue.hpp +0 -360
  469. data/ext/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +0 -68
  470. data/ext/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +0 -99
  471. data/ext/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +0 -66
  472. data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +0 -35
  473. data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +0 -40
  474. data/ext/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +0 -69
  475. data/ext/third_party/asio/asio/include/asio/detail/type_traits.hpp +0 -148
  476. data/ext/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +0 -294
  477. data/ext/third_party/asio/asio/include/asio/detail/wait_handler.hpp +0 -90
  478. data/ext/third_party/asio/asio/include/asio/detail/wait_op.hpp +0 -45
  479. data/ext/third_party/asio/asio/include/asio/detail/win_event.hpp +0 -164
  480. data/ext/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +0 -149
  481. data/ext/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +0 -90
  482. data/ext/third_party/asio/asio/include/asio/detail/win_global.hpp +0 -71
  483. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +0 -117
  484. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +0 -335
  485. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +0 -110
  486. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +0 -342
  487. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +0 -127
  488. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +0 -96
  489. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +0 -96
  490. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +0 -171
  491. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +0 -232
  492. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +0 -312
  493. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +0 -135
  494. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +0 -124
  495. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +0 -133
  496. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +0 -125
  497. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +0 -118
  498. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +0 -581
  499. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +0 -600
  500. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +0 -34
  501. data/ext/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +0 -128
  502. data/ext/third_party/asio/asio/include/asio/detail/win_mutex.hpp +0 -78
  503. data/ext/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +0 -195
  504. data/ext/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +0 -74
  505. data/ext/third_party/asio/asio/include/asio/detail/win_thread.hpp +0 -147
  506. data/ext/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +0 -79
  507. data/ext/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +0 -124
  508. data/ext/third_party/asio/asio/include/asio/detail/wince_thread.hpp +0 -124
  509. data/ext/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +0 -305
  510. data/ext/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +0 -65
  511. data/ext/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +0 -125
  512. data/ext/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +0 -212
  513. data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +0 -98
  514. data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +0 -119
  515. data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +0 -110
  516. data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +0 -250
  517. data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +0 -362
  518. data/ext/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +0 -147
  519. data/ext/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +0 -106
  520. data/ext/third_party/asio/asio/include/asio/detail/winsock_init.hpp +0 -128
  521. data/ext/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +0 -148
  522. data/ext/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +0 -327
  523. data/ext/third_party/asio/asio/include/asio/dispatch.hpp +0 -121
  524. data/ext/third_party/asio/asio/include/asio/error.hpp +0 -356
  525. data/ext/third_party/asio/asio/include/asio/error_code.hpp +0 -202
  526. data/ext/third_party/asio/asio/include/asio/execution.hpp +0 -48
  527. data/ext/third_party/asio/asio/include/asio/execution/allocator.hpp +0 -249
  528. data/ext/third_party/asio/asio/include/asio/execution/any_executor.hpp +0 -2264
  529. data/ext/third_party/asio/asio/include/asio/execution/bad_executor.hpp +0 -47
  530. data/ext/third_party/asio/asio/include/asio/execution/blocking.hpp +0 -1351
  531. data/ext/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +0 -1064
  532. data/ext/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +0 -390
  533. data/ext/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +0 -1018
  534. data/ext/third_party/asio/asio/include/asio/execution/connect.hpp +0 -486
  535. data/ext/third_party/asio/asio/include/asio/execution/context.hpp +0 -185
  536. data/ext/third_party/asio/asio/include/asio/execution/context_as.hpp +0 -201
  537. data/ext/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +0 -152
  538. data/ext/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +0 -105
  539. data/ext/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +0 -128
  540. data/ext/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +0 -261
  541. data/ext/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +0 -233
  542. data/ext/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +0 -90
  543. data/ext/third_party/asio/asio/include/asio/execution/execute.hpp +0 -264
  544. data/ext/third_party/asio/asio/include/asio/execution/executor.hpp +0 -238
  545. data/ext/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +0 -40
  546. data/ext/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +0 -36
  547. data/ext/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +0 -71
  548. data/ext/third_party/asio/asio/include/asio/execution/mapping.hpp +0 -917
  549. data/ext/third_party/asio/asio/include/asio/execution/occupancy.hpp +0 -178
  550. data/ext/third_party/asio/asio/include/asio/execution/operation_state.hpp +0 -94
  551. data/ext/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +0 -721
  552. data/ext/third_party/asio/asio/include/asio/execution/prefer_only.hpp +0 -327
  553. data/ext/third_party/asio/asio/include/asio/execution/receiver.hpp +0 -280
  554. data/ext/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +0 -48
  555. data/ext/third_party/asio/asio/include/asio/execution/relationship.hpp +0 -720
  556. data/ext/third_party/asio/asio/include/asio/execution/schedule.hpp +0 -290
  557. data/ext/third_party/asio/asio/include/asio/execution/scheduler.hpp +0 -86
  558. data/ext/third_party/asio/asio/include/asio/execution/sender.hpp +0 -311
  559. data/ext/third_party/asio/asio/include/asio/execution/set_done.hpp +0 -253
  560. data/ext/third_party/asio/asio/include/asio/execution/set_error.hpp +0 -253
  561. data/ext/third_party/asio/asio/include/asio/execution/set_value.hpp +0 -486
  562. data/ext/third_party/asio/asio/include/asio/execution/start.hpp +0 -250
  563. data/ext/third_party/asio/asio/include/asio/execution/submit.hpp +0 -450
  564. data/ext/third_party/asio/asio/include/asio/execution_context.hpp +0 -412
  565. data/ext/third_party/asio/asio/include/asio/executor.hpp +0 -347
  566. data/ext/third_party/asio/asio/include/asio/executor_work_guard.hpp +0 -287
  567. data/ext/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +0 -193
  568. data/ext/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +0 -123
  569. data/ext/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +0 -133
  570. data/ext/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +0 -110
  571. data/ext/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +0 -121
  572. data/ext/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +0 -122
  573. data/ext/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +0 -127
  574. data/ext/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +0 -104
  575. data/ext/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +0 -54
  576. data/ext/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +0 -111
  577. data/ext/third_party/asio/asio/include/asio/high_resolution_timer.hpp +0 -44
  578. data/ext/third_party/asio/asio/include/asio/impl/awaitable.hpp +0 -436
  579. data/ext/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +0 -527
  580. data/ext/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +0 -507
  581. data/ext/third_party/asio/asio/include/asio/impl/co_spawn.hpp +0 -298
  582. data/ext/third_party/asio/asio/include/asio/impl/compose.hpp +0 -635
  583. data/ext/third_party/asio/asio/include/asio/impl/connect.hpp +0 -916
  584. data/ext/third_party/asio/asio/include/asio/impl/defer.hpp +0 -248
  585. data/ext/third_party/asio/asio/include/asio/impl/detached.hpp +0 -130
  586. data/ext/third_party/asio/asio/include/asio/impl/dispatch.hpp +0 -243
  587. data/ext/third_party/asio/asio/include/asio/impl/error.ipp +0 -128
  588. data/ext/third_party/asio/asio/include/asio/impl/error_code.ipp +0 -206
  589. data/ext/third_party/asio/asio/include/asio/impl/execution_context.hpp +0 -109
  590. data/ext/third_party/asio/asio/include/asio/impl/execution_context.ipp +0 -82
  591. data/ext/third_party/asio/asio/include/asio/impl/executor.hpp +0 -301
  592. data/ext/third_party/asio/asio/include/asio/impl/executor.ipp +0 -43
  593. data/ext/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +0 -61
  594. data/ext/third_party/asio/asio/include/asio/impl/io_context.hpp +0 -440
  595. data/ext/third_party/asio/asio/include/asio/impl/io_context.ipp +0 -175
  596. data/ext/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +0 -49
  597. data/ext/third_party/asio/asio/include/asio/impl/post.hpp +0 -248
  598. data/ext/third_party/asio/asio/include/asio/impl/read.hpp +0 -1202
  599. data/ext/third_party/asio/asio/include/asio/impl/read_at.hpp +0 -744
  600. data/ext/third_party/asio/asio/include/asio/impl/read_until.hpp +0 -3335
  601. data/ext/third_party/asio/asio/include/asio/impl/redirect_error.hpp +0 -390
  602. data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +0 -59
  603. data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +0 -554
  604. data/ext/third_party/asio/asio/include/asio/impl/spawn.hpp +0 -526
  605. data/ext/third_party/asio/asio/include/asio/impl/src.hpp +0 -85
  606. data/ext/third_party/asio/asio/include/asio/impl/system_context.hpp +0 -34
  607. data/ext/third_party/asio/asio/include/asio/impl/system_context.ipp +0 -92
  608. data/ext/third_party/asio/asio/include/asio/impl/system_executor.hpp +0 -186
  609. data/ext/third_party/asio/asio/include/asio/impl/thread_pool.hpp +0 -350
  610. data/ext/third_party/asio/asio/include/asio/impl/thread_pool.ipp +0 -141
  611. data/ext/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +0 -279
  612. data/ext/third_party/asio/asio/include/asio/impl/use_future.hpp +0 -1028
  613. data/ext/third_party/asio/asio/include/asio/impl/write.hpp +0 -1104
  614. data/ext/third_party/asio/asio/include/asio/impl/write_at.hpp +0 -666
  615. data/ext/third_party/asio/asio/include/asio/io_context.hpp +0 -1530
  616. data/ext/third_party/asio/asio/include/asio/io_context_strand.hpp +0 -376
  617. data/ext/third_party/asio/asio/include/asio/io_service.hpp +0 -33
  618. data/ext/third_party/asio/asio/include/asio/io_service_strand.hpp +0 -20
  619. data/ext/third_party/asio/asio/include/asio/ip/address.hpp +0 -268
  620. data/ext/third_party/asio/asio/include/asio/ip/address_v4.hpp +0 -335
  621. data/ext/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +0 -162
  622. data/ext/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +0 -134
  623. data/ext/third_party/asio/asio/include/asio/ip/address_v6.hpp +0 -341
  624. data/ext/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +0 -183
  625. data/ext/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +0 -129
  626. data/ext/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +0 -53
  627. data/ext/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +0 -264
  628. data/ext/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +0 -1030
  629. data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +0 -113
  630. data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +0 -192
  631. data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +0 -244
  632. data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +0 -311
  633. data/ext/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +0 -141
  634. data/ext/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +0 -199
  635. data/ext/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +0 -566
  636. data/ext/third_party/asio/asio/include/asio/ip/host_name.hpp +0 -42
  637. data/ext/third_party/asio/asio/include/asio/ip/icmp.hpp +0 -115
  638. data/ext/third_party/asio/asio/include/asio/ip/impl/address.hpp +0 -67
  639. data/ext/third_party/asio/asio/include/asio/ip/impl/address.ipp +0 -239
  640. data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +0 -67
  641. data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +0 -210
  642. data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +0 -67
  643. data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +0 -350
  644. data/ext/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +0 -43
  645. data/ext/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +0 -54
  646. data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +0 -54
  647. data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +0 -216
  648. data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +0 -53
  649. data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +0 -185
  650. data/ext/third_party/asio/asio/include/asio/ip/multicast.hpp +0 -191
  651. data/ext/third_party/asio/asio/include/asio/ip/network_v4.hpp +0 -261
  652. data/ext/third_party/asio/asio/include/asio/ip/network_v6.hpp +0 -235
  653. data/ext/third_party/asio/asio/include/asio/ip/resolver_base.hpp +0 -129
  654. data/ext/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +0 -43
  655. data/ext/third_party/asio/asio/include/asio/ip/tcp.hpp +0 -155
  656. data/ext/third_party/asio/asio/include/asio/ip/udp.hpp +0 -111
  657. data/ext/third_party/asio/asio/include/asio/ip/unicast.hpp +0 -70
  658. data/ext/third_party/asio/asio/include/asio/ip/v6_only.hpp +0 -69
  659. data/ext/third_party/asio/asio/include/asio/is_applicable_property.hpp +0 -61
  660. data/ext/third_party/asio/asio/include/asio/is_executor.hpp +0 -46
  661. data/ext/third_party/asio/asio/include/asio/is_read_buffered.hpp +0 -59
  662. data/ext/third_party/asio/asio/include/asio/is_write_buffered.hpp +0 -59
  663. data/ext/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +0 -247
  664. data/ext/third_party/asio/asio/include/asio/local/connect_pair.hpp +0 -101
  665. data/ext/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +0 -80
  666. data/ext/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +0 -139
  667. data/ext/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +0 -136
  668. data/ext/third_party/asio/asio/include/asio/local/stream_protocol.hpp +0 -90
  669. data/ext/third_party/asio/asio/include/asio/multiple_exceptions.hpp +0 -58
  670. data/ext/third_party/asio/asio/include/asio/packaged_task.hpp +0 -126
  671. data/ext/third_party/asio/asio/include/asio/placeholders.hpp +0 -151
  672. data/ext/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +0 -697
  673. data/ext/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +0 -470
  674. data/ext/third_party/asio/asio/include/asio/posix/descriptor.hpp +0 -37
  675. data/ext/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +0 -90
  676. data/ext/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +0 -37
  677. data/ext/third_party/asio/asio/include/asio/post.hpp +0 -126
  678. data/ext/third_party/asio/asio/include/asio/prefer.hpp +0 -656
  679. data/ext/third_party/asio/asio/include/asio/query.hpp +0 -296
  680. data/ext/third_party/asio/asio/include/asio/read.hpp +0 -1288
  681. data/ext/third_party/asio/asio/include/asio/read_at.hpp +0 -694
  682. data/ext/third_party/asio/asio/include/asio/read_until.hpp +0 -2863
  683. data/ext/third_party/asio/asio/include/asio/redirect_error.hpp +0 -66
  684. data/ext/third_party/asio/asio/include/asio/require.hpp +0 -524
  685. data/ext/third_party/asio/asio/include/asio/require_concept.hpp +0 -310
  686. data/ext/third_party/asio/asio/include/asio/serial_port.hpp +0 -36
  687. data/ext/third_party/asio/asio/include/asio/serial_port_base.hpp +0 -167
  688. data/ext/third_party/asio/asio/include/asio/signal_set.hpp +0 -28
  689. data/ext/third_party/asio/asio/include/asio/socket_base.hpp +0 -559
  690. data/ext/third_party/asio/asio/include/asio/spawn.hpp +0 -344
  691. data/ext/third_party/asio/asio/include/asio/ssl.hpp +0 -28
  692. data/ext/third_party/asio/asio/include/asio/ssl/context.hpp +0 -761
  693. data/ext/third_party/asio/asio/include/asio/ssl/context_base.hpp +0 -209
  694. data/ext/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +0 -119
  695. data/ext/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +0 -165
  696. data/ext/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +0 -67
  697. data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +0 -349
  698. data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +0 -165
  699. data/ext/third_party/asio/asio/include/asio/ssl/detail/io.hpp +0 -415
  700. data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +0 -101
  701. data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +0 -34
  702. data/ext/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +0 -66
  703. data/ext/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +0 -72
  704. data/ext/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +0 -69
  705. data/ext/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +0 -169
  706. data/ext/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +0 -62
  707. data/ext/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +0 -76
  708. data/ext/third_party/asio/asio/include/asio/ssl/error.hpp +0 -125
  709. data/ext/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +0 -90
  710. data/ext/third_party/asio/asio/include/asio/ssl/impl/context.hpp +0 -67
  711. data/ext/third_party/asio/asio/include/asio/ssl/impl/context.ipp +0 -1238
  712. data/ext/third_party/asio/asio/include/asio/ssl/impl/error.ipp +0 -102
  713. data/ext/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +0 -73
  714. data/ext/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +0 -164
  715. data/ext/third_party/asio/asio/include/asio/ssl/impl/src.hpp +0 -29
  716. data/ext/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +0 -98
  717. data/ext/third_party/asio/asio/include/asio/ssl/stream.hpp +0 -900
  718. data/ext/third_party/asio/asio/include/asio/ssl/stream_base.hpp +0 -52
  719. data/ext/third_party/asio/asio/include/asio/ssl/verify_context.hpp +0 -67
  720. data/ext/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +0 -63
  721. data/ext/third_party/asio/asio/include/asio/static_thread_pool.hpp +0 -31
  722. data/ext/third_party/asio/asio/include/asio/steady_timer.hpp +0 -42
  723. data/ext/third_party/asio/asio/include/asio/strand.hpp +0 -537
  724. data/ext/third_party/asio/asio/include/asio/streambuf.hpp +0 -33
  725. data/ext/third_party/asio/asio/include/asio/system_context.hpp +0 -90
  726. data/ext/third_party/asio/asio/include/asio/system_error.hpp +0 -131
  727. data/ext/third_party/asio/asio/include/asio/system_executor.hpp +0 -662
  728. data/ext/third_party/asio/asio/include/asio/system_timer.hpp +0 -42
  729. data/ext/third_party/asio/asio/include/asio/this_coro.hpp +0 -45
  730. data/ext/third_party/asio/asio/include/asio/thread.hpp +0 -92
  731. data/ext/third_party/asio/asio/include/asio/thread_pool.hpp +0 -1111
  732. data/ext/third_party/asio/asio/include/asio/time_traits.hpp +0 -86
  733. data/ext/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +0 -114
  734. data/ext/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +0 -114
  735. data/ext/third_party/asio/asio/include/asio/traits/connect_free.hpp +0 -112
  736. data/ext/third_party/asio/asio/include/asio/traits/connect_member.hpp +0 -112
  737. data/ext/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +0 -100
  738. data/ext/third_party/asio/asio/include/asio/traits/execute_free.hpp +0 -108
  739. data/ext/third_party/asio/asio/include/asio/traits/execute_member.hpp +0 -108
  740. data/ext/third_party/asio/asio/include/asio/traits/prefer_free.hpp +0 -108
  741. data/ext/third_party/asio/asio/include/asio/traits/prefer_member.hpp +0 -108
  742. data/ext/third_party/asio/asio/include/asio/traits/query_free.hpp +0 -108
  743. data/ext/third_party/asio/asio/include/asio/traits/query_member.hpp +0 -108
  744. data/ext/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +0 -108
  745. data/ext/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +0 -108
  746. data/ext/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +0 -108
  747. data/ext/third_party/asio/asio/include/asio/traits/require_free.hpp +0 -108
  748. data/ext/third_party/asio/asio/include/asio/traits/require_member.hpp +0 -108
  749. data/ext/third_party/asio/asio/include/asio/traits/schedule_free.hpp +0 -108
  750. data/ext/third_party/asio/asio/include/asio/traits/schedule_member.hpp +0 -108
  751. data/ext/third_party/asio/asio/include/asio/traits/set_done_free.hpp +0 -108
  752. data/ext/third_party/asio/asio/include/asio/traits/set_done_member.hpp +0 -108
  753. data/ext/third_party/asio/asio/include/asio/traits/set_error_free.hpp +0 -112
  754. data/ext/third_party/asio/asio/include/asio/traits/set_error_member.hpp +0 -112
  755. data/ext/third_party/asio/asio/include/asio/traits/set_value_free.hpp +0 -234
  756. data/ext/third_party/asio/asio/include/asio/traits/set_value_member.hpp +0 -234
  757. data/ext/third_party/asio/asio/include/asio/traits/start_free.hpp +0 -108
  758. data/ext/third_party/asio/asio/include/asio/traits/start_member.hpp +0 -108
  759. data/ext/third_party/asio/asio/include/asio/traits/static_query.hpp +0 -108
  760. data/ext/third_party/asio/asio/include/asio/traits/static_require.hpp +0 -123
  761. data/ext/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +0 -123
  762. data/ext/third_party/asio/asio/include/asio/traits/submit_free.hpp +0 -112
  763. data/ext/third_party/asio/asio/include/asio/traits/submit_member.hpp +0 -112
  764. data/ext/third_party/asio/asio/include/asio/ts/buffer.hpp +0 -24
  765. data/ext/third_party/asio/asio/include/asio/ts/executor.hpp +0 -35
  766. data/ext/third_party/asio/asio/include/asio/ts/internet.hpp +0 -40
  767. data/ext/third_party/asio/asio/include/asio/ts/io_context.hpp +0 -20
  768. data/ext/third_party/asio/asio/include/asio/ts/net.hpp +0 -26
  769. data/ext/third_party/asio/asio/include/asio/ts/netfwd.hpp +0 -262
  770. data/ext/third_party/asio/asio/include/asio/ts/socket.hpp +0 -27
  771. data/ext/third_party/asio/asio/include/asio/ts/timer.hpp +0 -26
  772. data/ext/third_party/asio/asio/include/asio/unyield.hpp +0 -21
  773. data/ext/third_party/asio/asio/include/asio/use_awaitable.hpp +0 -169
  774. data/ext/third_party/asio/asio/include/asio/use_future.hpp +0 -160
  775. data/ext/third_party/asio/asio/include/asio/uses_executor.hpp +0 -71
  776. data/ext/third_party/asio/asio/include/asio/version.hpp +0 -23
  777. data/ext/third_party/asio/asio/include/asio/wait_traits.hpp +0 -56
  778. data/ext/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +0 -435
  779. data/ext/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +0 -361
  780. data/ext/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +0 -490
  781. data/ext/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +0 -474
  782. data/ext/third_party/asio/asio/include/asio/windows/object_handle.hpp +0 -38
  783. data/ext/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +0 -39
  784. data/ext/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +0 -145
  785. data/ext/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +0 -37
  786. data/ext/third_party/asio/asio/include/asio/windows/stream_handle.hpp +0 -37
  787. data/ext/third_party/asio/asio/include/asio/write.hpp +0 -1246
  788. data/ext/third_party/asio/asio/include/asio/write_at.hpp +0 -702
  789. data/ext/third_party/asio/asio/include/asio/yield.hpp +0 -23
  790. data/ext/third_party/gsl/CMakeLists.txt +0 -127
  791. data/ext/third_party/gsl/LICENSE +0 -21
  792. data/ext/third_party/gsl/ThirdPartyNotices.txt +0 -41
  793. data/ext/third_party/gsl/include/gsl/gsl +0 -29
  794. data/ext/third_party/gsl/include/gsl/gsl_algorithm +0 -61
  795. data/ext/third_party/gsl/include/gsl/gsl_assert +0 -133
  796. data/ext/third_party/gsl/include/gsl/gsl_byte +0 -209
  797. data/ext/third_party/gsl/include/gsl/gsl_narrow +0 -52
  798. data/ext/third_party/gsl/include/gsl/gsl_util +0 -129
  799. data/ext/third_party/gsl/include/gsl/multi_span +0 -2263
  800. data/ext/third_party/gsl/include/gsl/pointers +0 -287
  801. data/ext/third_party/gsl/include/gsl/span +0 -816
  802. data/ext/third_party/gsl/include/gsl/span_ext +0 -198
  803. data/ext/third_party/gsl/include/gsl/string_span +0 -706
  804. data/ext/third_party/http_parser/LICENSE-MIT +0 -19
  805. data/ext/third_party/http_parser/http_parser.c +0 -2575
  806. data/ext/third_party/http_parser/http_parser.h +0 -449
  807. data/ext/third_party/json/CMakeLists.txt +0 -44
  808. data/ext/third_party/json/LICENSE +0 -21
  809. data/ext/third_party/json/LICENSE.double-conversion +0 -32
  810. data/ext/third_party/json/LICENSE.itoa +0 -19
  811. data/ext/third_party/json/LICENSE.ryu +0 -201
  812. data/ext/third_party/json/include/tao/json.hpp +0 -45
  813. data/ext/third_party/json/include/tao/json/basic_value.hpp +0 -942
  814. data/ext/third_party/json/include/tao/json/binary.hpp +0 -103
  815. data/ext/third_party/json/include/tao/json/binary_view.hpp +0 -31
  816. data/ext/third_party/json/include/tao/json/binding.hpp +0 -71
  817. data/ext/third_party/json/include/tao/json/binding/constant.hpp +0 -232
  818. data/ext/third_party/json/include/tao/json/binding/element.hpp +0 -182
  819. data/ext/third_party/json/include/tao/json/binding/factory.hpp +0 -251
  820. data/ext/third_party/json/include/tao/json/binding/for_nothing_value.hpp +0 -17
  821. data/ext/third_party/json/include/tao/json/binding/for_unknown_key.hpp +0 -17
  822. data/ext/third_party/json/include/tao/json/binding/inherit.hpp +0 -14
  823. data/ext/third_party/json/include/tao/json/binding/internal/array.hpp +0 -104
  824. data/ext/third_party/json/include/tao/json/binding/internal/inherit.hpp +0 -45
  825. data/ext/third_party/json/include/tao/json/binding/internal/object.hpp +0 -268
  826. data/ext/third_party/json/include/tao/json/binding/internal/type_key.hpp +0 -54
  827. data/ext/third_party/json/include/tao/json/binding/member.hpp +0 -32
  828. data/ext/third_party/json/include/tao/json/binding/member_kind.hpp +0 -17
  829. data/ext/third_party/json/include/tao/json/binding/versions.hpp +0 -129
  830. data/ext/third_party/json/include/tao/json/cbor.hpp +0 -19
  831. data/ext/third_party/json/include/tao/json/cbor/consume_file.hpp +0 -34
  832. data/ext/third_party/json/include/tao/json/cbor/consume_string.hpp +0 -32
  833. data/ext/third_party/json/include/tao/json/cbor/events/from_binary.hpp +0 -43
  834. data/ext/third_party/json/include/tao/json/cbor/events/from_file.hpp +0 -27
  835. data/ext/third_party/json/include/tao/json/cbor/events/from_input.hpp +0 -43
  836. data/ext/third_party/json/include/tao/json/cbor/events/from_string.hpp +0 -37
  837. data/ext/third_party/json/include/tao/json/cbor/events/to_stream.hpp +0 -161
  838. data/ext/third_party/json/include/tao/json/cbor/events/to_string.hpp +0 -31
  839. data/ext/third_party/json/include/tao/json/cbor/from_binary.hpp +0 -32
  840. data/ext/third_party/json/include/tao/json/cbor/from_file.hpp +0 -33
  841. data/ext/third_party/json/include/tao/json/cbor/from_input.hpp +0 -33
  842. data/ext/third_party/json/include/tao/json/cbor/from_string.hpp +0 -32
  843. data/ext/third_party/json/include/tao/json/cbor/internal/grammar.hpp +0 -418
  844. data/ext/third_party/json/include/tao/json/cbor/internal/major.hpp +0 -28
  845. data/ext/third_party/json/include/tao/json/cbor/parts_parser.hpp +0 -392
  846. data/ext/third_party/json/include/tao/json/cbor/to_stream.hpp +0 -27
  847. data/ext/third_party/json/include/tao/json/cbor/to_string.hpp +0 -28
  848. data/ext/third_party/json/include/tao/json/consume.hpp +0 -43
  849. data/ext/third_party/json/include/tao/json/consume_file.hpp +0 -33
  850. data/ext/third_party/json/include/tao/json/consume_string.hpp +0 -31
  851. data/ext/third_party/json/include/tao/json/contrib/array_traits.hpp +0 -43
  852. data/ext/third_party/json/include/tao/json/contrib/deque_traits.hpp +0 -41
  853. data/ext/third_party/json/include/tao/json/contrib/diff.hpp +0 -106
  854. data/ext/third_party/json/include/tao/json/contrib/get.hpp +0 -152
  855. data/ext/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +0 -92
  856. data/ext/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +0 -76
  857. data/ext/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +0 -105
  858. data/ext/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +0 -36
  859. data/ext/third_party/json/include/tao/json/contrib/list_traits.hpp +0 -41
  860. data/ext/third_party/json/include/tao/json/contrib/map_traits.hpp +0 -43
  861. data/ext/third_party/json/include/tao/json/contrib/multimap_traits.hpp +0 -43
  862. data/ext/third_party/json/include/tao/json/contrib/multiset_traits.hpp +0 -41
  863. data/ext/third_party/json/include/tao/json/contrib/pair_traits.hpp +0 -21
  864. data/ext/third_party/json/include/tao/json/contrib/patch.hpp +0 -105
  865. data/ext/third_party/json/include/tao/json/contrib/pointer_traits.hpp +0 -59
  866. data/ext/third_party/json/include/tao/json/contrib/position.hpp +0 -166
  867. data/ext/third_party/json/include/tao/json/contrib/reference.hpp +0 -113
  868. data/ext/third_party/json/include/tao/json/contrib/schema.hpp +0 -1874
  869. data/ext/third_party/json/include/tao/json/contrib/set_traits.hpp +0 -41
  870. data/ext/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +0 -98
  871. data/ext/third_party/json/include/tao/json/contrib/traits.hpp +0 -121
  872. data/ext/third_party/json/include/tao/json/contrib/tuple_traits.hpp +0 -51
  873. data/ext/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +0 -97
  874. data/ext/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +0 -43
  875. data/ext/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +0 -41
  876. data/ext/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +0 -45
  877. data/ext/third_party/json/include/tao/json/contrib/vector_traits.hpp +0 -51
  878. data/ext/third_party/json/include/tao/json/events.hpp +0 -47
  879. data/ext/third_party/json/include/tao/json/events/apply.hpp +0 -20
  880. data/ext/third_party/json/include/tao/json/events/binary_to_base64.hpp +0 -26
  881. data/ext/third_party/json/include/tao/json/events/binary_to_base64url.hpp +0 -28
  882. data/ext/third_party/json/include/tao/json/events/binary_to_exception.hpp +0 -27
  883. data/ext/third_party/json/include/tao/json/events/binary_to_hex.hpp +0 -26
  884. data/ext/third_party/json/include/tao/json/events/compare.hpp +0 -255
  885. data/ext/third_party/json/include/tao/json/events/debug.hpp +0 -145
  886. data/ext/third_party/json/include/tao/json/events/discard.hpp +0 -43
  887. data/ext/third_party/json/include/tao/json/events/from_file.hpp +0 -28
  888. data/ext/third_party/json/include/tao/json/events/from_input.hpp +0 -45
  889. data/ext/third_party/json/include/tao/json/events/from_stream.hpp +0 -33
  890. data/ext/third_party/json/include/tao/json/events/from_string.hpp +0 -38
  891. data/ext/third_party/json/include/tao/json/events/from_value.hpp +0 -202
  892. data/ext/third_party/json/include/tao/json/events/hash.hpp +0 -174
  893. data/ext/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +0 -50
  894. data/ext/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +0 -49
  895. data/ext/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +0 -48
  896. data/ext/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +0 -62
  897. data/ext/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +0 -57
  898. data/ext/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +0 -82
  899. data/ext/third_party/json/include/tao/json/events/limit_value_count.hpp +0 -46
  900. data/ext/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +0 -31
  901. data/ext/third_party/json/include/tao/json/events/non_finite_to_null.hpp +0 -32
  902. data/ext/third_party/json/include/tao/json/events/non_finite_to_string.hpp +0 -40
  903. data/ext/third_party/json/include/tao/json/events/prefer_signed.hpp +0 -32
  904. data/ext/third_party/json/include/tao/json/events/prefer_unsigned.hpp +0 -32
  905. data/ext/third_party/json/include/tao/json/events/produce.hpp +0 -22
  906. data/ext/third_party/json/include/tao/json/events/ref.hpp +0 -111
  907. data/ext/third_party/json/include/tao/json/events/statistics.hpp +0 -112
  908. data/ext/third_party/json/include/tao/json/events/tee.hpp +0 -386
  909. data/ext/third_party/json/include/tao/json/events/to_pretty_stream.hpp +0 -172
  910. data/ext/third_party/json/include/tao/json/events/to_stream.hpp +0 -142
  911. data/ext/third_party/json/include/tao/json/events/to_string.hpp +0 -33
  912. data/ext/third_party/json/include/tao/json/events/to_value.hpp +0 -137
  913. data/ext/third_party/json/include/tao/json/events/transformer.hpp +0 -70
  914. data/ext/third_party/json/include/tao/json/events/validate_event_order.hpp +0 -411
  915. data/ext/third_party/json/include/tao/json/events/validate_keys.hpp +0 -51
  916. data/ext/third_party/json/include/tao/json/events/virtual_base.hpp +0 -192
  917. data/ext/third_party/json/include/tao/json/events/virtual_ref.hpp +0 -176
  918. data/ext/third_party/json/include/tao/json/external/double.hpp +0 -1313
  919. data/ext/third_party/json/include/tao/json/external/itoa.hpp +0 -149
  920. data/ext/third_party/json/include/tao/json/external/pegtl.hpp +0 -44
  921. data/ext/third_party/json/include/tao/json/external/pegtl/apply_mode.hpp +0 -19
  922. data/ext/third_party/json/include/tao/json/external/pegtl/argv_input.hpp +0 -49
  923. data/ext/third_party/json/include/tao/json/external/pegtl/ascii.hpp +0 -54
  924. data/ext/third_party/json/include/tao/json/external/pegtl/buffer_input.hpp +0 -212
  925. data/ext/third_party/json/include/tao/json/external/pegtl/change_action.hpp +0 -38
  926. data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_state.hpp +0 -53
  927. data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_states.hpp +0 -62
  928. data/ext/third_party/json/include/tao/json/external/pegtl/change_control.hpp +0 -36
  929. data/ext/third_party/json/include/tao/json/external/pegtl/change_state.hpp +0 -50
  930. data/ext/third_party/json/include/tao/json/external/pegtl/change_states.hpp +0 -61
  931. data/ext/third_party/json/include/tao/json/external/pegtl/config.hpp +0 -11
  932. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/abnf.hpp +0 -35
  933. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/alphabet.hpp +0 -67
  934. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/analyze.hpp +0 -176
  935. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/analyze_traits.hpp +0 -275
  936. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/control_action.hpp +0 -77
  937. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/coverage.hpp +0 -151
  938. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/forward.hpp +0 -16
  939. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/http.hpp +0 -272
  940. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/internal.hpp +0 -66
  941. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf16.hpp +0 -196
  942. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf32.hpp +0 -196
  943. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf8.hpp +0 -103
  944. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/if_then.hpp +0 -56
  945. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/integer.hpp +0 -431
  946. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian.hpp +0 -62
  947. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian_gcc.hpp +0 -206
  948. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian_win.hpp +0 -106
  949. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_mask_uint.hpp +0 -54
  950. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_mask_uint8.hpp +0 -33
  951. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_uint.hpp +0 -45
  952. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_uint8.hpp +0 -32
  953. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_utf16.hpp +0 -54
  954. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_utf32.hpp +0 -43
  955. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/read_uint.hpp +0 -77
  956. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/set_stack_guard.hpp +0 -52
  957. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json.hpp +0 -88
  958. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp +0 -33
  959. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree.hpp +0 -440
  960. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree_to_dot.hpp +0 -105
  961. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/print.hpp +0 -75
  962. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/print_coverage.hpp +0 -53
  963. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/raw_string.hpp +0 -234
  964. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/remove_first_state.hpp +0 -69
  965. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/remove_last_states.hpp +0 -117
  966. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_one_min_max.hpp +0 -94
  967. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_string.hpp +0 -43
  968. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/shuffle_states.hpp +0 -193
  969. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/state_control.hpp +0 -118
  970. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/to_string.hpp +0 -38
  971. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/trace.hpp +0 -227
  972. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint16.hpp +0 -62
  973. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint32.hpp +0 -62
  974. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint64.hpp +0 -63
  975. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint8.hpp +0 -36
  976. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/unescape.hpp +0 -199
  977. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uri.hpp +0 -106
  978. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/utf16.hpp +0 -49
  979. data/ext/third_party/json/include/tao/json/external/pegtl/contrib/utf32.hpp +0 -49
  980. data/ext/third_party/json/include/tao/json/external/pegtl/cstream_input.hpp +0 -32
  981. data/ext/third_party/json/include/tao/json/external/pegtl/demangle.hpp +0 -138
  982. data/ext/third_party/json/include/tao/json/external/pegtl/disable_action.hpp +0 -35
  983. data/ext/third_party/json/include/tao/json/external/pegtl/discard_input.hpp +0 -37
  984. data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_failure.hpp +0 -39
  985. data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_success.hpp +0 -39
  986. data/ext/third_party/json/include/tao/json/external/pegtl/enable_action.hpp +0 -35
  987. data/ext/third_party/json/include/tao/json/external/pegtl/eol.hpp +0 -37
  988. data/ext/third_party/json/include/tao/json/external/pegtl/eol_pair.hpp +0 -18
  989. data/ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp +0 -44
  990. data/ext/third_party/json/include/tao/json/external/pegtl/internal/action.hpp +0 -54
  991. data/ext/third_party/json/include/tao/json/external/pegtl/internal/action_input.hpp +0 -106
  992. data/ext/third_party/json/include/tao/json/external/pegtl/internal/any.hpp +0 -58
  993. data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply.hpp +0 -53
  994. data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0.hpp +0 -51
  995. data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0_single.hpp +0 -34
  996. data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply_single.hpp +0 -34
  997. data/ext/third_party/json/include/tao/json/external/pegtl/internal/at.hpp +0 -55
  998. data/ext/third_party/json/include/tao/json/external/pegtl/internal/bof.hpp +0 -32
  999. data/ext/third_party/json/include/tao/json/external/pegtl/internal/bol.hpp +0 -31
  1000. data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump.hpp +0 -45
  1001. data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump_help.hpp +0 -29
  1002. data/ext/third_party/json/include/tao/json/external/pegtl/internal/bytes.hpp +0 -43
  1003. data/ext/third_party/json/include/tao/json/external/pegtl/internal/control.hpp +0 -54
  1004. data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_crlf_eol.hpp +0 -32
  1005. data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_eol.hpp +0 -32
  1006. data/ext/third_party/json/include/tao/json/external/pegtl/internal/crlf_eol.hpp +0 -32
  1007. data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstream_reader.hpp +0 -49
  1008. data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstring_reader.hpp +0 -40
  1009. data/ext/third_party/json/include/tao/json/external/pegtl/internal/dependent_false.hpp +0 -16
  1010. data/ext/third_party/json/include/tao/json/external/pegtl/internal/disable.hpp +0 -54
  1011. data/ext/third_party/json/include/tao/json/external/pegtl/internal/discard.hpp +0 -34
  1012. data/ext/third_party/json/include/tao/json/external/pegtl/internal/enable.hpp +0 -54
  1013. data/ext/third_party/json/include/tao/json/external/pegtl/internal/enable_control.hpp +0 -25
  1014. data/ext/third_party/json/include/tao/json/external/pegtl/internal/eof.hpp +0 -32
  1015. data/ext/third_party/json/include/tao/json/external/pegtl/internal/eol.hpp +0 -32
  1016. data/ext/third_party/json/include/tao/json/external/pegtl/internal/eolf.hpp +0 -33
  1017. data/ext/third_party/json/include/tao/json/external/pegtl/internal/failure.hpp +0 -32
  1018. data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_posix.hpp +0 -134
  1019. data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_win32.hpp +0 -213
  1020. data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_reader.hpp +0 -117
  1021. data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply.hpp +0 -21
  1022. data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply0.hpp +0 -21
  1023. data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_match.hpp +0 -40
  1024. data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_unwind.hpp +0 -21
  1025. data/ext/third_party/json/include/tao/json/external/pegtl/internal/identifier.hpp +0 -22
  1026. data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_apply.hpp +0 -54
  1027. data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must.hpp +0 -47
  1028. data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must_else.hpp +0 -21
  1029. data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_then_else.hpp +0 -51
  1030. data/ext/third_party/json/include/tao/json/external/pegtl/internal/input_pair.hpp +0 -29
  1031. data/ext/third_party/json/include/tao/json/external/pegtl/internal/istream_reader.hpp +0 -39
  1032. data/ext/third_party/json/include/tao/json/external/pegtl/internal/istring.hpp +0 -72
  1033. data/ext/third_party/json/include/tao/json/external/pegtl/internal/iterator.hpp +0 -49
  1034. data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_crlf_eol.hpp +0 -37
  1035. data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_eol.hpp +0 -32
  1036. data/ext/third_party/json/include/tao/json/external/pegtl/internal/list.hpp +0 -19
  1037. data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_must.hpp +0 -20
  1038. data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail.hpp +0 -22
  1039. data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail_pad.hpp +0 -22
  1040. data/ext/third_party/json/include/tao/json/external/pegtl/internal/marker.hpp +0 -80
  1041. data/ext/third_party/json/include/tao/json/external/pegtl/internal/minus.hpp +0 -21
  1042. data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply.hpp +0 -28
  1043. data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply0.hpp +0 -26
  1044. data/ext/third_party/json/include/tao/json/external/pegtl/internal/must.hpp +0 -64
  1045. data/ext/third_party/json/include/tao/json/external/pegtl/internal/not_at.hpp +0 -55
  1046. data/ext/third_party/json/include/tao/json/external/pegtl/internal/one.hpp +0 -55
  1047. data/ext/third_party/json/include/tao/json/external/pegtl/internal/opt.hpp +0 -57
  1048. data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad.hpp +0 -19
  1049. data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad_opt.hpp +0 -20
  1050. data/ext/third_party/json/include/tao/json/external/pegtl/internal/path_to_string.hpp +0 -26
  1051. data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_char.hpp +0 -32
  1052. data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_utf8.hpp +0 -89
  1053. data/ext/third_party/json/include/tao/json/external/pegtl/internal/pegtl_string.hpp +0 -90
  1054. data/ext/third_party/json/include/tao/json/external/pegtl/internal/plus.hpp +0 -60
  1055. data/ext/third_party/json/include/tao/json/external/pegtl/internal/raise.hpp +0 -44
  1056. data/ext/third_party/json/include/tao/json/external/pegtl/internal/range.hpp +0 -56
  1057. data/ext/third_party/json/include/tao/json/external/pegtl/internal/ranges.hpp +0 -103
  1058. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rematch.hpp +0 -72
  1059. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep.hpp +0 -67
  1060. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min.hpp +0 -20
  1061. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min_max.hpp +0 -81
  1062. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_opt.hpp +0 -61
  1063. data/ext/third_party/json/include/tao/json/external/pegtl/internal/require.hpp +0 -42
  1064. data/ext/third_party/json/include/tao/json/external/pegtl/internal/result_on_found.hpp +0 -19
  1065. data/ext/third_party/json/include/tao/json/external/pegtl/internal/rules.hpp +0 -61
  1066. data/ext/third_party/json/include/tao/json/external/pegtl/internal/seq.hpp +0 -58
  1067. data/ext/third_party/json/include/tao/json/external/pegtl/internal/sor.hpp +0 -67
  1068. data/ext/third_party/json/include/tao/json/external/pegtl/internal/star.hpp +0 -52
  1069. data/ext/third_party/json/include/tao/json/external/pegtl/internal/star_must.hpp +0 -19
  1070. data/ext/third_party/json/include/tao/json/external/pegtl/internal/state.hpp +0 -59
  1071. data/ext/third_party/json/include/tao/json/external/pegtl/internal/string.hpp +0 -58
  1072. data/ext/third_party/json/include/tao/json/external/pegtl/internal/success.hpp +0 -32
  1073. data/ext/third_party/json/include/tao/json/external/pegtl/internal/try_catch_type.hpp +0 -64
  1074. data/ext/third_party/json/include/tao/json/external/pegtl/internal/until.hpp +0 -88
  1075. data/ext/third_party/json/include/tao/json/external/pegtl/istream_input.hpp +0 -32
  1076. data/ext/third_party/json/include/tao/json/external/pegtl/match.hpp +0 -169
  1077. data/ext/third_party/json/include/tao/json/external/pegtl/memory_input.hpp +0 -365
  1078. data/ext/third_party/json/include/tao/json/external/pegtl/mmap_input.hpp +0 -79
  1079. data/ext/third_party/json/include/tao/json/external/pegtl/must_if.hpp +0 -64
  1080. data/ext/third_party/json/include/tao/json/external/pegtl/normal.hpp +0 -87
  1081. data/ext/third_party/json/include/tao/json/external/pegtl/nothing.hpp +0 -19
  1082. data/ext/third_party/json/include/tao/json/external/pegtl/parse.hpp +0 -51
  1083. data/ext/third_party/json/include/tao/json/external/pegtl/parse_error.hpp +0 -114
  1084. data/ext/third_party/json/include/tao/json/external/pegtl/position.hpp +0 -83
  1085. data/ext/third_party/json/include/tao/json/external/pegtl/read_input.hpp +0 -54
  1086. data/ext/third_party/json/include/tao/json/external/pegtl/require_apply.hpp +0 -16
  1087. data/ext/third_party/json/include/tao/json/external/pegtl/require_apply0.hpp +0 -16
  1088. data/ext/third_party/json/include/tao/json/external/pegtl/rewind_mode.hpp +0 -20
  1089. data/ext/third_party/json/include/tao/json/external/pegtl/rules.hpp +0 -68
  1090. data/ext/third_party/json/include/tao/json/external/pegtl/string_input.hpp +0 -64
  1091. data/ext/third_party/json/include/tao/json/external/pegtl/tracking_mode.hpp +0 -19
  1092. data/ext/third_party/json/include/tao/json/external/pegtl/type_list.hpp +0 -46
  1093. data/ext/third_party/json/include/tao/json/external/pegtl/utf8.hpp +0 -28
  1094. data/ext/third_party/json/include/tao/json/external/pegtl/version.hpp +0 -13
  1095. data/ext/third_party/json/include/tao/json/external/pegtl/visit.hpp +0 -66
  1096. data/ext/third_party/json/include/tao/json/external/ryu.hpp +0 -1216
  1097. data/ext/third_party/json/include/tao/json/forward.hpp +0 -44
  1098. data/ext/third_party/json/include/tao/json/from_file.hpp +0 -32
  1099. data/ext/third_party/json/include/tao/json/from_input.hpp +0 -32
  1100. data/ext/third_party/json/include/tao/json/from_stream.hpp +0 -45
  1101. data/ext/third_party/json/include/tao/json/from_string.hpp +0 -41
  1102. data/ext/third_party/json/include/tao/json/internal/action.hpp +0 -268
  1103. data/ext/third_party/json/include/tao/json/internal/base64.hpp +0 -55
  1104. data/ext/third_party/json/include/tao/json/internal/base64url.hpp +0 -53
  1105. data/ext/third_party/json/include/tao/json/internal/dependent_false.hpp +0 -14
  1106. data/ext/third_party/json/include/tao/json/internal/endian.hpp +0 -60
  1107. data/ext/third_party/json/include/tao/json/internal/endian_gcc.hpp +0 -198
  1108. data/ext/third_party/json/include/tao/json/internal/endian_win.hpp +0 -103
  1109. data/ext/third_party/json/include/tao/json/internal/errors.hpp +0 -85
  1110. data/ext/third_party/json/include/tao/json/internal/escape.hpp +0 -77
  1111. data/ext/third_party/json/include/tao/json/internal/format.hpp +0 -57
  1112. data/ext/third_party/json/include/tao/json/internal/grammar.hpp +0 -229
  1113. data/ext/third_party/json/include/tao/json/internal/hexdump.hpp +0 -31
  1114. data/ext/third_party/json/include/tao/json/internal/identity.hpp +0 -22
  1115. data/ext/third_party/json/include/tao/json/internal/number_state.hpp +0 -80
  1116. data/ext/third_party/json/include/tao/json/internal/number_traits.hpp +0 -267
  1117. data/ext/third_party/json/include/tao/json/internal/pair.hpp +0 -42
  1118. data/ext/third_party/json/include/tao/json/internal/parse_util.hpp +0 -112
  1119. data/ext/third_party/json/include/tao/json/internal/sha256.hpp +0 -218
  1120. data/ext/third_party/json/include/tao/json/internal/single.hpp +0 -40
  1121. data/ext/third_party/json/include/tao/json/internal/string_t.hpp +0 -35
  1122. data/ext/third_party/json/include/tao/json/internal/type_traits.hpp +0 -96
  1123. data/ext/third_party/json/include/tao/json/internal/unescape_action.hpp +0 -24
  1124. data/ext/third_party/json/include/tao/json/internal/uri_fragment.hpp +0 -182
  1125. data/ext/third_party/json/include/tao/json/jaxn.hpp +0 -19
  1126. data/ext/third_party/json/include/tao/json/jaxn/consume_file.hpp +0 -34
  1127. data/ext/third_party/json/include/tao/json/jaxn/consume_string.hpp +0 -32
  1128. data/ext/third_party/json/include/tao/json/jaxn/events/from_file.hpp +0 -28
  1129. data/ext/third_party/json/include/tao/json/jaxn/events/from_input.hpp +0 -45
  1130. data/ext/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +0 -33
  1131. data/ext/third_party/json/include/tao/json/jaxn/events/from_string.hpp +0 -39
  1132. data/ext/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +0 -69
  1133. data/ext/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +0 -67
  1134. data/ext/third_party/json/include/tao/json/jaxn/events/to_string.hpp +0 -33
  1135. data/ext/third_party/json/include/tao/json/jaxn/from_file.hpp +0 -33
  1136. data/ext/third_party/json/include/tao/json/jaxn/from_input.hpp +0 -33
  1137. data/ext/third_party/json/include/tao/json/jaxn/from_stream.hpp +0 -48
  1138. data/ext/third_party/json/include/tao/json/jaxn/from_string.hpp +0 -42
  1139. data/ext/third_party/json/include/tao/json/jaxn/internal/action.hpp +0 -355
  1140. data/ext/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +0 -114
  1141. data/ext/third_party/json/include/tao/json/jaxn/internal/errors.hpp +0 -108
  1142. data/ext/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +0 -375
  1143. data/ext/third_party/json/include/tao/json/jaxn/internal/integer.hpp +0 -255
  1144. data/ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +0 -28
  1145. data/ext/third_party/json/include/tao/json/jaxn/is_identifier.hpp +0 -27
  1146. data/ext/third_party/json/include/tao/json/jaxn/parts_parser.hpp +0 -261
  1147. data/ext/third_party/json/include/tao/json/jaxn/to_stream.hpp +0 -36
  1148. data/ext/third_party/json/include/tao/json/jaxn/to_string.hpp +0 -33
  1149. data/ext/third_party/json/include/tao/json/message_extension.hpp +0 -49
  1150. data/ext/third_party/json/include/tao/json/msgpack.hpp +0 -19
  1151. data/ext/third_party/json/include/tao/json/msgpack/consume_file.hpp +0 -34
  1152. data/ext/third_party/json/include/tao/json/msgpack/consume_string.hpp +0 -32
  1153. data/ext/third_party/json/include/tao/json/msgpack/events/from_binary.hpp +0 -43
  1154. data/ext/third_party/json/include/tao/json/msgpack/events/from_file.hpp +0 -27
  1155. data/ext/third_party/json/include/tao/json/msgpack/events/from_input.hpp +0 -43
  1156. data/ext/third_party/json/include/tao/json/msgpack/events/from_string.hpp +0 -37
  1157. data/ext/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +0 -214
  1158. data/ext/third_party/json/include/tao/json/msgpack/events/to_string.hpp +0 -31
  1159. data/ext/third_party/json/include/tao/json/msgpack/from_binary.hpp +0 -32
  1160. data/ext/third_party/json/include/tao/json/msgpack/from_file.hpp +0 -33
  1161. data/ext/third_party/json/include/tao/json/msgpack/from_input.hpp +0 -33
  1162. data/ext/third_party/json/include/tao/json/msgpack/from_string.hpp +0 -32
  1163. data/ext/third_party/json/include/tao/json/msgpack/internal/format.hpp +0 -57
  1164. data/ext/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +0 -250
  1165. data/ext/third_party/json/include/tao/json/msgpack/parts_parser.hpp +0 -311
  1166. data/ext/third_party/json/include/tao/json/msgpack/to_stream.hpp +0 -27
  1167. data/ext/third_party/json/include/tao/json/msgpack/to_string.hpp +0 -28
  1168. data/ext/third_party/json/include/tao/json/operators.hpp +0 -490
  1169. data/ext/third_party/json/include/tao/json/parts_parser.hpp +0 -302
  1170. data/ext/third_party/json/include/tao/json/pointer.hpp +0 -432
  1171. data/ext/third_party/json/include/tao/json/produce.hpp +0 -61
  1172. data/ext/third_party/json/include/tao/json/self_contained.hpp +0 -131
  1173. data/ext/third_party/json/include/tao/json/span.hpp +0 -496
  1174. data/ext/third_party/json/include/tao/json/stream.hpp +0 -38
  1175. data/ext/third_party/json/include/tao/json/to_stream.hpp +0 -42
  1176. data/ext/third_party/json/include/tao/json/to_string.hpp +0 -23
  1177. data/ext/third_party/json/include/tao/json/traits.hpp +0 -971
  1178. data/ext/third_party/json/include/tao/json/type.hpp +0 -112
  1179. data/ext/third_party/json/include/tao/json/ubjson.hpp +0 -19
  1180. data/ext/third_party/json/include/tao/json/ubjson/consume_file.hpp +0 -34
  1181. data/ext/third_party/json/include/tao/json/ubjson/consume_string.hpp +0 -32
  1182. data/ext/third_party/json/include/tao/json/ubjson/events/from_binary.hpp +0 -43
  1183. data/ext/third_party/json/include/tao/json/ubjson/events/from_file.hpp +0 -27
  1184. data/ext/third_party/json/include/tao/json/ubjson/events/from_input.hpp +0 -43
  1185. data/ext/third_party/json/include/tao/json/ubjson/events/from_string.hpp +0 -37
  1186. data/ext/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +0 -174
  1187. data/ext/third_party/json/include/tao/json/ubjson/events/to_string.hpp +0 -31
  1188. data/ext/third_party/json/include/tao/json/ubjson/from_binary.hpp +0 -32
  1189. data/ext/third_party/json/include/tao/json/ubjson/from_file.hpp +0 -33
  1190. data/ext/third_party/json/include/tao/json/ubjson/from_input.hpp +0 -33
  1191. data/ext/third_party/json/include/tao/json/ubjson/from_string.hpp +0 -32
  1192. data/ext/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +0 -415
  1193. data/ext/third_party/json/include/tao/json/ubjson/internal/marker.hpp +0 -46
  1194. data/ext/third_party/json/include/tao/json/ubjson/parts_parser.hpp +0 -393
  1195. data/ext/third_party/json/include/tao/json/ubjson/to_stream.hpp +0 -28
  1196. data/ext/third_party/json/include/tao/json/ubjson/to_string.hpp +0 -29
  1197. data/ext/third_party/json/include/tao/json/utf8.hpp +0 -57
  1198. data/ext/third_party/json/include/tao/json/value.hpp +0 -12
  1199. data/ext/third_party/snappy/CMakeLists.txt +0 -345
  1200. data/ext/third_party/snappy/COPYING +0 -54
  1201. data/ext/third_party/snappy/cmake/SnappyConfig.cmake.in +0 -33
  1202. data/ext/third_party/snappy/cmake/config.h.in +0 -59
  1203. data/ext/third_party/snappy/snappy-c.cc +0 -90
  1204. data/ext/third_party/snappy/snappy-c.h +0 -138
  1205. data/ext/third_party/snappy/snappy-internal.h +0 -315
  1206. data/ext/third_party/snappy/snappy-sinksource.cc +0 -121
  1207. data/ext/third_party/snappy/snappy-sinksource.h +0 -182
  1208. data/ext/third_party/snappy/snappy-stubs-internal.cc +0 -42
  1209. data/ext/third_party/snappy/snappy-stubs-internal.h +0 -493
  1210. data/ext/third_party/snappy/snappy-stubs-public.h.in +0 -63
  1211. data/ext/third_party/snappy/snappy.cc +0 -1774
  1212. data/ext/third_party/snappy/snappy.h +0 -209
  1213. data/ext/third_party/spdlog/CMakeLists.txt +0 -291
  1214. data/ext/third_party/spdlog/LICENSE +0 -26
  1215. data/ext/third_party/spdlog/cmake/ide.cmake +0 -18
  1216. data/ext/third_party/spdlog/cmake/pch.h.in +0 -258
  1217. data/ext/third_party/spdlog/cmake/spdlog.pc.in +0 -13
  1218. data/ext/third_party/spdlog/cmake/spdlogCPack.cmake +0 -46
  1219. data/ext/third_party/spdlog/cmake/spdlogConfig.cmake.in +0 -15
  1220. data/ext/third_party/spdlog/cmake/utils.cmake +0 -61
  1221. data/ext/third_party/spdlog/cmake/version.rc.in +0 -42
  1222. data/ext/third_party/spdlog/include/spdlog/async.h +0 -93
  1223. data/ext/third_party/spdlog/include/spdlog/async_logger-inl.h +0 -92
  1224. data/ext/third_party/spdlog/include/spdlog/async_logger.h +0 -68
  1225. data/ext/third_party/spdlog/include/spdlog/cfg/argv.h +0 -44
  1226. data/ext/third_party/spdlog/include/spdlog/cfg/env.h +0 -38
  1227. data/ext/third_party/spdlog/include/spdlog/cfg/helpers-inl.h +0 -119
  1228. data/ext/third_party/spdlog/include/spdlog/cfg/helpers.h +0 -29
  1229. data/ext/third_party/spdlog/include/spdlog/common-inl.h +0 -76
  1230. data/ext/third_party/spdlog/include/spdlog/common.h +0 -245
  1231. data/ext/third_party/spdlog/include/spdlog/details/backtracer-inl.h +0 -69
  1232. data/ext/third_party/spdlog/include/spdlog/details/backtracer.h +0 -45
  1233. data/ext/third_party/spdlog/include/spdlog/details/circular_q.h +0 -141
  1234. data/ext/third_party/spdlog/include/spdlog/details/console_globals.h +0 -32
  1235. data/ext/third_party/spdlog/include/spdlog/details/file_helper-inl.h +0 -132
  1236. data/ext/third_party/spdlog/include/spdlog/details/file_helper.h +0 -59
  1237. data/ext/third_party/spdlog/include/spdlog/details/fmt_helper.h +0 -116
  1238. data/ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h +0 -37
  1239. data/ext/third_party/spdlog/include/spdlog/details/log_msg.h +0 -36
  1240. data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -58
  1241. data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer.h +0 -33
  1242. data/ext/third_party/spdlog/include/spdlog/details/mpmc_blocking_q.h +0 -120
  1243. data/ext/third_party/spdlog/include/spdlog/details/null_mutex.h +0 -49
  1244. data/ext/third_party/spdlog/include/spdlog/details/os-inl.h +0 -554
  1245. data/ext/third_party/spdlog/include/spdlog/details/os.h +0 -111
  1246. data/ext/third_party/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -49
  1247. data/ext/third_party/spdlog/include/spdlog/details/periodic_worker.h +0 -40
  1248. data/ext/third_party/spdlog/include/spdlog/details/registry-inl.h +0 -313
  1249. data/ext/third_party/spdlog/include/spdlog/details/registry.h +0 -115
  1250. data/ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h +0 -24
  1251. data/ext/third_party/spdlog/include/spdlog/details/tcp_client-windows.h +0 -175
  1252. data/ext/third_party/spdlog/include/spdlog/details/tcp_client.h +0 -146
  1253. data/ext/third_party/spdlog/include/spdlog/details/thread_pool-inl.h +0 -124
  1254. data/ext/third_party/spdlog/include/spdlog/details/thread_pool.h +0 -120
  1255. data/ext/third_party/spdlog/include/spdlog/details/windows_include.h +0 -11
  1256. data/ext/third_party/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -216
  1257. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/LICENSE.rst +0 -27
  1258. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -1123
  1259. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/color.h +0 -566
  1260. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/compile.h +0 -665
  1261. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/core.h +0 -1882
  1262. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1453
  1263. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format.h +0 -3729
  1264. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/locale.h +0 -78
  1265. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/os.h +0 -450
  1266. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -167
  1267. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/posix.h +0 -2
  1268. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/printf.h +0 -751
  1269. data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -386
  1270. data/ext/third_party/spdlog/include/spdlog/fmt/chrono.h +0 -20
  1271. data/ext/third_party/spdlog/include/spdlog/fmt/fmt.h +0 -27
  1272. data/ext/third_party/spdlog/include/spdlog/fmt/ostr.h +0 -20
  1273. data/ext/third_party/spdlog/include/spdlog/formatter.h +0 -18
  1274. data/ext/third_party/spdlog/include/spdlog/fwd.h +0 -14
  1275. data/ext/third_party/spdlog/include/spdlog/logger-inl.h +0 -257
  1276. data/ext/third_party/spdlog/include/spdlog/logger.h +0 -366
  1277. data/ext/third_party/spdlog/include/spdlog/pattern_formatter-inl.h +0 -1373
  1278. data/ext/third_party/spdlog/include/spdlog/pattern_formatter.h +0 -126
  1279. data/ext/third_party/spdlog/include/spdlog/sinks/android_sink.h +0 -119
  1280. data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -143
  1281. data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink.h +0 -118
  1282. data/ext/third_party/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -63
  1283. data/ext/third_party/spdlog/include/spdlog/sinks/base_sink.h +0 -52
  1284. data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -43
  1285. data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -58
  1286. data/ext/third_party/spdlog/include/spdlog/sinks/daily_file_sink.h +0 -204
  1287. data/ext/third_party/spdlog/include/spdlog/sinks/dist_sink.h +0 -97
  1288. data/ext/third_party/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -90
  1289. data/ext/third_party/spdlog/include/spdlog/sinks/msvc_sink.h +0 -49
  1290. data/ext/third_party/spdlog/include/spdlog/sinks/null_sink.h +0 -44
  1291. data/ext/third_party/spdlog/include/spdlog/sinks/ostream_sink.h +0 -50
  1292. data/ext/third_party/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -74
  1293. data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +0 -131
  1294. data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -78
  1295. data/ext/third_party/spdlog/include/spdlog/sinks/sink-inl.h +0 -25
  1296. data/ext/third_party/spdlog/include/spdlog/sinks/sink.h +0 -35
  1297. data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -38
  1298. data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -45
  1299. data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -123
  1300. data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -87
  1301. data/ext/third_party/spdlog/include/spdlog/sinks/syslog_sink.h +0 -109
  1302. data/ext/third_party/spdlog/include/spdlog/sinks/systemd_sink.h +0 -103
  1303. data/ext/third_party/spdlog/include/spdlog/sinks/tcp_sink.h +0 -81
  1304. data/ext/third_party/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -266
  1305. data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +0 -170
  1306. data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -94
  1307. data/ext/third_party/spdlog/include/spdlog/spdlog-inl.h +0 -125
  1308. data/ext/third_party/spdlog/include/spdlog/spdlog.h +0 -295
  1309. data/ext/third_party/spdlog/include/spdlog/stopwatch.h +0 -61
  1310. data/ext/third_party/spdlog/include/spdlog/tweakme.h +0 -116
  1311. data/ext/third_party/spdlog/include/spdlog/version.h +0 -10
  1312. data/ext/third_party/spdlog/src/async.cpp +0 -13
  1313. data/ext/third_party/spdlog/src/cfg.cpp +0 -8
  1314. data/ext/third_party/spdlog/src/color_sinks.cpp +0 -51
  1315. data/ext/third_party/spdlog/src/file_sinks.cpp +0 -20
  1316. data/ext/third_party/spdlog/src/fmt.cpp +0 -63
  1317. data/ext/third_party/spdlog/src/spdlog.cpp +0 -26
  1318. data/ext/third_party/spdlog/src/stdout_sinks.cpp +0 -29
@@ -1,19 +0,0 @@
1
- Copyright Joyent, Inc. and other Node contributors.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to
5
- deal in the Software without restriction, including without limitation the
6
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
- sell copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
- IN THE SOFTWARE.
@@ -1,2575 +0,0 @@
1
- /* Copyright Joyent, Inc. and other Node contributors.
2
- *
3
- * Permission is hereby granted, free of charge, to any person obtaining a copy
4
- * of this software and associated documentation files (the "Software"), to
5
- * deal in the Software without restriction, including without limitation the
6
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
- * sell copies of the Software, and to permit persons to whom the Software is
8
- * furnished to do so, subject to the following conditions:
9
- *
10
- * The above copyright notice and this permission notice shall be included in
11
- * all copies or substantial portions of the Software.
12
- *
13
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
- * IN THE SOFTWARE.
20
- */
21
- #include "http_parser.h"
22
- #include <assert.h>
23
- #include <stddef.h>
24
- #include <ctype.h>
25
- #include <string.h>
26
- #include <limits.h>
27
-
28
- static uint32_t max_header_size = HTTP_MAX_HEADER_SIZE;
29
-
30
- #ifndef ULLONG_MAX
31
- # define ULLONG_MAX ((uint64_t) -1) /* 2^64-1 */
32
- #endif
33
-
34
- #ifndef MIN
35
- # define MIN(a,b) ((a) < (b) ? (a) : (b))
36
- #endif
37
-
38
- #ifndef ARRAY_SIZE
39
- # define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
40
- #endif
41
-
42
- #ifndef BIT_AT
43
- # define BIT_AT(a, i) \
44
- (!!((unsigned int) (a)[(unsigned int) (i) >> 3] & \
45
- (1 << ((unsigned int) (i) & 7))))
46
- #endif
47
-
48
- #ifndef ELEM_AT
49
- # define ELEM_AT(a, i, v) ((unsigned int) (i) < ARRAY_SIZE(a) ? (a)[(i)] : (v))
50
- #endif
51
-
52
- #define SET_ERRNO(e) \
53
- do { \
54
- parser->nread = nread; \
55
- parser->http_errno = (e); \
56
- } while(0)
57
-
58
- #define CURRENT_STATE() p_state
59
- #define UPDATE_STATE(V) p_state = (enum state) (V);
60
- #define RETURN(V) \
61
- do { \
62
- parser->nread = nread; \
63
- parser->state = CURRENT_STATE(); \
64
- return (V); \
65
- } while (0);
66
- #define REEXECUTE() \
67
- goto reexecute; \
68
-
69
-
70
- #ifdef __GNUC__
71
- # define LIKELY(X) __builtin_expect(!!(X), 1)
72
- # define UNLIKELY(X) __builtin_expect(!!(X), 0)
73
- #else
74
- # define LIKELY(X) (X)
75
- # define UNLIKELY(X) (X)
76
- #endif
77
-
78
-
79
- /* Run the notify callback FOR, returning ER if it fails */
80
- #define CALLBACK_NOTIFY_(FOR, ER) \
81
- do { \
82
- assert(HTTP_PARSER_ERRNO(parser) == HPE_OK); \
83
- \
84
- if (LIKELY(settings->on_##FOR)) { \
85
- parser->state = CURRENT_STATE(); \
86
- if (UNLIKELY(0 != settings->on_##FOR(parser))) { \
87
- SET_ERRNO(HPE_CB_##FOR); \
88
- } \
89
- UPDATE_STATE(parser->state); \
90
- \
91
- /* We either errored above or got paused; get out */ \
92
- if (UNLIKELY(HTTP_PARSER_ERRNO(parser) != HPE_OK)) { \
93
- return (ER); \
94
- } \
95
- } \
96
- } while (0)
97
-
98
- /* Run the notify callback FOR and consume the current byte */
99
- #define CALLBACK_NOTIFY(FOR) CALLBACK_NOTIFY_(FOR, p - data + 1)
100
-
101
- /* Run the notify callback FOR and don't consume the current byte */
102
- #define CALLBACK_NOTIFY_NOADVANCE(FOR) CALLBACK_NOTIFY_(FOR, p - data)
103
-
104
- /* Run data callback FOR with LEN bytes, returning ER if it fails */
105
- #define CALLBACK_DATA_(FOR, LEN, ER) \
106
- do { \
107
- assert(HTTP_PARSER_ERRNO(parser) == HPE_OK); \
108
- \
109
- if (FOR##_mark) { \
110
- if (LIKELY(settings->on_##FOR)) { \
111
- parser->state = CURRENT_STATE(); \
112
- if (UNLIKELY(0 != \
113
- settings->on_##FOR(parser, FOR##_mark, (LEN)))) { \
114
- SET_ERRNO(HPE_CB_##FOR); \
115
- } \
116
- UPDATE_STATE(parser->state); \
117
- \
118
- /* We either errored above or got paused; get out */ \
119
- if (UNLIKELY(HTTP_PARSER_ERRNO(parser) != HPE_OK)) { \
120
- return (ER); \
121
- } \
122
- } \
123
- FOR##_mark = NULL; \
124
- } \
125
- } while (0)
126
-
127
- /* Run the data callback FOR and consume the current byte */
128
- #define CALLBACK_DATA(FOR) \
129
- CALLBACK_DATA_(FOR, p - FOR##_mark, p - data + 1)
130
-
131
- /* Run the data callback FOR and don't consume the current byte */
132
- #define CALLBACK_DATA_NOADVANCE(FOR) \
133
- CALLBACK_DATA_(FOR, p - FOR##_mark, p - data)
134
-
135
- /* Set the mark FOR; non-destructive if mark is already set */
136
- #define MARK(FOR) \
137
- do { \
138
- if (!FOR##_mark) { \
139
- FOR##_mark = p; \
140
- } \
141
- } while (0)
142
-
143
- /* Don't allow the total size of the HTTP headers (including the status
144
- * line) to exceed max_header_size. This check is here to protect
145
- * embedders against denial-of-service attacks where the attacker feeds
146
- * us a never-ending header that the embedder keeps buffering.
147
- *
148
- * This check is arguably the responsibility of embedders but we're doing
149
- * it on the embedder's behalf because most won't bother and this way we
150
- * make the web a little safer. max_header_size is still far bigger
151
- * than any reasonable request or response so this should never affect
152
- * day-to-day operation.
153
- */
154
- #define COUNT_HEADER_SIZE(V) \
155
- do { \
156
- nread += (uint32_t)(V); \
157
- if (UNLIKELY(nread > max_header_size)) { \
158
- SET_ERRNO(HPE_HEADER_OVERFLOW); \
159
- goto error; \
160
- } \
161
- } while (0)
162
-
163
-
164
- #define PROXY_CONNECTION "proxy-connection"
165
- #define CONNECTION "connection"
166
- #define CONTENT_LENGTH "content-length"
167
- #define TRANSFER_ENCODING "transfer-encoding"
168
- #define UPGRADE "upgrade"
169
- #define CHUNKED "chunked"
170
- #define KEEP_ALIVE "keep-alive"
171
- #define CLOSE "close"
172
-
173
-
174
- static const char *method_strings[] =
175
- {
176
- #define XX(num, name, string) #string,
177
- HTTP_METHOD_MAP(XX)
178
- #undef XX
179
- };
180
-
181
-
182
- /* Tokens as defined by rfc 2616. Also lowercases them.
183
- * token = 1*<any CHAR except CTLs or separators>
184
- * separators = "(" | ")" | "<" | ">" | "@"
185
- * | "," | ";" | ":" | "\" | <">
186
- * | "/" | "[" | "]" | "?" | "="
187
- * | "{" | "}" | SP | HT
188
- */
189
- static const char tokens[256] = {
190
- /* 0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel */
191
- 0, 0, 0, 0, 0, 0, 0, 0,
192
- /* 8 bs 9 ht 10 nl 11 vt 12 np 13 cr 14 so 15 si */
193
- 0, 0, 0, 0, 0, 0, 0, 0,
194
- /* 16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb */
195
- 0, 0, 0, 0, 0, 0, 0, 0,
196
- /* 24 can 25 em 26 sub 27 esc 28 fs 29 gs 30 rs 31 us */
197
- 0, 0, 0, 0, 0, 0, 0, 0,
198
- /* 32 sp 33 ! 34 " 35 # 36 $ 37 % 38 & 39 ' */
199
- ' ', '!', 0, '#', '$', '%', '&', '\'',
200
- /* 40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 / */
201
- 0, 0, '*', '+', 0, '-', '.', 0,
202
- /* 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 */
203
- '0', '1', '2', '3', '4', '5', '6', '7',
204
- /* 56 8 57 9 58 : 59 ; 60 < 61 = 62 > 63 ? */
205
- '8', '9', 0, 0, 0, 0, 0, 0,
206
- /* 64 @ 65 A 66 B 67 C 68 D 69 E 70 F 71 G */
207
- 0, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
208
- /* 72 H 73 I 74 J 75 K 76 L 77 M 78 N 79 O */
209
- 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
210
- /* 80 P 81 Q 82 R 83 S 84 T 85 U 86 V 87 W */
211
- 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
212
- /* 88 X 89 Y 90 Z 91 [ 92 \ 93 ] 94 ^ 95 _ */
213
- 'x', 'y', 'z', 0, 0, 0, '^', '_',
214
- /* 96 ` 97 a 98 b 99 c 100 d 101 e 102 f 103 g */
215
- '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
216
- /* 104 h 105 i 106 j 107 k 108 l 109 m 110 n 111 o */
217
- 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
218
- /* 112 p 113 q 114 r 115 s 116 t 117 u 118 v 119 w */
219
- 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
220
- /* 120 x 121 y 122 z 123 { 124 | 125 } 126 ~ 127 del */
221
- 'x', 'y', 'z', 0, '|', 0, '~', 0 };
222
-
223
-
224
- static const int8_t unhex[256] =
225
- {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
226
- ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
227
- ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
228
- , 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1,-1,-1,-1,-1
229
- ,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1
230
- ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
231
- ,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1
232
- ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
233
- };
234
-
235
-
236
- #if HTTP_PARSER_STRICT
237
- # define T(v) 0
238
- #else
239
- # define T(v) v
240
- #endif
241
-
242
-
243
- static const uint8_t normal_url_char[32] = {
244
- /* 0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel */
245
- 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
246
- /* 8 bs 9 ht 10 nl 11 vt 12 np 13 cr 14 so 15 si */
247
- 0 | T(2) | 0 | 0 | T(16) | 0 | 0 | 0,
248
- /* 16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb */
249
- 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
250
- /* 24 can 25 em 26 sub 27 esc 28 fs 29 gs 30 rs 31 us */
251
- 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
252
- /* 32 sp 33 ! 34 " 35 # 36 $ 37 % 38 & 39 ' */
253
- 0 | 2 | 4 | 0 | 16 | 32 | 64 | 128,
254
- /* 40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 / */
255
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
256
- /* 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 */
257
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
258
- /* 56 8 57 9 58 : 59 ; 60 < 61 = 62 > 63 ? */
259
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
260
- /* 64 @ 65 A 66 B 67 C 68 D 69 E 70 F 71 G */
261
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
262
- /* 72 H 73 I 74 J 75 K 76 L 77 M 78 N 79 O */
263
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
264
- /* 80 P 81 Q 82 R 83 S 84 T 85 U 86 V 87 W */
265
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
266
- /* 88 X 89 Y 90 Z 91 [ 92 \ 93 ] 94 ^ 95 _ */
267
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
268
- /* 96 ` 97 a 98 b 99 c 100 d 101 e 102 f 103 g */
269
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
270
- /* 104 h 105 i 106 j 107 k 108 l 109 m 110 n 111 o */
271
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
272
- /* 112 p 113 q 114 r 115 s 116 t 117 u 118 v 119 w */
273
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
274
- /* 120 x 121 y 122 z 123 { 124 | 125 } 126 ~ 127 del */
275
- 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0, };
276
-
277
- #undef T
278
-
279
- enum state
280
- { s_dead = 1 /* important that this is > 0 */
281
-
282
- , s_start_req_or_res
283
- , s_res_or_resp_H
284
- , s_start_res
285
- , s_res_H
286
- , s_res_HT
287
- , s_res_HTT
288
- , s_res_HTTP
289
- , s_res_http_major
290
- , s_res_http_dot
291
- , s_res_http_minor
292
- , s_res_http_end
293
- , s_res_first_status_code
294
- , s_res_status_code
295
- , s_res_status_start
296
- , s_res_status
297
- , s_res_line_almost_done
298
-
299
- , s_start_req
300
-
301
- , s_req_method
302
- , s_req_spaces_before_url
303
- , s_req_schema
304
- , s_req_schema_slash
305
- , s_req_schema_slash_slash
306
- , s_req_server_start
307
- , s_req_server
308
- , s_req_server_with_at
309
- , s_req_path
310
- , s_req_query_string_start
311
- , s_req_query_string
312
- , s_req_fragment_start
313
- , s_req_fragment
314
- , s_req_http_start
315
- , s_req_http_H
316
- , s_req_http_HT
317
- , s_req_http_HTT
318
- , s_req_http_HTTP
319
- , s_req_http_I
320
- , s_req_http_IC
321
- , s_req_http_major
322
- , s_req_http_dot
323
- , s_req_http_minor
324
- , s_req_http_end
325
- , s_req_line_almost_done
326
-
327
- , s_header_field_start
328
- , s_header_field
329
- , s_header_value_discard_ws
330
- , s_header_value_discard_ws_almost_done
331
- , s_header_value_discard_lws
332
- , s_header_value_start
333
- , s_header_value
334
- , s_header_value_lws
335
-
336
- , s_header_almost_done
337
-
338
- , s_chunk_size_start
339
- , s_chunk_size
340
- , s_chunk_parameters
341
- , s_chunk_size_almost_done
342
-
343
- , s_headers_almost_done
344
- , s_headers_done
345
-
346
- /* Important: 's_headers_done' must be the last 'header' state. All
347
- * states beyond this must be 'body' states. It is used for overflow
348
- * checking. See the PARSING_HEADER() macro.
349
- */
350
-
351
- , s_chunk_data
352
- , s_chunk_data_almost_done
353
- , s_chunk_data_done
354
-
355
- , s_body_identity
356
- , s_body_identity_eof
357
-
358
- , s_message_done
359
- };
360
-
361
-
362
- #define PARSING_HEADER(state) (state <= s_headers_done)
363
-
364
-
365
- enum header_states
366
- { h_general = 0
367
- , h_C
368
- , h_CO
369
- , h_CON
370
-
371
- , h_matching_connection
372
- , h_matching_proxy_connection
373
- , h_matching_content_length
374
- , h_matching_transfer_encoding
375
- , h_matching_upgrade
376
-
377
- , h_connection
378
- , h_content_length
379
- , h_content_length_num
380
- , h_content_length_ws
381
- , h_transfer_encoding
382
- , h_upgrade
383
-
384
- , h_matching_transfer_encoding_token_start
385
- , h_matching_transfer_encoding_chunked
386
- , h_matching_transfer_encoding_token
387
-
388
- , h_matching_connection_token_start
389
- , h_matching_connection_keep_alive
390
- , h_matching_connection_close
391
- , h_matching_connection_upgrade
392
- , h_matching_connection_token
393
-
394
- , h_transfer_encoding_chunked
395
- , h_connection_keep_alive
396
- , h_connection_close
397
- , h_connection_upgrade
398
- };
399
-
400
- enum http_host_state
401
- {
402
- s_http_host_dead = 1
403
- , s_http_userinfo_start
404
- , s_http_userinfo
405
- , s_http_host_start
406
- , s_http_host_v6_start
407
- , s_http_host
408
- , s_http_host_v6
409
- , s_http_host_v6_end
410
- , s_http_host_v6_zone_start
411
- , s_http_host_v6_zone
412
- , s_http_host_port_start
413
- , s_http_host_port
414
- };
415
-
416
- /* Macros for character classes; depends on strict-mode */
417
- #define CR '\r'
418
- #define LF '\n'
419
- #define LOWER(c) (unsigned char)(c | 0x20)
420
- #define IS_ALPHA(c) (LOWER(c) >= 'a' && LOWER(c) <= 'z')
421
- #define IS_NUM(c) ((c) >= '0' && (c) <= '9')
422
- #define IS_ALPHANUM(c) (IS_ALPHA(c) || IS_NUM(c))
423
- #define IS_HEX(c) (IS_NUM(c) || (LOWER(c) >= 'a' && LOWER(c) <= 'f'))
424
- #define IS_MARK(c) ((c) == '-' || (c) == '_' || (c) == '.' || \
425
- (c) == '!' || (c) == '~' || (c) == '*' || (c) == '\'' || (c) == '(' || \
426
- (c) == ')')
427
- #define IS_USERINFO_CHAR(c) (IS_ALPHANUM(c) || IS_MARK(c) || (c) == '%' || \
428
- (c) == ';' || (c) == ':' || (c) == '&' || (c) == '=' || (c) == '+' || \
429
- (c) == '$' || (c) == ',')
430
-
431
- #define STRICT_TOKEN(c) ((c == ' ') ? 0 : tokens[(unsigned char)c])
432
-
433
- #if HTTP_PARSER_STRICT
434
- #define TOKEN(c) STRICT_TOKEN(c)
435
- #define IS_URL_CHAR(c) (BIT_AT(normal_url_char, (unsigned char)c))
436
- #define IS_HOST_CHAR(c) (IS_ALPHANUM(c) || (c) == '.' || (c) == '-')
437
- #else
438
- #define TOKEN(c) tokens[(unsigned char)c]
439
- #define IS_URL_CHAR(c) \
440
- (BIT_AT(normal_url_char, (unsigned char)c) || ((c) & 0x80))
441
- #define IS_HOST_CHAR(c) \
442
- (IS_ALPHANUM(c) || (c) == '.' || (c) == '-' || (c) == '_')
443
- #endif
444
-
445
- /**
446
- * Verify that a char is a valid visible (printable) US-ASCII
447
- * character or %x80-FF
448
- **/
449
- #define IS_HEADER_CHAR(ch) \
450
- (ch == CR || ch == LF || ch == 9 || ((unsigned char)ch > 31 && ch != 127))
451
-
452
- #define start_state (parser->type == HTTP_REQUEST ? s_start_req : s_start_res)
453
-
454
-
455
- #if HTTP_PARSER_STRICT
456
- # define STRICT_CHECK(cond) \
457
- do { \
458
- if (cond) { \
459
- SET_ERRNO(HPE_STRICT); \
460
- goto error; \
461
- } \
462
- } while (0)
463
- # define NEW_MESSAGE() (http_should_keep_alive(parser) ? start_state : s_dead)
464
- #else
465
- # define STRICT_CHECK(cond)
466
- # define NEW_MESSAGE() start_state
467
- #endif
468
-
469
-
470
- /* Map errno values to strings for human-readable output */
471
- #define HTTP_STRERROR_GEN(n, s) { "HPE_" #n, s },
472
- static struct {
473
- const char *name;
474
- const char *description;
475
- } http_strerror_tab[] = {
476
- HTTP_ERRNO_MAP(HTTP_STRERROR_GEN)
477
- };
478
- #undef HTTP_STRERROR_GEN
479
-
480
- int http_message_needs_eof(const http_parser *parser);
481
-
482
- /* Our URL parser.
483
- *
484
- * This is designed to be shared by http_parser_execute() for URL validation,
485
- * hence it has a state transition + byte-for-byte interface. In addition, it
486
- * is meant to be embedded in http_parser_parse_url(), which does the dirty
487
- * work of turning state transitions URL components for its API.
488
- *
489
- * This function should only be invoked with non-space characters. It is
490
- * assumed that the caller cares about (and can detect) the transition between
491
- * URL and non-URL states by looking for these.
492
- */
493
- static enum state
494
- parse_url_char(enum state s, const char ch)
495
- {
496
- if (ch == ' ' || ch == '\r' || ch == '\n') {
497
- return s_dead;
498
- }
499
-
500
- #if HTTP_PARSER_STRICT
501
- if (ch == '\t' || ch == '\f') {
502
- return s_dead;
503
- }
504
- #endif
505
-
506
- switch (s) {
507
- case s_req_spaces_before_url:
508
- /* Proxied requests are followed by scheme of an absolute URI (alpha).
509
- * All methods except CONNECT are followed by '/' or '*'.
510
- */
511
-
512
- if (ch == '/' || ch == '*') {
513
- return s_req_path;
514
- }
515
-
516
- if (IS_ALPHA(ch)) {
517
- return s_req_schema;
518
- }
519
-
520
- break;
521
-
522
- case s_req_schema:
523
- if (IS_ALPHA(ch)) {
524
- return s;
525
- }
526
-
527
- if (ch == ':') {
528
- return s_req_schema_slash;
529
- }
530
-
531
- break;
532
-
533
- case s_req_schema_slash:
534
- if (ch == '/') {
535
- return s_req_schema_slash_slash;
536
- }
537
-
538
- break;
539
-
540
- case s_req_schema_slash_slash:
541
- if (ch == '/') {
542
- return s_req_server_start;
543
- }
544
-
545
- break;
546
-
547
- case s_req_server_with_at:
548
- if (ch == '@') {
549
- return s_dead;
550
- }
551
-
552
- /* fall through */
553
- case s_req_server_start:
554
- case s_req_server:
555
- if (ch == '/') {
556
- return s_req_path;
557
- }
558
-
559
- if (ch == '?') {
560
- return s_req_query_string_start;
561
- }
562
-
563
- if (ch == '@') {
564
- return s_req_server_with_at;
565
- }
566
-
567
- if (IS_USERINFO_CHAR(ch) || ch == '[' || ch == ']') {
568
- return s_req_server;
569
- }
570
-
571
- break;
572
-
573
- case s_req_path:
574
- if (IS_URL_CHAR(ch)) {
575
- return s;
576
- }
577
-
578
- switch (ch) {
579
- case '?':
580
- return s_req_query_string_start;
581
-
582
- case '#':
583
- return s_req_fragment_start;
584
- }
585
-
586
- break;
587
-
588
- case s_req_query_string_start:
589
- case s_req_query_string:
590
- if (IS_URL_CHAR(ch)) {
591
- return s_req_query_string;
592
- }
593
-
594
- switch (ch) {
595
- case '?':
596
- /* allow extra '?' in query string */
597
- return s_req_query_string;
598
-
599
- case '#':
600
- return s_req_fragment_start;
601
- }
602
-
603
- break;
604
-
605
- case s_req_fragment_start:
606
- if (IS_URL_CHAR(ch)) {
607
- return s_req_fragment;
608
- }
609
-
610
- switch (ch) {
611
- case '?':
612
- return s_req_fragment;
613
-
614
- case '#':
615
- return s;
616
- }
617
-
618
- break;
619
-
620
- case s_req_fragment:
621
- if (IS_URL_CHAR(ch)) {
622
- return s;
623
- }
624
-
625
- switch (ch) {
626
- case '?':
627
- case '#':
628
- return s;
629
- }
630
-
631
- break;
632
-
633
- default:
634
- break;
635
- }
636
-
637
- /* We should never fall out of the switch above unless there's an error */
638
- return s_dead;
639
- }
640
-
641
- size_t http_parser_execute (http_parser *parser,
642
- const http_parser_settings *settings,
643
- const char *data,
644
- size_t len)
645
- {
646
- char c, ch;
647
- int8_t unhex_val;
648
- const char *p = data;
649
- const char *header_field_mark = 0;
650
- const char *header_value_mark = 0;
651
- const char *url_mark = 0;
652
- const char *body_mark = 0;
653
- const char *status_mark = 0;
654
- enum state p_state = (enum state) parser->state;
655
- const unsigned int lenient = parser->lenient_http_headers;
656
- const unsigned int allow_chunked_length = parser->allow_chunked_length;
657
-
658
- uint32_t nread = parser->nread;
659
-
660
- /* We're in an error state. Don't bother doing anything. */
661
- if (HTTP_PARSER_ERRNO(parser) != HPE_OK) {
662
- return 0;
663
- }
664
-
665
- if (len == 0) {
666
- switch (CURRENT_STATE()) {
667
- case s_body_identity_eof:
668
- /* Use of CALLBACK_NOTIFY() here would erroneously return 1 byte read if
669
- * we got paused.
670
- */
671
- CALLBACK_NOTIFY_NOADVANCE(message_complete);
672
- return 0;
673
-
674
- case s_dead:
675
- case s_start_req_or_res:
676
- case s_start_res:
677
- case s_start_req:
678
- return 0;
679
-
680
- default:
681
- SET_ERRNO(HPE_INVALID_EOF_STATE);
682
- return 1;
683
- }
684
- }
685
-
686
-
687
- if (CURRENT_STATE() == s_header_field)
688
- header_field_mark = data;
689
- if (CURRENT_STATE() == s_header_value)
690
- header_value_mark = data;
691
- switch (CURRENT_STATE()) {
692
- case s_req_path:
693
- case s_req_schema:
694
- case s_req_schema_slash:
695
- case s_req_schema_slash_slash:
696
- case s_req_server_start:
697
- case s_req_server:
698
- case s_req_server_with_at:
699
- case s_req_query_string_start:
700
- case s_req_query_string:
701
- case s_req_fragment_start:
702
- case s_req_fragment:
703
- url_mark = data;
704
- break;
705
- case s_res_status:
706
- status_mark = data;
707
- break;
708
- default:
709
- break;
710
- }
711
-
712
- for (p=data; p != data + len; p++) {
713
- ch = *p;
714
-
715
- if (PARSING_HEADER(CURRENT_STATE()))
716
- COUNT_HEADER_SIZE(1);
717
-
718
- reexecute:
719
- switch (CURRENT_STATE()) {
720
-
721
- case s_dead:
722
- /* this state is used after a 'Connection: close' message
723
- * the parser will error out if it reads another message
724
- */
725
- if (LIKELY(ch == CR || ch == LF))
726
- break;
727
-
728
- SET_ERRNO(HPE_CLOSED_CONNECTION);
729
- goto error;
730
-
731
- case s_start_req_or_res:
732
- {
733
- if (ch == CR || ch == LF)
734
- break;
735
- parser->flags = 0;
736
- parser->uses_transfer_encoding = 0;
737
- parser->content_length = ULLONG_MAX;
738
-
739
- if (ch == 'H') {
740
- UPDATE_STATE(s_res_or_resp_H);
741
-
742
- CALLBACK_NOTIFY(message_begin);
743
- } else {
744
- parser->type = HTTP_REQUEST;
745
- UPDATE_STATE(s_start_req);
746
- REEXECUTE();
747
- }
748
-
749
- break;
750
- }
751
-
752
- case s_res_or_resp_H:
753
- if (ch == 'T') {
754
- parser->type = HTTP_RESPONSE;
755
- UPDATE_STATE(s_res_HT);
756
- } else {
757
- if (UNLIKELY(ch != 'E')) {
758
- SET_ERRNO(HPE_INVALID_CONSTANT);
759
- goto error;
760
- }
761
-
762
- parser->type = HTTP_REQUEST;
763
- parser->method = HTTP_HEAD;
764
- parser->index = 2;
765
- UPDATE_STATE(s_req_method);
766
- }
767
- break;
768
-
769
- case s_start_res:
770
- {
771
- if (ch == CR || ch == LF)
772
- break;
773
- parser->flags = 0;
774
- parser->uses_transfer_encoding = 0;
775
- parser->content_length = ULLONG_MAX;
776
-
777
- if (ch == 'H') {
778
- UPDATE_STATE(s_res_H);
779
- } else {
780
- SET_ERRNO(HPE_INVALID_CONSTANT);
781
- goto error;
782
- }
783
-
784
- CALLBACK_NOTIFY(message_begin);
785
- break;
786
- }
787
-
788
- case s_res_H:
789
- STRICT_CHECK(ch != 'T');
790
- UPDATE_STATE(s_res_HT);
791
- break;
792
-
793
- case s_res_HT:
794
- STRICT_CHECK(ch != 'T');
795
- UPDATE_STATE(s_res_HTT);
796
- break;
797
-
798
- case s_res_HTT:
799
- STRICT_CHECK(ch != 'P');
800
- UPDATE_STATE(s_res_HTTP);
801
- break;
802
-
803
- case s_res_HTTP:
804
- STRICT_CHECK(ch != '/');
805
- UPDATE_STATE(s_res_http_major);
806
- break;
807
-
808
- case s_res_http_major:
809
- if (UNLIKELY(!IS_NUM(ch))) {
810
- SET_ERRNO(HPE_INVALID_VERSION);
811
- goto error;
812
- }
813
-
814
- parser->http_major = ch - '0';
815
- UPDATE_STATE(s_res_http_dot);
816
- break;
817
-
818
- case s_res_http_dot:
819
- {
820
- if (UNLIKELY(ch != '.')) {
821
- SET_ERRNO(HPE_INVALID_VERSION);
822
- goto error;
823
- }
824
-
825
- UPDATE_STATE(s_res_http_minor);
826
- break;
827
- }
828
-
829
- case s_res_http_minor:
830
- if (UNLIKELY(!IS_NUM(ch))) {
831
- SET_ERRNO(HPE_INVALID_VERSION);
832
- goto error;
833
- }
834
-
835
- parser->http_minor = ch - '0';
836
- UPDATE_STATE(s_res_http_end);
837
- break;
838
-
839
- case s_res_http_end:
840
- {
841
- if (UNLIKELY(ch != ' ')) {
842
- SET_ERRNO(HPE_INVALID_VERSION);
843
- goto error;
844
- }
845
-
846
- UPDATE_STATE(s_res_first_status_code);
847
- break;
848
- }
849
-
850
- case s_res_first_status_code:
851
- {
852
- if (!IS_NUM(ch)) {
853
- if (ch == ' ') {
854
- break;
855
- }
856
-
857
- SET_ERRNO(HPE_INVALID_STATUS);
858
- goto error;
859
- }
860
- parser->status_code = ch - '0';
861
- UPDATE_STATE(s_res_status_code);
862
- break;
863
- }
864
-
865
- case s_res_status_code:
866
- {
867
- if (!IS_NUM(ch)) {
868
- switch (ch) {
869
- case ' ':
870
- UPDATE_STATE(s_res_status_start);
871
- break;
872
- case CR:
873
- case LF:
874
- UPDATE_STATE(s_res_status_start);
875
- REEXECUTE();
876
- break;
877
- default:
878
- SET_ERRNO(HPE_INVALID_STATUS);
879
- goto error;
880
- }
881
- break;
882
- }
883
-
884
- parser->status_code *= 10;
885
- parser->status_code += ch - '0';
886
-
887
- if (UNLIKELY(parser->status_code > 999)) {
888
- SET_ERRNO(HPE_INVALID_STATUS);
889
- goto error;
890
- }
891
-
892
- break;
893
- }
894
-
895
- case s_res_status_start:
896
- {
897
- MARK(status);
898
- UPDATE_STATE(s_res_status);
899
- parser->index = 0;
900
-
901
- if (ch == CR || ch == LF)
902
- REEXECUTE();
903
-
904
- break;
905
- }
906
-
907
- case s_res_status:
908
- if (ch == CR) {
909
- UPDATE_STATE(s_res_line_almost_done);
910
- CALLBACK_DATA(status);
911
- break;
912
- }
913
-
914
- if (ch == LF) {
915
- UPDATE_STATE(s_header_field_start);
916
- CALLBACK_DATA(status);
917
- break;
918
- }
919
-
920
- break;
921
-
922
- case s_res_line_almost_done:
923
- STRICT_CHECK(ch != LF);
924
- UPDATE_STATE(s_header_field_start);
925
- break;
926
-
927
- case s_start_req:
928
- {
929
- if (ch == CR || ch == LF)
930
- break;
931
- parser->flags = 0;
932
- parser->uses_transfer_encoding = 0;
933
- parser->content_length = ULLONG_MAX;
934
-
935
- if (UNLIKELY(!IS_ALPHA(ch))) {
936
- SET_ERRNO(HPE_INVALID_METHOD);
937
- goto error;
938
- }
939
-
940
- parser->method = (enum http_method) 0;
941
- parser->index = 1;
942
- switch (ch) {
943
- case 'A': parser->method = HTTP_ACL; break;
944
- case 'B': parser->method = HTTP_BIND; break;
945
- case 'C': parser->method = HTTP_CONNECT; /* or COPY, CHECKOUT */ break;
946
- case 'D': parser->method = HTTP_DELETE; break;
947
- case 'G': parser->method = HTTP_GET; break;
948
- case 'H': parser->method = HTTP_HEAD; break;
949
- case 'L': parser->method = HTTP_LOCK; /* or LINK */ break;
950
- case 'M': parser->method = HTTP_MKCOL; /* or MOVE, MKACTIVITY, MERGE, M-SEARCH, MKCALENDAR */ break;
951
- case 'N': parser->method = HTTP_NOTIFY; break;
952
- case 'O': parser->method = HTTP_OPTIONS; break;
953
- case 'P': parser->method = HTTP_POST;
954
- /* or PROPFIND|PROPPATCH|PUT|PATCH|PURGE */
955
- break;
956
- case 'R': parser->method = HTTP_REPORT; /* or REBIND */ break;
957
- case 'S': parser->method = HTTP_SUBSCRIBE; /* or SEARCH, SOURCE */ break;
958
- case 'T': parser->method = HTTP_TRACE; break;
959
- case 'U': parser->method = HTTP_UNLOCK; /* or UNSUBSCRIBE, UNBIND, UNLINK */ break;
960
- default:
961
- SET_ERRNO(HPE_INVALID_METHOD);
962
- goto error;
963
- }
964
- UPDATE_STATE(s_req_method);
965
-
966
- CALLBACK_NOTIFY(message_begin);
967
-
968
- break;
969
- }
970
-
971
- case s_req_method:
972
- {
973
- const char *matcher;
974
- if (UNLIKELY(ch == '\0')) {
975
- SET_ERRNO(HPE_INVALID_METHOD);
976
- goto error;
977
- }
978
-
979
- matcher = method_strings[parser->method];
980
- if (ch == ' ' && matcher[parser->index] == '\0') {
981
- UPDATE_STATE(s_req_spaces_before_url);
982
- } else if (ch == matcher[parser->index]) {
983
- ; /* nada */
984
- } else if ((ch >= 'A' && ch <= 'Z') || ch == '-') {
985
-
986
- switch (parser->method << 16 | parser->index << 8 | ch) {
987
- #define XX(meth, pos, ch, new_meth) \
988
- case (HTTP_##meth << 16 | pos << 8 | ch): \
989
- parser->method = HTTP_##new_meth; break;
990
-
991
- XX(POST, 1, 'U', PUT)
992
- XX(POST, 1, 'A', PATCH)
993
- XX(POST, 1, 'R', PROPFIND)
994
- XX(PUT, 2, 'R', PURGE)
995
- XX(CONNECT, 1, 'H', CHECKOUT)
996
- XX(CONNECT, 2, 'P', COPY)
997
- XX(MKCOL, 1, 'O', MOVE)
998
- XX(MKCOL, 1, 'E', MERGE)
999
- XX(MKCOL, 1, '-', MSEARCH)
1000
- XX(MKCOL, 2, 'A', MKACTIVITY)
1001
- XX(MKCOL, 3, 'A', MKCALENDAR)
1002
- XX(SUBSCRIBE, 1, 'E', SEARCH)
1003
- XX(SUBSCRIBE, 1, 'O', SOURCE)
1004
- XX(REPORT, 2, 'B', REBIND)
1005
- XX(PROPFIND, 4, 'P', PROPPATCH)
1006
- XX(LOCK, 1, 'I', LINK)
1007
- XX(UNLOCK, 2, 'S', UNSUBSCRIBE)
1008
- XX(UNLOCK, 2, 'B', UNBIND)
1009
- XX(UNLOCK, 3, 'I', UNLINK)
1010
- #undef XX
1011
- default:
1012
- SET_ERRNO(HPE_INVALID_METHOD);
1013
- goto error;
1014
- }
1015
- } else {
1016
- SET_ERRNO(HPE_INVALID_METHOD);
1017
- goto error;
1018
- }
1019
-
1020
- ++parser->index;
1021
- break;
1022
- }
1023
-
1024
- case s_req_spaces_before_url:
1025
- {
1026
- if (ch == ' ') break;
1027
-
1028
- MARK(url);
1029
- if (parser->method == HTTP_CONNECT) {
1030
- UPDATE_STATE(s_req_server_start);
1031
- }
1032
-
1033
- UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
1034
- if (UNLIKELY(CURRENT_STATE() == s_dead)) {
1035
- SET_ERRNO(HPE_INVALID_URL);
1036
- goto error;
1037
- }
1038
-
1039
- break;
1040
- }
1041
-
1042
- case s_req_schema:
1043
- case s_req_schema_slash:
1044
- case s_req_schema_slash_slash:
1045
- case s_req_server_start:
1046
- {
1047
- switch (ch) {
1048
- /* No whitespace allowed here */
1049
- case ' ':
1050
- case CR:
1051
- case LF:
1052
- SET_ERRNO(HPE_INVALID_URL);
1053
- goto error;
1054
- default:
1055
- UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
1056
- if (UNLIKELY(CURRENT_STATE() == s_dead)) {
1057
- SET_ERRNO(HPE_INVALID_URL);
1058
- goto error;
1059
- }
1060
- }
1061
-
1062
- break;
1063
- }
1064
-
1065
- case s_req_server:
1066
- case s_req_server_with_at:
1067
- case s_req_path:
1068
- case s_req_query_string_start:
1069
- case s_req_query_string:
1070
- case s_req_fragment_start:
1071
- case s_req_fragment:
1072
- {
1073
- switch (ch) {
1074
- case ' ':
1075
- UPDATE_STATE(s_req_http_start);
1076
- CALLBACK_DATA(url);
1077
- break;
1078
- case CR:
1079
- case LF:
1080
- parser->http_major = 0;
1081
- parser->http_minor = 9;
1082
- UPDATE_STATE((ch == CR) ?
1083
- s_req_line_almost_done :
1084
- s_header_field_start);
1085
- CALLBACK_DATA(url);
1086
- break;
1087
- default:
1088
- UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
1089
- if (UNLIKELY(CURRENT_STATE() == s_dead)) {
1090
- SET_ERRNO(HPE_INVALID_URL);
1091
- goto error;
1092
- }
1093
- }
1094
- break;
1095
- }
1096
-
1097
- case s_req_http_start:
1098
- switch (ch) {
1099
- case ' ':
1100
- break;
1101
- case 'H':
1102
- UPDATE_STATE(s_req_http_H);
1103
- break;
1104
- case 'I':
1105
- if (parser->method == HTTP_SOURCE) {
1106
- UPDATE_STATE(s_req_http_I);
1107
- break;
1108
- }
1109
- /* fall through */
1110
- default:
1111
- SET_ERRNO(HPE_INVALID_CONSTANT);
1112
- goto error;
1113
- }
1114
- break;
1115
-
1116
- case s_req_http_H:
1117
- STRICT_CHECK(ch != 'T');
1118
- UPDATE_STATE(s_req_http_HT);
1119
- break;
1120
-
1121
- case s_req_http_HT:
1122
- STRICT_CHECK(ch != 'T');
1123
- UPDATE_STATE(s_req_http_HTT);
1124
- break;
1125
-
1126
- case s_req_http_HTT:
1127
- STRICT_CHECK(ch != 'P');
1128
- UPDATE_STATE(s_req_http_HTTP);
1129
- break;
1130
-
1131
- case s_req_http_I:
1132
- STRICT_CHECK(ch != 'C');
1133
- UPDATE_STATE(s_req_http_IC);
1134
- break;
1135
-
1136
- case s_req_http_IC:
1137
- STRICT_CHECK(ch != 'E');
1138
- UPDATE_STATE(s_req_http_HTTP); /* Treat "ICE" as "HTTP". */
1139
- break;
1140
-
1141
- case s_req_http_HTTP:
1142
- STRICT_CHECK(ch != '/');
1143
- UPDATE_STATE(s_req_http_major);
1144
- break;
1145
-
1146
- case s_req_http_major:
1147
- if (UNLIKELY(!IS_NUM(ch))) {
1148
- SET_ERRNO(HPE_INVALID_VERSION);
1149
- goto error;
1150
- }
1151
-
1152
- parser->http_major = ch - '0';
1153
- UPDATE_STATE(s_req_http_dot);
1154
- break;
1155
-
1156
- case s_req_http_dot:
1157
- {
1158
- if (UNLIKELY(ch != '.')) {
1159
- SET_ERRNO(HPE_INVALID_VERSION);
1160
- goto error;
1161
- }
1162
-
1163
- UPDATE_STATE(s_req_http_minor);
1164
- break;
1165
- }
1166
-
1167
- case s_req_http_minor:
1168
- if (UNLIKELY(!IS_NUM(ch))) {
1169
- SET_ERRNO(HPE_INVALID_VERSION);
1170
- goto error;
1171
- }
1172
-
1173
- parser->http_minor = ch - '0';
1174
- UPDATE_STATE(s_req_http_end);
1175
- break;
1176
-
1177
- case s_req_http_end:
1178
- {
1179
- if (ch == CR) {
1180
- UPDATE_STATE(s_req_line_almost_done);
1181
- break;
1182
- }
1183
-
1184
- if (ch == LF) {
1185
- UPDATE_STATE(s_header_field_start);
1186
- break;
1187
- }
1188
-
1189
- SET_ERRNO(HPE_INVALID_VERSION);
1190
- goto error;
1191
- break;
1192
- }
1193
-
1194
- /* end of request line */
1195
- case s_req_line_almost_done:
1196
- {
1197
- if (UNLIKELY(ch != LF)) {
1198
- SET_ERRNO(HPE_LF_EXPECTED);
1199
- goto error;
1200
- }
1201
-
1202
- UPDATE_STATE(s_header_field_start);
1203
- break;
1204
- }
1205
-
1206
- case s_header_field_start:
1207
- {
1208
- if (ch == CR) {
1209
- UPDATE_STATE(s_headers_almost_done);
1210
- break;
1211
- }
1212
-
1213
- if (ch == LF) {
1214
- /* they might be just sending \n instead of \r\n so this would be
1215
- * the second \n to denote the end of headers*/
1216
- UPDATE_STATE(s_headers_almost_done);
1217
- REEXECUTE();
1218
- }
1219
-
1220
- c = TOKEN(ch);
1221
-
1222
- if (UNLIKELY(!c)) {
1223
- SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
1224
- goto error;
1225
- }
1226
-
1227
- MARK(header_field);
1228
-
1229
- parser->index = 0;
1230
- UPDATE_STATE(s_header_field);
1231
-
1232
- switch (c) {
1233
- case 'c':
1234
- parser->header_state = h_C;
1235
- break;
1236
-
1237
- case 'p':
1238
- parser->header_state = h_matching_proxy_connection;
1239
- break;
1240
-
1241
- case 't':
1242
- parser->header_state = h_matching_transfer_encoding;
1243
- break;
1244
-
1245
- case 'u':
1246
- parser->header_state = h_matching_upgrade;
1247
- break;
1248
-
1249
- default:
1250
- parser->header_state = h_general;
1251
- break;
1252
- }
1253
- break;
1254
- }
1255
-
1256
- case s_header_field:
1257
- {
1258
- const char* start = p;
1259
- for (; p != data + len; p++) {
1260
- ch = *p;
1261
- c = TOKEN(ch);
1262
-
1263
- if (!c)
1264
- break;
1265
-
1266
- switch (parser->header_state) {
1267
- case h_general: {
1268
- size_t left = data + len - p;
1269
- const char* pe = p + MIN(left, max_header_size);
1270
- while (p+1 < pe && TOKEN(p[1])) {
1271
- p++;
1272
- }
1273
- break;
1274
- }
1275
-
1276
- case h_C:
1277
- parser->index++;
1278
- parser->header_state = (c == 'o' ? h_CO : h_general);
1279
- break;
1280
-
1281
- case h_CO:
1282
- parser->index++;
1283
- parser->header_state = (c == 'n' ? h_CON : h_general);
1284
- break;
1285
-
1286
- case h_CON:
1287
- parser->index++;
1288
- switch (c) {
1289
- case 'n':
1290
- parser->header_state = h_matching_connection;
1291
- break;
1292
- case 't':
1293
- parser->header_state = h_matching_content_length;
1294
- break;
1295
- default:
1296
- parser->header_state = h_general;
1297
- break;
1298
- }
1299
- break;
1300
-
1301
- /* connection */
1302
-
1303
- case h_matching_connection:
1304
- parser->index++;
1305
- if (parser->index > sizeof(CONNECTION)-1
1306
- || c != CONNECTION[parser->index]) {
1307
- parser->header_state = h_general;
1308
- } else if (parser->index == sizeof(CONNECTION)-2) {
1309
- parser->header_state = h_connection;
1310
- }
1311
- break;
1312
-
1313
- /* proxy-connection */
1314
-
1315
- case h_matching_proxy_connection:
1316
- parser->index++;
1317
- if (parser->index > sizeof(PROXY_CONNECTION)-1
1318
- || c != PROXY_CONNECTION[parser->index]) {
1319
- parser->header_state = h_general;
1320
- } else if (parser->index == sizeof(PROXY_CONNECTION)-2) {
1321
- parser->header_state = h_connection;
1322
- }
1323
- break;
1324
-
1325
- /* content-length */
1326
-
1327
- case h_matching_content_length:
1328
- parser->index++;
1329
- if (parser->index > sizeof(CONTENT_LENGTH)-1
1330
- || c != CONTENT_LENGTH[parser->index]) {
1331
- parser->header_state = h_general;
1332
- } else if (parser->index == sizeof(CONTENT_LENGTH)-2) {
1333
- parser->header_state = h_content_length;
1334
- }
1335
- break;
1336
-
1337
- /* transfer-encoding */
1338
-
1339
- case h_matching_transfer_encoding:
1340
- parser->index++;
1341
- if (parser->index > sizeof(TRANSFER_ENCODING)-1
1342
- || c != TRANSFER_ENCODING[parser->index]) {
1343
- parser->header_state = h_general;
1344
- } else if (parser->index == sizeof(TRANSFER_ENCODING)-2) {
1345
- parser->header_state = h_transfer_encoding;
1346
- parser->uses_transfer_encoding = 1;
1347
- }
1348
- break;
1349
-
1350
- /* upgrade */
1351
-
1352
- case h_matching_upgrade:
1353
- parser->index++;
1354
- if (parser->index > sizeof(UPGRADE)-1
1355
- || c != UPGRADE[parser->index]) {
1356
- parser->header_state = h_general;
1357
- } else if (parser->index == sizeof(UPGRADE)-2) {
1358
- parser->header_state = h_upgrade;
1359
- }
1360
- break;
1361
-
1362
- case h_connection:
1363
- case h_content_length:
1364
- case h_transfer_encoding:
1365
- case h_upgrade:
1366
- if (ch != ' ') parser->header_state = h_general;
1367
- break;
1368
-
1369
- default:
1370
- assert(0 && "Unknown header_state");
1371
- break;
1372
- }
1373
- }
1374
-
1375
- if (p == data + len) {
1376
- --p;
1377
- COUNT_HEADER_SIZE(p - start);
1378
- break;
1379
- }
1380
-
1381
- COUNT_HEADER_SIZE(p - start);
1382
-
1383
- if (ch == ':') {
1384
- UPDATE_STATE(s_header_value_discard_ws);
1385
- CALLBACK_DATA(header_field);
1386
- break;
1387
- }
1388
-
1389
- SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
1390
- goto error;
1391
- }
1392
-
1393
- case s_header_value_discard_ws:
1394
- if (ch == ' ' || ch == '\t') break;
1395
-
1396
- if (ch == CR) {
1397
- UPDATE_STATE(s_header_value_discard_ws_almost_done);
1398
- break;
1399
- }
1400
-
1401
- if (ch == LF) {
1402
- UPDATE_STATE(s_header_value_discard_lws);
1403
- break;
1404
- }
1405
-
1406
- /* fall through */
1407
-
1408
- case s_header_value_start:
1409
- {
1410
- MARK(header_value);
1411
-
1412
- UPDATE_STATE(s_header_value);
1413
- parser->index = 0;
1414
-
1415
- c = LOWER(ch);
1416
-
1417
- switch (parser->header_state) {
1418
- case h_upgrade:
1419
- parser->flags |= F_UPGRADE;
1420
- parser->header_state = h_general;
1421
- break;
1422
-
1423
- case h_transfer_encoding:
1424
- /* looking for 'Transfer-Encoding: chunked' */
1425
- if ('c' == c) {
1426
- parser->header_state = h_matching_transfer_encoding_chunked;
1427
- } else {
1428
- parser->header_state = h_matching_transfer_encoding_token;
1429
- }
1430
- break;
1431
-
1432
- /* Multi-value `Transfer-Encoding` header */
1433
- case h_matching_transfer_encoding_token_start:
1434
- break;
1435
-
1436
- case h_content_length:
1437
- if (UNLIKELY(!IS_NUM(ch))) {
1438
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
1439
- goto error;
1440
- }
1441
-
1442
- if (parser->flags & F_CONTENTLENGTH) {
1443
- SET_ERRNO(HPE_UNEXPECTED_CONTENT_LENGTH);
1444
- goto error;
1445
- }
1446
-
1447
- parser->flags |= F_CONTENTLENGTH;
1448
- parser->content_length = ch - '0';
1449
- parser->header_state = h_content_length_num;
1450
- break;
1451
-
1452
- /* when obsolete line folding is encountered for content length
1453
- * continue to the s_header_value state */
1454
- case h_content_length_ws:
1455
- break;
1456
-
1457
- case h_connection:
1458
- /* looking for 'Connection: keep-alive' */
1459
- if (c == 'k') {
1460
- parser->header_state = h_matching_connection_keep_alive;
1461
- /* looking for 'Connection: close' */
1462
- } else if (c == 'c') {
1463
- parser->header_state = h_matching_connection_close;
1464
- } else if (c == 'u') {
1465
- parser->header_state = h_matching_connection_upgrade;
1466
- } else {
1467
- parser->header_state = h_matching_connection_token;
1468
- }
1469
- break;
1470
-
1471
- /* Multi-value `Connection` header */
1472
- case h_matching_connection_token_start:
1473
- break;
1474
-
1475
- default:
1476
- parser->header_state = h_general;
1477
- break;
1478
- }
1479
- break;
1480
- }
1481
-
1482
- case s_header_value:
1483
- {
1484
- const char* start = p;
1485
- enum header_states h_state = (enum header_states) parser->header_state;
1486
- for (; p != data + len; p++) {
1487
- ch = *p;
1488
- if (ch == CR) {
1489
- UPDATE_STATE(s_header_almost_done);
1490
- parser->header_state = h_state;
1491
- CALLBACK_DATA(header_value);
1492
- break;
1493
- }
1494
-
1495
- if (ch == LF) {
1496
- UPDATE_STATE(s_header_almost_done);
1497
- COUNT_HEADER_SIZE(p - start);
1498
- parser->header_state = h_state;
1499
- CALLBACK_DATA_NOADVANCE(header_value);
1500
- REEXECUTE();
1501
- }
1502
-
1503
- if (!lenient && !IS_HEADER_CHAR(ch)) {
1504
- SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
1505
- goto error;
1506
- }
1507
-
1508
- c = LOWER(ch);
1509
-
1510
- switch (h_state) {
1511
- case h_general:
1512
- {
1513
- size_t left = data + len - p;
1514
- const char* pe = p + MIN(left, max_header_size);
1515
-
1516
- for (; p != pe; p++) {
1517
- ch = *p;
1518
- if (ch == CR || ch == LF) {
1519
- --p;
1520
- break;
1521
- }
1522
- if (!lenient && !IS_HEADER_CHAR(ch)) {
1523
- SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
1524
- goto error;
1525
- }
1526
- }
1527
- if (p == data + len)
1528
- --p;
1529
- break;
1530
- }
1531
-
1532
- case h_connection:
1533
- case h_transfer_encoding:
1534
- assert(0 && "Shouldn't get here.");
1535
- break;
1536
-
1537
- case h_content_length:
1538
- if (ch == ' ') break;
1539
- h_state = h_content_length_num;
1540
- /* fall through */
1541
-
1542
- case h_content_length_num:
1543
- {
1544
- uint64_t t;
1545
-
1546
- if (ch == ' ') {
1547
- h_state = h_content_length_ws;
1548
- break;
1549
- }
1550
-
1551
- if (UNLIKELY(!IS_NUM(ch))) {
1552
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
1553
- parser->header_state = h_state;
1554
- goto error;
1555
- }
1556
-
1557
- t = parser->content_length;
1558
- t *= 10;
1559
- t += ch - '0';
1560
-
1561
- /* Overflow? Test against a conservative limit for simplicity. */
1562
- if (UNLIKELY((ULLONG_MAX - 10) / 10 < parser->content_length)) {
1563
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
1564
- parser->header_state = h_state;
1565
- goto error;
1566
- }
1567
-
1568
- parser->content_length = t;
1569
- break;
1570
- }
1571
-
1572
- case h_content_length_ws:
1573
- if (ch == ' ') break;
1574
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
1575
- parser->header_state = h_state;
1576
- goto error;
1577
-
1578
- /* Transfer-Encoding: chunked */
1579
- case h_matching_transfer_encoding_token_start:
1580
- /* looking for 'Transfer-Encoding: chunked' */
1581
- if ('c' == c) {
1582
- h_state = h_matching_transfer_encoding_chunked;
1583
- } else if (STRICT_TOKEN(c)) {
1584
- /* TODO(indutny): similar code below does this, but why?
1585
- * At the very least it seems to be inconsistent given that
1586
- * h_matching_transfer_encoding_token does not check for
1587
- * `STRICT_TOKEN`
1588
- */
1589
- h_state = h_matching_transfer_encoding_token;
1590
- } else if (c == ' ' || c == '\t') {
1591
- /* Skip lws */
1592
- } else {
1593
- h_state = h_general;
1594
- }
1595
- break;
1596
-
1597
- case h_matching_transfer_encoding_chunked:
1598
- parser->index++;
1599
- if (parser->index > sizeof(CHUNKED)-1
1600
- || c != CHUNKED[parser->index]) {
1601
- h_state = h_matching_transfer_encoding_token;
1602
- } else if (parser->index == sizeof(CHUNKED)-2) {
1603
- h_state = h_transfer_encoding_chunked;
1604
- }
1605
- break;
1606
-
1607
- case h_matching_transfer_encoding_token:
1608
- if (ch == ',') {
1609
- h_state = h_matching_transfer_encoding_token_start;
1610
- parser->index = 0;
1611
- }
1612
- break;
1613
-
1614
- case h_matching_connection_token_start:
1615
- /* looking for 'Connection: keep-alive' */
1616
- if (c == 'k') {
1617
- h_state = h_matching_connection_keep_alive;
1618
- /* looking for 'Connection: close' */
1619
- } else if (c == 'c') {
1620
- h_state = h_matching_connection_close;
1621
- } else if (c == 'u') {
1622
- h_state = h_matching_connection_upgrade;
1623
- } else if (STRICT_TOKEN(c)) {
1624
- h_state = h_matching_connection_token;
1625
- } else if (c == ' ' || c == '\t') {
1626
- /* Skip lws */
1627
- } else {
1628
- h_state = h_general;
1629
- }
1630
- break;
1631
-
1632
- /* looking for 'Connection: keep-alive' */
1633
- case h_matching_connection_keep_alive:
1634
- parser->index++;
1635
- if (parser->index > sizeof(KEEP_ALIVE)-1
1636
- || c != KEEP_ALIVE[parser->index]) {
1637
- h_state = h_matching_connection_token;
1638
- } else if (parser->index == sizeof(KEEP_ALIVE)-2) {
1639
- h_state = h_connection_keep_alive;
1640
- }
1641
- break;
1642
-
1643
- /* looking for 'Connection: close' */
1644
- case h_matching_connection_close:
1645
- parser->index++;
1646
- if (parser->index > sizeof(CLOSE)-1 || c != CLOSE[parser->index]) {
1647
- h_state = h_matching_connection_token;
1648
- } else if (parser->index == sizeof(CLOSE)-2) {
1649
- h_state = h_connection_close;
1650
- }
1651
- break;
1652
-
1653
- /* looking for 'Connection: upgrade' */
1654
- case h_matching_connection_upgrade:
1655
- parser->index++;
1656
- if (parser->index > sizeof(UPGRADE) - 1 ||
1657
- c != UPGRADE[parser->index]) {
1658
- h_state = h_matching_connection_token;
1659
- } else if (parser->index == sizeof(UPGRADE)-2) {
1660
- h_state = h_connection_upgrade;
1661
- }
1662
- break;
1663
-
1664
- case h_matching_connection_token:
1665
- if (ch == ',') {
1666
- h_state = h_matching_connection_token_start;
1667
- parser->index = 0;
1668
- }
1669
- break;
1670
-
1671
- case h_transfer_encoding_chunked:
1672
- if (ch != ' ') h_state = h_matching_transfer_encoding_token;
1673
- break;
1674
-
1675
- case h_connection_keep_alive:
1676
- case h_connection_close:
1677
- case h_connection_upgrade:
1678
- if (ch == ',') {
1679
- if (h_state == h_connection_keep_alive) {
1680
- parser->flags |= F_CONNECTION_KEEP_ALIVE;
1681
- } else if (h_state == h_connection_close) {
1682
- parser->flags |= F_CONNECTION_CLOSE;
1683
- } else if (h_state == h_connection_upgrade) {
1684
- parser->flags |= F_CONNECTION_UPGRADE;
1685
- }
1686
- h_state = h_matching_connection_token_start;
1687
- parser->index = 0;
1688
- } else if (ch != ' ') {
1689
- h_state = h_matching_connection_token;
1690
- }
1691
- break;
1692
-
1693
- default:
1694
- UPDATE_STATE(s_header_value);
1695
- h_state = h_general;
1696
- break;
1697
- }
1698
- }
1699
- parser->header_state = h_state;
1700
-
1701
- if (p == data + len)
1702
- --p;
1703
-
1704
- COUNT_HEADER_SIZE(p - start);
1705
- break;
1706
- }
1707
-
1708
- case s_header_almost_done:
1709
- {
1710
- if (UNLIKELY(ch != LF)) {
1711
- SET_ERRNO(HPE_LF_EXPECTED);
1712
- goto error;
1713
- }
1714
-
1715
- UPDATE_STATE(s_header_value_lws);
1716
- break;
1717
- }
1718
-
1719
- case s_header_value_lws:
1720
- {
1721
- if (ch == ' ' || ch == '\t') {
1722
- if (parser->header_state == h_content_length_num) {
1723
- /* treat obsolete line folding as space */
1724
- parser->header_state = h_content_length_ws;
1725
- }
1726
- UPDATE_STATE(s_header_value_start);
1727
- REEXECUTE();
1728
- }
1729
-
1730
- /* finished the header */
1731
- switch (parser->header_state) {
1732
- case h_connection_keep_alive:
1733
- parser->flags |= F_CONNECTION_KEEP_ALIVE;
1734
- break;
1735
- case h_connection_close:
1736
- parser->flags |= F_CONNECTION_CLOSE;
1737
- break;
1738
- case h_transfer_encoding_chunked:
1739
- parser->flags |= F_CHUNKED;
1740
- break;
1741
- case h_connection_upgrade:
1742
- parser->flags |= F_CONNECTION_UPGRADE;
1743
- break;
1744
- default:
1745
- break;
1746
- }
1747
-
1748
- UPDATE_STATE(s_header_field_start);
1749
- REEXECUTE();
1750
- }
1751
-
1752
- case s_header_value_discard_ws_almost_done:
1753
- {
1754
- STRICT_CHECK(ch != LF);
1755
- UPDATE_STATE(s_header_value_discard_lws);
1756
- break;
1757
- }
1758
-
1759
- case s_header_value_discard_lws:
1760
- {
1761
- if (ch == ' ' || ch == '\t') {
1762
- UPDATE_STATE(s_header_value_discard_ws);
1763
- break;
1764
- } else {
1765
- switch (parser->header_state) {
1766
- case h_connection_keep_alive:
1767
- parser->flags |= F_CONNECTION_KEEP_ALIVE;
1768
- break;
1769
- case h_connection_close:
1770
- parser->flags |= F_CONNECTION_CLOSE;
1771
- break;
1772
- case h_connection_upgrade:
1773
- parser->flags |= F_CONNECTION_UPGRADE;
1774
- break;
1775
- case h_transfer_encoding_chunked:
1776
- parser->flags |= F_CHUNKED;
1777
- break;
1778
- case h_content_length:
1779
- /* do not allow empty content length */
1780
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
1781
- goto error;
1782
- break;
1783
- default:
1784
- break;
1785
- }
1786
-
1787
- /* header value was empty */
1788
- MARK(header_value);
1789
- UPDATE_STATE(s_header_field_start);
1790
- CALLBACK_DATA_NOADVANCE(header_value);
1791
- REEXECUTE();
1792
- }
1793
- }
1794
-
1795
- case s_headers_almost_done:
1796
- {
1797
- STRICT_CHECK(ch != LF);
1798
-
1799
- if (parser->flags & F_TRAILING) {
1800
- /* End of a chunked request */
1801
- UPDATE_STATE(s_message_done);
1802
- CALLBACK_NOTIFY_NOADVANCE(chunk_complete);
1803
- REEXECUTE();
1804
- }
1805
-
1806
- /* Cannot use transfer-encoding and a content-length header together
1807
- per the HTTP specification. (RFC 7230 Section 3.3.3) */
1808
- if ((parser->uses_transfer_encoding == 1) &&
1809
- (parser->flags & F_CONTENTLENGTH)) {
1810
- /* Allow it for lenient parsing as long as `Transfer-Encoding` is
1811
- * not `chunked` or allow_length_with_encoding is set
1812
- */
1813
- if (parser->flags & F_CHUNKED) {
1814
- if (!allow_chunked_length) {
1815
- SET_ERRNO(HPE_UNEXPECTED_CONTENT_LENGTH);
1816
- goto error;
1817
- }
1818
- } else if (!lenient) {
1819
- SET_ERRNO(HPE_UNEXPECTED_CONTENT_LENGTH);
1820
- goto error;
1821
- }
1822
- }
1823
-
1824
- UPDATE_STATE(s_headers_done);
1825
-
1826
- /* Set this here so that on_headers_complete() callbacks can see it */
1827
- if ((parser->flags & F_UPGRADE) &&
1828
- (parser->flags & F_CONNECTION_UPGRADE)) {
1829
- /* For responses, "Upgrade: foo" and "Connection: upgrade" are
1830
- * mandatory only when it is a 101 Switching Protocols response,
1831
- * otherwise it is purely informational, to announce support.
1832
- */
1833
- parser->upgrade =
1834
- (parser->type == HTTP_REQUEST || parser->status_code == 101);
1835
- } else {
1836
- parser->upgrade = (parser->method == HTTP_CONNECT);
1837
- }
1838
-
1839
- /* Here we call the headers_complete callback. This is somewhat
1840
- * different than other callbacks because if the user returns 1, we
1841
- * will interpret that as saying that this message has no body. This
1842
- * is needed for the annoying case of recieving a response to a HEAD
1843
- * request.
1844
- *
1845
- * We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so
1846
- * we have to simulate it by handling a change in errno below.
1847
- */
1848
- if (settings->on_headers_complete) {
1849
- switch (settings->on_headers_complete(parser)) {
1850
- case 0:
1851
- break;
1852
-
1853
- case 2:
1854
- parser->upgrade = 1;
1855
-
1856
- /* fall through */
1857
- case 1:
1858
- parser->flags |= F_SKIPBODY;
1859
- break;
1860
-
1861
- default:
1862
- SET_ERRNO(HPE_CB_headers_complete);
1863
- RETURN(p - data); /* Error */
1864
- }
1865
- }
1866
-
1867
- if (HTTP_PARSER_ERRNO(parser) != HPE_OK) {
1868
- RETURN(p - data);
1869
- }
1870
-
1871
- REEXECUTE();
1872
- }
1873
-
1874
- case s_headers_done:
1875
- {
1876
- int hasBody;
1877
- STRICT_CHECK(ch != LF);
1878
-
1879
- parser->nread = 0;
1880
- nread = 0;
1881
-
1882
- hasBody = parser->flags & F_CHUNKED ||
1883
- (parser->content_length > 0 && parser->content_length != ULLONG_MAX);
1884
- if (parser->upgrade && (parser->method == HTTP_CONNECT ||
1885
- (parser->flags & F_SKIPBODY) || !hasBody)) {
1886
- /* Exit, the rest of the message is in a different protocol. */
1887
- UPDATE_STATE(NEW_MESSAGE());
1888
- CALLBACK_NOTIFY(message_complete);
1889
- RETURN((p - data) + 1);
1890
- }
1891
-
1892
- if (parser->flags & F_SKIPBODY) {
1893
- UPDATE_STATE(NEW_MESSAGE());
1894
- CALLBACK_NOTIFY(message_complete);
1895
- } else if (parser->flags & F_CHUNKED) {
1896
- /* chunked encoding - ignore Content-Length header,
1897
- * prepare for a chunk */
1898
- UPDATE_STATE(s_chunk_size_start);
1899
- } else if (parser->uses_transfer_encoding == 1) {
1900
- if (parser->type == HTTP_REQUEST && !lenient) {
1901
- /* RFC 7230 3.3.3 */
1902
-
1903
- /* If a Transfer-Encoding header field
1904
- * is present in a request and the chunked transfer coding is not
1905
- * the final encoding, the message body length cannot be determined
1906
- * reliably; the server MUST respond with the 400 (Bad Request)
1907
- * status code and then close the connection.
1908
- */
1909
- SET_ERRNO(HPE_INVALID_TRANSFER_ENCODING);
1910
- RETURN(p - data); /* Error */
1911
- } else {
1912
- /* RFC 7230 3.3.3 */
1913
-
1914
- /* If a Transfer-Encoding header field is present in a response and
1915
- * the chunked transfer coding is not the final encoding, the
1916
- * message body length is determined by reading the connection until
1917
- * it is closed by the server.
1918
- */
1919
- UPDATE_STATE(s_body_identity_eof);
1920
- }
1921
- } else {
1922
- if (parser->content_length == 0) {
1923
- /* Content-Length header given but zero: Content-Length: 0\r\n */
1924
- UPDATE_STATE(NEW_MESSAGE());
1925
- CALLBACK_NOTIFY(message_complete);
1926
- } else if (parser->content_length != ULLONG_MAX) {
1927
- /* Content-Length header given and non-zero */
1928
- UPDATE_STATE(s_body_identity);
1929
- } else {
1930
- if (!http_message_needs_eof(parser)) {
1931
- /* Assume content-length 0 - read the next */
1932
- UPDATE_STATE(NEW_MESSAGE());
1933
- CALLBACK_NOTIFY(message_complete);
1934
- } else {
1935
- /* Read body until EOF */
1936
- UPDATE_STATE(s_body_identity_eof);
1937
- }
1938
- }
1939
- }
1940
-
1941
- break;
1942
- }
1943
-
1944
- case s_body_identity:
1945
- {
1946
- uint64_t to_read = MIN(parser->content_length,
1947
- (uint64_t) ((data + len) - p));
1948
-
1949
- assert(parser->content_length != 0
1950
- && parser->content_length != ULLONG_MAX);
1951
-
1952
- /* The difference between advancing content_length and p is because
1953
- * the latter will automaticaly advance on the next loop iteration.
1954
- * Further, if content_length ends up at 0, we want to see the last
1955
- * byte again for our message complete callback.
1956
- */
1957
- MARK(body);
1958
- parser->content_length -= to_read;
1959
- p += to_read - 1;
1960
-
1961
- if (parser->content_length == 0) {
1962
- UPDATE_STATE(s_message_done);
1963
-
1964
- /* Mimic CALLBACK_DATA_NOADVANCE() but with one extra byte.
1965
- *
1966
- * The alternative to doing this is to wait for the next byte to
1967
- * trigger the data callback, just as in every other case. The
1968
- * problem with this is that this makes it difficult for the test
1969
- * harness to distinguish between complete-on-EOF and
1970
- * complete-on-length. It's not clear that this distinction is
1971
- * important for applications, but let's keep it for now.
1972
- */
1973
- CALLBACK_DATA_(body, p - body_mark + 1, p - data);
1974
- REEXECUTE();
1975
- }
1976
-
1977
- break;
1978
- }
1979
-
1980
- /* read until EOF */
1981
- case s_body_identity_eof:
1982
- MARK(body);
1983
- p = data + len - 1;
1984
-
1985
- break;
1986
-
1987
- case s_message_done:
1988
- UPDATE_STATE(NEW_MESSAGE());
1989
- CALLBACK_NOTIFY(message_complete);
1990
- if (parser->upgrade) {
1991
- /* Exit, the rest of the message is in a different protocol. */
1992
- RETURN((p - data) + 1);
1993
- }
1994
- break;
1995
-
1996
- case s_chunk_size_start:
1997
- {
1998
- assert(nread == 1);
1999
- assert(parser->flags & F_CHUNKED);
2000
-
2001
- unhex_val = unhex[(unsigned char)ch];
2002
- if (UNLIKELY(unhex_val == -1)) {
2003
- SET_ERRNO(HPE_INVALID_CHUNK_SIZE);
2004
- goto error;
2005
- }
2006
-
2007
- parser->content_length = unhex_val;
2008
- UPDATE_STATE(s_chunk_size);
2009
- break;
2010
- }
2011
-
2012
- case s_chunk_size:
2013
- {
2014
- uint64_t t;
2015
-
2016
- assert(parser->flags & F_CHUNKED);
2017
-
2018
- if (ch == CR) {
2019
- UPDATE_STATE(s_chunk_size_almost_done);
2020
- break;
2021
- }
2022
-
2023
- unhex_val = unhex[(unsigned char)ch];
2024
-
2025
- if (unhex_val == -1) {
2026
- if (ch == ';' || ch == ' ') {
2027
- UPDATE_STATE(s_chunk_parameters);
2028
- break;
2029
- }
2030
-
2031
- SET_ERRNO(HPE_INVALID_CHUNK_SIZE);
2032
- goto error;
2033
- }
2034
-
2035
- t = parser->content_length;
2036
- t *= 16;
2037
- t += unhex_val;
2038
-
2039
- /* Overflow? Test against a conservative limit for simplicity. */
2040
- if (UNLIKELY((ULLONG_MAX - 16) / 16 < parser->content_length)) {
2041
- SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
2042
- goto error;
2043
- }
2044
-
2045
- parser->content_length = t;
2046
- break;
2047
- }
2048
-
2049
- case s_chunk_parameters:
2050
- {
2051
- assert(parser->flags & F_CHUNKED);
2052
- /* just ignore this shit. TODO check for overflow */
2053
- if (ch == CR) {
2054
- UPDATE_STATE(s_chunk_size_almost_done);
2055
- break;
2056
- }
2057
- break;
2058
- }
2059
-
2060
- case s_chunk_size_almost_done:
2061
- {
2062
- assert(parser->flags & F_CHUNKED);
2063
- STRICT_CHECK(ch != LF);
2064
-
2065
- parser->nread = 0;
2066
- nread = 0;
2067
-
2068
- if (parser->content_length == 0) {
2069
- parser->flags |= F_TRAILING;
2070
- UPDATE_STATE(s_header_field_start);
2071
- } else {
2072
- UPDATE_STATE(s_chunk_data);
2073
- }
2074
- CALLBACK_NOTIFY(chunk_header);
2075
- break;
2076
- }
2077
-
2078
- case s_chunk_data:
2079
- {
2080
- uint64_t to_read = MIN(parser->content_length,
2081
- (uint64_t) ((data + len) - p));
2082
-
2083
- assert(parser->flags & F_CHUNKED);
2084
- assert(parser->content_length != 0
2085
- && parser->content_length != ULLONG_MAX);
2086
-
2087
- /* See the explanation in s_body_identity for why the content
2088
- * length and data pointers are managed this way.
2089
- */
2090
- MARK(body);
2091
- parser->content_length -= to_read;
2092
- p += to_read - 1;
2093
-
2094
- if (parser->content_length == 0) {
2095
- UPDATE_STATE(s_chunk_data_almost_done);
2096
- }
2097
-
2098
- break;
2099
- }
2100
-
2101
- case s_chunk_data_almost_done:
2102
- assert(parser->flags & F_CHUNKED);
2103
- assert(parser->content_length == 0);
2104
- STRICT_CHECK(ch != CR);
2105
- UPDATE_STATE(s_chunk_data_done);
2106
- CALLBACK_DATA(body);
2107
- break;
2108
-
2109
- case s_chunk_data_done:
2110
- assert(parser->flags & F_CHUNKED);
2111
- STRICT_CHECK(ch != LF);
2112
- parser->nread = 0;
2113
- nread = 0;
2114
- UPDATE_STATE(s_chunk_size_start);
2115
- CALLBACK_NOTIFY(chunk_complete);
2116
- break;
2117
-
2118
- default:
2119
- assert(0 && "unhandled state");
2120
- SET_ERRNO(HPE_INVALID_INTERNAL_STATE);
2121
- goto error;
2122
- }
2123
- }
2124
-
2125
- /* Run callbacks for any marks that we have leftover after we ran out of
2126
- * bytes. There should be at most one of these set, so it's OK to invoke
2127
- * them in series (unset marks will not result in callbacks).
2128
- *
2129
- * We use the NOADVANCE() variety of callbacks here because 'p' has already
2130
- * overflowed 'data' and this allows us to correct for the off-by-one that
2131
- * we'd otherwise have (since CALLBACK_DATA() is meant to be run with a 'p'
2132
- * value that's in-bounds).
2133
- */
2134
-
2135
- assert(((header_field_mark ? 1 : 0) +
2136
- (header_value_mark ? 1 : 0) +
2137
- (url_mark ? 1 : 0) +
2138
- (body_mark ? 1 : 0) +
2139
- (status_mark ? 1 : 0)) <= 1);
2140
-
2141
- CALLBACK_DATA_NOADVANCE(header_field);
2142
- CALLBACK_DATA_NOADVANCE(header_value);
2143
- CALLBACK_DATA_NOADVANCE(url);
2144
- CALLBACK_DATA_NOADVANCE(body);
2145
- CALLBACK_DATA_NOADVANCE(status);
2146
-
2147
- RETURN(len);
2148
-
2149
- error:
2150
- if (HTTP_PARSER_ERRNO(parser) == HPE_OK) {
2151
- SET_ERRNO(HPE_UNKNOWN);
2152
- }
2153
-
2154
- RETURN(p - data);
2155
- }
2156
-
2157
-
2158
- /* Does the parser need to see an EOF to find the end of the message? */
2159
- int
2160
- http_message_needs_eof (const http_parser *parser)
2161
- {
2162
- if (parser->type == HTTP_REQUEST) {
2163
- return 0;
2164
- }
2165
-
2166
- /* See RFC 2616 section 4.4 */
2167
- if (parser->status_code / 100 == 1 || /* 1xx e.g. Continue */
2168
- parser->status_code == 204 || /* No Content */
2169
- parser->status_code == 304 || /* Not Modified */
2170
- parser->flags & F_SKIPBODY) { /* response to a HEAD request */
2171
- return 0;
2172
- }
2173
-
2174
- /* RFC 7230 3.3.3, see `s_headers_almost_done` */
2175
- if ((parser->uses_transfer_encoding == 1) &&
2176
- (parser->flags & F_CHUNKED) == 0) {
2177
- return 1;
2178
- }
2179
-
2180
- if ((parser->flags & F_CHUNKED) || parser->content_length != ULLONG_MAX) {
2181
- return 0;
2182
- }
2183
-
2184
- return 1;
2185
- }
2186
-
2187
-
2188
- int
2189
- http_should_keep_alive (const http_parser *parser)
2190
- {
2191
- if (parser->http_major > 0 && parser->http_minor > 0) {
2192
- /* HTTP/1.1 */
2193
- if (parser->flags & F_CONNECTION_CLOSE) {
2194
- return 0;
2195
- }
2196
- } else {
2197
- /* HTTP/1.0 or earlier */
2198
- if (!(parser->flags & F_CONNECTION_KEEP_ALIVE)) {
2199
- return 0;
2200
- }
2201
- }
2202
-
2203
- return !http_message_needs_eof(parser);
2204
- }
2205
-
2206
-
2207
- const char *
2208
- http_method_str (enum http_method m)
2209
- {
2210
- return ELEM_AT(method_strings, m, "<unknown>");
2211
- }
2212
-
2213
- const char *
2214
- http_status_str (enum http_status s)
2215
- {
2216
- switch (s) {
2217
- #define XX(num, name, string) case HTTP_STATUS_##name: return #string;
2218
- HTTP_STATUS_MAP(XX)
2219
- #undef XX
2220
- default: return "<unknown>";
2221
- }
2222
- }
2223
-
2224
- void
2225
- http_parser_init (http_parser *parser, enum http_parser_type t)
2226
- {
2227
- void *data = parser->data; /* preserve application data */
2228
- memset(parser, 0, sizeof(*parser));
2229
- parser->data = data;
2230
- parser->type = t;
2231
- parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
2232
- parser->http_errno = HPE_OK;
2233
- }
2234
-
2235
- void
2236
- http_parser_settings_init(http_parser_settings *settings)
2237
- {
2238
- memset(settings, 0, sizeof(*settings));
2239
- }
2240
-
2241
- const char *
2242
- http_errno_name(enum http_errno err) {
2243
- assert(((size_t) err) < ARRAY_SIZE(http_strerror_tab));
2244
- return http_strerror_tab[err].name;
2245
- }
2246
-
2247
- const char *
2248
- http_errno_description(enum http_errno err) {
2249
- assert(((size_t) err) < ARRAY_SIZE(http_strerror_tab));
2250
- return http_strerror_tab[err].description;
2251
- }
2252
-
2253
- static enum http_host_state
2254
- http_parse_host_char(enum http_host_state s, const char ch) {
2255
- switch(s) {
2256
- case s_http_userinfo:
2257
- case s_http_userinfo_start:
2258
- if (ch == '@') {
2259
- return s_http_host_start;
2260
- }
2261
-
2262
- if (IS_USERINFO_CHAR(ch)) {
2263
- return s_http_userinfo;
2264
- }
2265
- break;
2266
-
2267
- case s_http_host_start:
2268
- if (ch == '[') {
2269
- return s_http_host_v6_start;
2270
- }
2271
-
2272
- if (IS_HOST_CHAR(ch)) {
2273
- return s_http_host;
2274
- }
2275
-
2276
- break;
2277
-
2278
- case s_http_host:
2279
- if (IS_HOST_CHAR(ch)) {
2280
- return s_http_host;
2281
- }
2282
-
2283
- /* fall through */
2284
- case s_http_host_v6_end:
2285
- if (ch == ':') {
2286
- return s_http_host_port_start;
2287
- }
2288
-
2289
- break;
2290
-
2291
- case s_http_host_v6:
2292
- if (ch == ']') {
2293
- return s_http_host_v6_end;
2294
- }
2295
-
2296
- /* fall through */
2297
- case s_http_host_v6_start:
2298
- if (IS_HEX(ch) || ch == ':' || ch == '.') {
2299
- return s_http_host_v6;
2300
- }
2301
-
2302
- if (s == s_http_host_v6 && ch == '%') {
2303
- return s_http_host_v6_zone_start;
2304
- }
2305
- break;
2306
-
2307
- case s_http_host_v6_zone:
2308
- if (ch == ']') {
2309
- return s_http_host_v6_end;
2310
- }
2311
-
2312
- /* fall through */
2313
- case s_http_host_v6_zone_start:
2314
- /* RFC 6874 Zone ID consists of 1*( unreserved / pct-encoded) */
2315
- if (IS_ALPHANUM(ch) || ch == '%' || ch == '.' || ch == '-' || ch == '_' ||
2316
- ch == '~') {
2317
- return s_http_host_v6_zone;
2318
- }
2319
- break;
2320
-
2321
- case s_http_host_port:
2322
- case s_http_host_port_start:
2323
- if (IS_NUM(ch)) {
2324
- return s_http_host_port;
2325
- }
2326
-
2327
- break;
2328
-
2329
- default:
2330
- break;
2331
- }
2332
- return s_http_host_dead;
2333
- }
2334
-
2335
- static int
2336
- http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
2337
- enum http_host_state s;
2338
-
2339
- const char *p;
2340
- size_t buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len;
2341
-
2342
- assert(u->field_set & (1 << UF_HOST));
2343
-
2344
- u->field_data[UF_HOST].len = 0;
2345
-
2346
- s = found_at ? s_http_userinfo_start : s_http_host_start;
2347
-
2348
- for (p = buf + u->field_data[UF_HOST].off; p < buf + buflen; p++) {
2349
- enum http_host_state new_s = http_parse_host_char(s, *p);
2350
-
2351
- if (new_s == s_http_host_dead) {
2352
- return 1;
2353
- }
2354
-
2355
- switch(new_s) {
2356
- case s_http_host:
2357
- if (s != s_http_host) {
2358
- u->field_data[UF_HOST].off = (uint16_t)(p - buf);
2359
- }
2360
- u->field_data[UF_HOST].len++;
2361
- break;
2362
-
2363
- case s_http_host_v6:
2364
- if (s != s_http_host_v6) {
2365
- u->field_data[UF_HOST].off = (uint16_t)(p - buf);
2366
- }
2367
- u->field_data[UF_HOST].len++;
2368
- break;
2369
-
2370
- case s_http_host_v6_zone_start:
2371
- case s_http_host_v6_zone:
2372
- u->field_data[UF_HOST].len++;
2373
- break;
2374
-
2375
- case s_http_host_port:
2376
- if (s != s_http_host_port) {
2377
- u->field_data[UF_PORT].off = (uint16_t)(p - buf);
2378
- u->field_data[UF_PORT].len = 0;
2379
- u->field_set |= (1 << UF_PORT);
2380
- }
2381
- u->field_data[UF_PORT].len++;
2382
- break;
2383
-
2384
- case s_http_userinfo:
2385
- if (s != s_http_userinfo) {
2386
- u->field_data[UF_USERINFO].off = (uint16_t)(p - buf);
2387
- u->field_data[UF_USERINFO].len = 0;
2388
- u->field_set |= (1 << UF_USERINFO);
2389
- }
2390
- u->field_data[UF_USERINFO].len++;
2391
- break;
2392
-
2393
- default:
2394
- break;
2395
- }
2396
- s = new_s;
2397
- }
2398
-
2399
- /* Make sure we don't end somewhere unexpected */
2400
- switch (s) {
2401
- case s_http_host_start:
2402
- case s_http_host_v6_start:
2403
- case s_http_host_v6:
2404
- case s_http_host_v6_zone_start:
2405
- case s_http_host_v6_zone:
2406
- case s_http_host_port_start:
2407
- case s_http_userinfo:
2408
- case s_http_userinfo_start:
2409
- return 1;
2410
- default:
2411
- break;
2412
- }
2413
-
2414
- return 0;
2415
- }
2416
-
2417
- void
2418
- http_parser_url_init(struct http_parser_url *u) {
2419
- memset(u, 0, sizeof(*u));
2420
- }
2421
-
2422
- int
2423
- http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
2424
- struct http_parser_url *u)
2425
- {
2426
- enum state s;
2427
- const char *p;
2428
- enum http_parser_url_fields uf, old_uf;
2429
- int found_at = 0;
2430
-
2431
- if (buflen == 0) {
2432
- return 1;
2433
- }
2434
-
2435
- u->port = u->field_set = 0;
2436
- s = is_connect ? s_req_server_start : s_req_spaces_before_url;
2437
- old_uf = UF_MAX;
2438
-
2439
- for (p = buf; p < buf + buflen; p++) {
2440
- s = parse_url_char(s, *p);
2441
-
2442
- /* Figure out the next field that we're operating on */
2443
- switch (s) {
2444
- case s_dead:
2445
- return 1;
2446
-
2447
- /* Skip delimeters */
2448
- case s_req_schema_slash:
2449
- case s_req_schema_slash_slash:
2450
- case s_req_server_start:
2451
- case s_req_query_string_start:
2452
- case s_req_fragment_start:
2453
- continue;
2454
-
2455
- case s_req_schema:
2456
- uf = UF_SCHEMA;
2457
- break;
2458
-
2459
- case s_req_server_with_at:
2460
- found_at = 1;
2461
-
2462
- /* fall through */
2463
- case s_req_server:
2464
- uf = UF_HOST;
2465
- break;
2466
-
2467
- case s_req_path:
2468
- uf = UF_PATH;
2469
- break;
2470
-
2471
- case s_req_query_string:
2472
- uf = UF_QUERY;
2473
- break;
2474
-
2475
- case s_req_fragment:
2476
- uf = UF_FRAGMENT;
2477
- break;
2478
-
2479
- default:
2480
- assert(!"Unexpected state");
2481
- return 1;
2482
- }
2483
-
2484
- /* Nothing's changed; soldier on */
2485
- if (uf == old_uf) {
2486
- u->field_data[uf].len++;
2487
- continue;
2488
- }
2489
-
2490
- u->field_data[uf].off = (uint16_t)(p - buf);
2491
- u->field_data[uf].len = 1;
2492
-
2493
- u->field_set |= (1 << uf);
2494
- old_uf = uf;
2495
- }
2496
-
2497
- /* host must be present if there is a schema */
2498
- /* parsing http:///toto will fail */
2499
- if ((u->field_set & (1 << UF_SCHEMA)) &&
2500
- (u->field_set & (1 << UF_HOST)) == 0) {
2501
- return 1;
2502
- }
2503
-
2504
- if (u->field_set & (1 << UF_HOST)) {
2505
- if (http_parse_host(buf, u, found_at) != 0) {
2506
- return 1;
2507
- }
2508
- }
2509
-
2510
- /* CONNECT requests can only contain "hostname:port" */
2511
- if (is_connect && u->field_set != ((1 << UF_HOST)|(1 << UF_PORT))) {
2512
- return 1;
2513
- }
2514
-
2515
- if (u->field_set & (1 << UF_PORT)) {
2516
- uint16_t off;
2517
- uint16_t len;
2518
- const char* p;
2519
- const char* end;
2520
- unsigned long v;
2521
-
2522
- off = u->field_data[UF_PORT].off;
2523
- len = u->field_data[UF_PORT].len;
2524
- end = buf + off + len;
2525
-
2526
- /* NOTE: The characters are already validated and are in the [0-9] range */
2527
- assert((size_t) (off + len) <= buflen && "Port number overflow");
2528
- v = 0;
2529
- for (p = buf + off; p < end; p++) {
2530
- v *= 10;
2531
- v += *p - '0';
2532
-
2533
- /* Ports have a max value of 2^16 */
2534
- if (v > 0xffff) {
2535
- return 1;
2536
- }
2537
- }
2538
-
2539
- u->port = (uint16_t) v;
2540
- }
2541
-
2542
- return 0;
2543
- }
2544
-
2545
- void
2546
- http_parser_pause(http_parser *parser, int paused) {
2547
- /* Users should only be pausing/unpausing a parser that is not in an error
2548
- * state. In non-debug builds, there's not much that we can do about this
2549
- * other than ignore it.
2550
- */
2551
- if (HTTP_PARSER_ERRNO(parser) == HPE_OK ||
2552
- HTTP_PARSER_ERRNO(parser) == HPE_PAUSED) {
2553
- uint32_t nread = parser->nread; /* used by the SET_ERRNO macro */
2554
- SET_ERRNO((paused) ? HPE_PAUSED : HPE_OK);
2555
- } else {
2556
- assert(0 && "Attempting to pause parser in error state");
2557
- }
2558
- }
2559
-
2560
- int
2561
- http_body_is_final(const struct http_parser *parser) {
2562
- return parser->state == s_message_done;
2563
- }
2564
-
2565
- unsigned long
2566
- http_parser_version(void) {
2567
- return HTTP_PARSER_VERSION_MAJOR * 0x10000 |
2568
- HTTP_PARSER_VERSION_MINOR * 0x00100 |
2569
- HTTP_PARSER_VERSION_PATCH * 0x00001;
2570
- }
2571
-
2572
- void
2573
- http_parser_set_max_header_size(uint32_t size) {
2574
- max_header_size = size;
2575
- }