httpp 0.6.1__tar.gz → 0.8.0__tar.gz

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 (343) hide show
  1. httpp-0.8.0/.github/workflows/autobahn.yml +52 -0
  2. {httpp-0.6.1 → httpp-0.8.0}/.github/workflows/cmake.yml +3 -3
  3. {httpp-0.6.1 → httpp-0.8.0}/.github/workflows/orchestrator.yml +19 -1
  4. httpp-0.8.0/.github/workflows/wheels.yml +103 -0
  5. {httpp-0.6.1 → httpp-0.8.0}/.gitignore +1 -1
  6. httpp-0.8.0/CHANGELOG.md +442 -0
  7. {httpp-0.6.1 → httpp-0.8.0}/CMakeLists.txt +114 -12
  8. httpp-0.8.0/HANDOFF.md +144 -0
  9. httpp-0.8.0/PKG-INFO +629 -0
  10. httpp-0.8.0/README.md +602 -0
  11. httpp-0.8.0/benchmarks/.gitignore +1 -0
  12. httpp-0.8.0/benchmarks/CMakeLists.txt +162 -0
  13. httpp-0.8.0/benchmarks/README.md +42 -0
  14. httpp-0.8.0/benchmarks/asgi_app.py +21 -0
  15. httpp-0.8.0/benchmarks/bench.py +99 -0
  16. httpp-0.8.0/benchmarks/bench_setup.py +113 -0
  17. httpp-0.8.0/benchmarks/bench_validate.py +67 -0
  18. httpp-0.8.0/benchmarks/cpp/cpp_bench.cpp +49 -0
  19. httpp-0.8.0/benchmarks/cpp/drogon_bench.cpp +53 -0
  20. httpp-0.8.0/benchmarks/cpp/ws_load.cpp +279 -0
  21. httpp-0.8.0/benchmarks/cpu_app.py +16 -0
  22. httpp-0.8.0/benchmarks/cpu_bench.py +24 -0
  23. httpp-0.8.0/benchmarks/diag_io.sh +100 -0
  24. httpp-0.8.0/benchmarks/fastapi_app.py +27 -0
  25. httpp-0.8.0/benchmarks/httpp_app.py +50 -0
  26. httpp-0.8.0/benchmarks/io_app.py +27 -0
  27. httpp-0.8.0/benchmarks/io_bench.py +61 -0
  28. httpp-0.8.0/benchmarks/stress.py +151 -0
  29. httpp-0.8.0/benchmarks/suite.py +528 -0
  30. httpp-0.8.0/benchmarks/suite_app.py +61 -0
  31. httpp-0.8.0/benchmarks/suite_asgi.py +28 -0
  32. httpp-0.8.0/benchmarks/ws_websockets.py +25 -0
  33. httpp-0.8.0/checklist.md +98 -0
  34. httpp-0.8.0/cmake/EmbedFile.cmake +159 -0
  35. httpp-0.8.0/cmake/httpp_mbedtls_config.h +24 -0
  36. httpp-0.8.0/cmake/utils/embedded_files.in.hpp +12 -0
  37. httpp-0.8.0/docs/Architecture.md +410 -0
  38. httpp-0.8.0/docs/adr/0001-own-both-layers.md +33 -0
  39. httpp-0.8.0/docs/adr/0002-standard-asyncio-loop.md +33 -0
  40. httpp-0.8.0/docs/adr/0003-engine-and-third-party.md +38 -0
  41. httpp-0.8.0/docs/adr/0004-zero-system-dependencies.md +22 -0
  42. httpp-0.8.0/docs/adr/0005-multiprocess-workers.md +31 -0
  43. httpp-0.8.0/docs/adr/0006-own-model-layer.md +32 -0
  44. httpp-0.8.0/docs/adr/0007-openapi-from-one-plan.md +28 -0
  45. httpp-0.8.0/docs/adr/0008-swagger-ui-compiled-in.md +35 -0
  46. httpp-0.8.0/docs/adr/0009-hot-path.md +29 -0
  47. httpp-0.8.0/docs/adr/0010-mbedtls-threading.md +30 -0
  48. httpp-0.8.0/docs/adr/0011-logging.md +37 -0
  49. httpp-0.8.0/docs/adr/0012-run-wins-over-listen.md +35 -0
  50. httpp-0.8.0/docs/adr/0013-packaging.md +25 -0
  51. httpp-0.8.0/docs/adr/0014-coding-conventions.md +22 -0
  52. httpp-0.8.0/docs/adr/0015-testing-and-ci.md +52 -0
  53. httpp-0.8.0/docs/adr/0016-hybrid-api-parity.md +49 -0
  54. httpp-0.8.0/docs/adr/0017-python-binding-policy.md +44 -0
  55. httpp-0.8.0/docs/adr/0018-python-logging-bridge.md +50 -0
  56. httpp-0.8.0/docs/adr/0019-vendored-deflate-inflate.md +46 -0
  57. httpp-0.8.0/docs/adr/0020-http-exception-and-response-classes.md +33 -0
  58. httpp-0.8.0/docs/adr/0021-pool-thread-state-and-two-core-numbers.md +153 -0
  59. httpp-0.8.0/docs/adr/0022-dual-api-rule-and-delegated-decisions.md +109 -0
  60. httpp-0.8.0/docs/adr/0023-inline-async-handlers.md +79 -0
  61. httpp-0.8.0/docs/adr/0024-io-threads-and-lanes.md +50 -0
  62. httpp-0.8.0/docs/adr/0025-measured-defaults-on-16-threads.md +155 -0
  63. httpp-0.8.0/docs/adr/0026-websocket.md +111 -0
  64. httpp-0.8.0/docs/adr/0027-websocket-python-and-async-handshake.md +79 -0
  65. httpp-0.8.0/docs/adr/0028-autobahn-called-by-the-orchestrator.md +27 -0
  66. httpp-0.8.0/docs/adr/0029-incremental-utf8-validation.md +30 -0
  67. httpp-0.8.0/docs/adr/0030-benchmarks-built-by-cmake.md +36 -0
  68. httpp-0.8.0/docs/adr/0031-compressed-embedded-files.md +50 -0
  69. httpp-0.8.0/docs/adr/0032-read-only-file-browser.md +54 -0
  70. httpp-0.8.0/docs/adr/0033-engine-per-request-cost.md +109 -0
  71. httpp-0.8.0/docs/adr/0034-balanced-connections-between-io-threads.md +49 -0
  72. httpp-0.8.0/docs/adr/0035-hook-path-needs-no-server-pointer.md +38 -0
  73. httpp-0.8.0/docs/adr/0036-connection-read-buffer-not-zero-filled.md +28 -0
  74. httpp-0.8.0/docs/adr/0037-middleware-through-use.md +34 -0
  75. httpp-0.8.0/docs/adr/0038-graceful-shutdown.md +38 -0
  76. httpp-0.8.0/docs/adr/0039-reload-supervisor.md +34 -0
  77. httpp-0.8.0/docs/adr/0040-server-tls.md +45 -0
  78. httpp-0.8.0/docs/adr/0041-native-cli-and-py.md +59 -0
  79. httpp-0.8.0/docs/adr/0042-test-client.md +46 -0
  80. httpp-0.8.0/docs/adr/README.md +61 -0
  81. httpp-0.8.0/docs/agent.md +385 -0
  82. httpp-0.8.0/docs/index.rst +13 -0
  83. {httpp-0.6.1 → httpp-0.8.0}/examples/find_httpp_via_python/CMakeLists.txt +1 -1
  84. {httpp-0.6.1 → httpp-0.8.0}/examples/python/01_hello_server.py +2 -1
  85. {httpp-0.6.1 → httpp-0.8.0}/examples/python/02_path_params.py +2 -1
  86. {httpp-0.6.1 → httpp-0.8.0}/examples/python/03_request_object.py +2 -1
  87. {httpp-0.6.1 → httpp-0.8.0}/examples/python/04_responses.py +2 -1
  88. {httpp-0.6.1 → httpp-0.8.0}/examples/python/05_http_methods.py +2 -1
  89. {httpp-0.6.1 → httpp-0.8.0}/examples/python/06_async_handlers.py +2 -1
  90. httpp-0.8.0/examples/python/12_hooks_and_settings.py +81 -0
  91. httpp-0.8.0/examples/python/13_streaming_and_files.py +84 -0
  92. httpp-0.8.0/examples/python/14_async_client.py +66 -0
  93. httpp-0.8.0/examples/python/15_progress_and_url.py +31 -0
  94. httpp-0.8.0/include/httpp/client.hpp +305 -0
  95. {httpp-0.6.1 → httpp-0.8.0}/include/httpp/curl.hpp +2 -2
  96. {httpp-0.6.1 → httpp-0.8.0}/include/httpp/curl_compat.h +4 -4
  97. httpp-0.8.0/include/httpp/download.hpp +129 -0
  98. {httpp-0.6.1 → httpp-0.8.0}/include/httpp/export.hpp +1 -1
  99. httpp-0.8.0/include/httpp/file_browser.hpp +34 -0
  100. httpp-0.8.0/include/httpp/log.hpp +31 -0
  101. httpp-0.8.0/include/httpp/middleware.hpp +54 -0
  102. {httpp-0.6.1 → httpp-0.8.0}/include/httpp/progress.hpp +3 -3
  103. httpp-0.8.0/include/httpp/router.hpp +65 -0
  104. httpp-0.8.0/include/httpp/server.hpp +283 -0
  105. httpp-0.8.0/include/httpp/sha256.hpp +24 -0
  106. httpp-0.8.0/include/httpp/swagger_ui.hpp +38 -0
  107. {httpp-0.6.1 → httpp-0.8.0}/include/httpp/url.hpp +9 -1
  108. httpp-0.8.0/include/httpp/websocket.hpp +107 -0
  109. {httpp-0.6.1 → httpp-0.8.0}/include/httpp.h +5 -3
  110. {httpp-0.6.1 → httpp-0.8.0}/pyproject.toml +24 -6
  111. httpp-0.8.0/src/assets/file_browser.html +185 -0
  112. {httpp-0.6.1 → httpp-0.8.0}/src/bindings/python/CMakeLists.txt +36 -19
  113. httpp-0.8.0/src/bindings/python/_validate_cy.pyx +898 -0
  114. httpp-0.8.0/src/bindings/python/httpp/__init__.py +78 -0
  115. httpp-0.8.0/src/bindings/python/httpp/__main__.py +131 -0
  116. httpp-0.8.0/src/bindings/python/httpp/_background.py +56 -0
  117. httpp-0.8.0/src/bindings/python/httpp/_forms.py +58 -0
  118. httpp-0.8.0/src/bindings/python/httpp/_http.py +130 -0
  119. httpp-0.8.0/src/bindings/python/httpp/_log.py +71 -0
  120. httpp-0.8.0/src/bindings/python/httpp/_params.py +535 -0
  121. httpp-0.8.0/src/bindings/python/httpp/_reload.py +118 -0
  122. httpp-0.8.0/src/bindings/python/httpp/_router.py +106 -0
  123. httpp-0.8.0/src/bindings/python/httpp/_run.py +232 -0
  124. httpp-0.8.0/src/bindings/python/httpp/_schema.py +429 -0
  125. httpp-0.8.0/src/bindings/python/httpp/_validate.py +226 -0
  126. httpp-0.8.0/src/bindings/python/httpp/_websocket.py +187 -0
  127. httpp-0.8.0/src/bindings/python/httpp/errors.py +50 -0
  128. httpp-0.8.0/src/bindings/python/httpp/middleware.py +97 -0
  129. httpp-0.8.0/src/bindings/python/httpp/models.py +497 -0
  130. httpp-0.8.0/src/bindings/python/httpp/progress.py +34 -0
  131. httpp-0.8.0/src/bindings/python/httpp/responses.py +107 -0
  132. httpp-0.8.0/src/bindings/python/httpp/server.py +1400 -0
  133. httpp-0.8.0/src/bindings/python/httpp/status.py +9 -0
  134. httpp-0.8.0/src/bindings/python/httpp/testclient.py +361 -0
  135. httpp-0.8.0/src/bindings/python/httpp/utils.py +13 -0
  136. httpp-0.8.0/src/bindings/python/httpp_cli.py +79 -0
  137. httpp-0.8.0/src/bindings/python/httpp_cy.pyx +2369 -0
  138. httpp-0.8.0/src/cli/httpp_cli.cpp +414 -0
  139. httpp-0.8.0/src/core/async_http.cpp +656 -0
  140. httpp-0.8.0/src/core/async_server.cpp +1247 -0
  141. httpp-0.8.0/src/core/client.cpp +807 -0
  142. httpp-0.8.0/src/core/content_decode.cpp +78 -0
  143. {httpp-0.6.1 → httpp-0.8.0}/src/core/curl.cpp +2 -2
  144. {httpp-0.6.1 → httpp-0.8.0}/src/core/curl_compat.cpp +2 -2
  145. httpp-0.8.0/src/core/deflate.cpp +96 -0
  146. httpp-0.8.0/src/core/download.cpp +610 -0
  147. httpp-0.8.0/src/core/file_browser.cpp +340 -0
  148. httpp-0.8.0/src/core/form.cpp +205 -0
  149. httpp-0.8.0/src/core/inflate.cpp +118 -0
  150. httpp-0.8.0/src/core/internal/async_http.hpp +71 -0
  151. httpp-0.8.0/src/core/internal/async_server.hpp +153 -0
  152. httpp-0.8.0/src/core/internal/blocking_pool.hpp +73 -0
  153. httpp-0.8.0/src/core/internal/checksums.hpp +45 -0
  154. httpp-0.8.0/src/core/internal/content_decode.hpp +23 -0
  155. httpp-0.8.0/src/core/internal/deflate.hpp +19 -0
  156. {httpp-0.6.1 → httpp-0.8.0}/src/core/internal/httplib_common.hpp +1 -1
  157. httpp-0.8.0/src/core/internal/inflate.hpp +37 -0
  158. httpp-0.8.0/src/core/internal/log.hpp +45 -0
  159. httpp-0.8.0/src/core/internal/response_compression.hpp +31 -0
  160. httpp-0.8.0/src/core/internal/tls_session.hpp +56 -0
  161. httpp-0.8.0/src/core/internal/urlencoded.hpp +17 -0
  162. httpp-0.8.0/src/core/internal/websocket.hpp +134 -0
  163. httpp-0.8.0/src/core/internal/worker_pool.hpp +179 -0
  164. httpp-0.8.0/src/core/log.cpp +107 -0
  165. httpp-0.8.0/src/core/mbedtls_alt/threading_alt.h +22 -0
  166. httpp-0.8.0/src/core/mbedtls_threading.cpp +49 -0
  167. httpp-0.8.0/src/core/middleware.cpp +247 -0
  168. httpp-0.8.0/src/core/response_compression.cpp +106 -0
  169. httpp-0.8.0/src/core/router.cpp +89 -0
  170. httpp-0.8.0/src/core/server.cpp +1305 -0
  171. httpp-0.8.0/src/core/sha256.cpp +110 -0
  172. httpp-0.8.0/src/core/swagger_ui.cpp +146 -0
  173. httpp-0.8.0/src/core/tls_session.cpp +282 -0
  174. httpp-0.8.0/src/core/url.cpp +94 -0
  175. httpp-0.8.0/src/core/websocket.cpp +432 -0
  176. httpp-0.8.0/src/core/websocket_api.cpp +45 -0
  177. httpp-0.8.0/src/third_party/CLI11/CLI11.hpp +11527 -0
  178. httpp-0.8.0/src/third_party/README.md +102 -0
  179. httpp-0.8.0/src/third_party/aixlog/LICENSE +21 -0
  180. httpp-0.8.0/src/third_party/aixlog/aixlog.hpp +1254 -0
  181. {httpp-0.6.1 → httpp-0.8.0}/src/third_party/cpp-httplib/httplib.h +6 -293
  182. httpp-0.8.0/src/third_party/llhttp/LICENSE +22 -0
  183. httpp-0.8.0/src/third_party/llhttp/VENDORED.md +16 -0
  184. httpp-0.8.0/src/third_party/llhttp/include/llhttp.h +925 -0
  185. httpp-0.8.0/src/third_party/llhttp/src/api.c +517 -0
  186. httpp-0.8.0/src/third_party/llhttp/src/http.c +170 -0
  187. httpp-0.8.0/src/third_party/llhttp/src/llhttp.c +10279 -0
  188. httpp-0.8.0/src/third_party/stb_deflate/LICENSE +39 -0
  189. httpp-0.8.0/src/third_party/stb_deflate/VENDORED.md +9 -0
  190. httpp-0.8.0/src/third_party/stb_deflate/stb_deflate.h +534 -0
  191. httpp-0.8.0/src/third_party/stb_inflate/LICENSE +38 -0
  192. httpp-0.8.0/src/third_party/stb_inflate/VENDORED.md +8 -0
  193. httpp-0.8.0/src/third_party/stb_inflate/stb_inflate.h +622 -0
  194. httpp-0.8.0/src/third_party/swagger-ui/LICENSE +202 -0
  195. httpp-0.8.0/src/third_party/swagger-ui/NOTICE +2 -0
  196. httpp-0.8.0/src/third_party/swagger-ui/VENDORED.md +10 -0
  197. httpp-0.8.0/src/third_party/swagger-ui/swagger-api-icon.svg +1 -0
  198. httpp-0.8.0/src/third_party/swagger-ui/swagger-ui-bundle.js +2 -0
  199. httpp-0.8.0/src/third_party/swagger-ui/swagger-ui-bundle.js.LICENSE.txt +131 -0
  200. httpp-0.8.0/src/third_party/swagger-ui/swagger-ui.css +3 -0
  201. httpp-0.8.0/tests/CMakeLists.txt +22 -0
  202. {httpp-0.6.1 → httpp-0.8.0}/tests/cmake/consumer_project/CMakeLists.txt +1 -1
  203. {httpp-0.6.1 → httpp-0.8.0}/tests/cmake/consumer_project/main.cpp +1 -1
  204. httpp-0.8.0/tests/cmake/embed_compress/CMakeLists.txt +26 -0
  205. httpp-0.8.0/tests/cmake/embed_compress/main.cpp +61 -0
  206. httpp-0.8.0/tests/cpp/CMakeLists.txt +60 -0
  207. httpp-0.8.0/tests/cpp/inflate_fixtures.hpp +14 -0
  208. httpp-0.8.0/tests/cpp/local_server.hpp +30 -0
  209. httpp-0.8.0/tests/cpp/swagger_original.hpp +16 -0
  210. httpp-0.8.0/tests/cpp/test_async_http.cpp +317 -0
  211. httpp-0.8.0/tests/cpp/test_async_https.cpp +262 -0
  212. httpp-0.8.0/tests/cpp/test_async_pool_proxy.cpp +425 -0
  213. httpp-0.8.0/tests/cpp/test_async_server.cpp +605 -0
  214. httpp-0.8.0/tests/cpp/test_certs.hpp +42 -0
  215. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_client.cpp +1 -1
  216. httpp-0.8.0/tests/cpp/test_client_async_engine.cpp +358 -0
  217. httpp-0.8.0/tests/cpp/test_client_encoding.cpp +160 -0
  218. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_client_request.cpp +4 -4
  219. httpp-0.8.0/tests/cpp/test_client_session.cpp +211 -0
  220. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_curl.cpp +4 -4
  221. httpp-0.8.0/tests/cpp/test_deflate.cpp +73 -0
  222. httpp-0.8.0/tests/cpp/test_download.cpp +452 -0
  223. httpp-0.8.0/tests/cpp/test_file_browser.cpp +409 -0
  224. httpp-0.8.0/tests/cpp/test_form.cpp +127 -0
  225. httpp-0.8.0/tests/cpp/test_inflate.cpp +91 -0
  226. httpp-0.8.0/tests/cpp/test_log.cpp +179 -0
  227. httpp-0.8.0/tests/cpp/test_router.cpp +96 -0
  228. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_server.cpp +87 -0
  229. httpp-0.8.0/tests/cpp/test_server_after_send.cpp +96 -0
  230. httpp-0.8.0/tests/cpp/test_server_compression.cpp +93 -0
  231. httpp-0.8.0/tests/cpp/test_server_features.cpp +402 -0
  232. httpp-0.8.0/tests/cpp/test_server_io_routes.cpp +404 -0
  233. httpp-0.8.0/tests/cpp/test_server_io_threads.cpp +172 -0
  234. httpp-0.8.0/tests/cpp/test_server_middleware.cpp +283 -0
  235. httpp-0.8.0/tests/cpp/test_server_routing.cpp +226 -0
  236. httpp-0.8.0/tests/cpp/test_server_shutdown.cpp +172 -0
  237. httpp-0.8.0/tests/cpp/test_server_tls.cpp +270 -0
  238. httpp-0.8.0/tests/cpp/test_server_websocket.cpp +712 -0
  239. httpp-0.8.0/tests/cpp/test_sha256.cpp +61 -0
  240. httpp-0.8.0/tests/cpp/test_swagger_ui.cpp +65 -0
  241. httpp-0.8.0/tests/cpp/test_swagger_ui_route.cpp +123 -0
  242. httpp-0.8.0/tests/cpp/test_websocket_session.cpp +638 -0
  243. httpp-0.8.0/tests/cpp/test_worker_pool.cpp +153 -0
  244. httpp-0.8.0/tests/cpp/tls_test_server.hpp +157 -0
  245. httpp-0.8.0/tests/cpp/ws_test_client.hpp +171 -0
  246. {httpp-0.6.1 → httpp-0.8.0}/tests/python/CMakeLists.txt +4 -1
  247. httpp-0.8.0/tests/python/conftest.py +91 -0
  248. httpp-0.8.0/tests/python/test_abi3_safe.py +17 -0
  249. httpp-0.8.0/tests/python/test_async_engine.py +210 -0
  250. httpp-0.8.0/tests/python/test_cli.py +442 -0
  251. httpp-0.8.0/tests/python/test_cli_path.py +29 -0
  252. httpp-0.8.0/tests/python/test_client.py +305 -0
  253. httpp-0.8.0/tests/python/test_client_encoding.py +105 -0
  254. httpp-0.8.0/tests/python/test_client_keep_alive.py +45 -0
  255. httpp-0.8.0/tests/python/test_cpp_python_parity.py +211 -0
  256. httpp-0.8.0/tests/python/test_download_progress_url.py +302 -0
  257. httpp-0.8.0/tests/python/test_download_sha256.py +150 -0
  258. httpp-0.8.0/tests/python/test_embed_file.py +122 -0
  259. {httpp-0.6.1 → httpp-0.8.0}/tests/python/test_examples.py +5 -2
  260. httpp-0.8.0/tests/python/test_file_browser.py +124 -0
  261. httpp-0.8.0/tests/python/test_forms.py +143 -0
  262. {httpp-0.6.1 → httpp-0.8.0}/tests/python/test_httpp_routes.py +99 -1
  263. httpp-0.8.0/tests/python/test_inline_async.py +232 -0
  264. httpp-0.8.0/tests/python/test_io_threads.py +165 -0
  265. httpp-0.8.0/tests/python/test_log.py +111 -0
  266. httpp-0.8.0/tests/python/test_log_bridge.py +133 -0
  267. httpp-0.8.0/tests/python/test_middleware.py +165 -0
  268. httpp-0.8.0/tests/python/test_models_vs_pydantic.py +191 -0
  269. httpp-0.8.0/tests/python/test_openapi.py +300 -0
  270. httpp-0.8.0/tests/python/test_params_depends.py +387 -0
  271. httpp-0.8.0/tests/python/test_path_templates.py +35 -0
  272. httpp-0.8.0/tests/python/test_pool_thread_state.py +37 -0
  273. httpp-0.8.0/tests/python/test_query_encoding.py +48 -0
  274. httpp-0.8.0/tests/python/test_reload.py +149 -0
  275. httpp-0.8.0/tests/python/test_response_injection.py +173 -0
  276. httpp-0.8.0/tests/python/test_responses.py +225 -0
  277. httpp-0.8.0/tests/python/test_router.py +128 -0
  278. httpp-0.8.0/tests/python/test_run.py +297 -0
  279. httpp-0.8.0/tests/python/test_server_features.py +1090 -0
  280. httpp-0.8.0/tests/python/test_server_raw_request.py +239 -0
  281. httpp-0.8.0/tests/python/test_shutdown.py +167 -0
  282. httpp-0.8.0/tests/python/test_testclient.py +290 -0
  283. httpp-0.8.0/tests/python/test_tls.py +183 -0
  284. httpp-0.8.0/tests/python/test_validate_vs_pydantic.py +134 -0
  285. httpp-0.8.0/tests/python/test_websocket.py +540 -0
  286. httpp-0.8.0/tools/autobahn/README.md +5 -0
  287. httpp-0.8.0/tools/autobahn/check_report.py +50 -0
  288. httpp-0.8.0/tools/autobahn/echo_server.py +22 -0
  289. httpp-0.8.0/tools/autobahn/fuzzingclient.json +7 -0
  290. httpp-0.8.0/tools/fastapi_probes/probe_fastapi_deps_responses.py +62 -0
  291. httpp-0.8.0/tools/fastapi_probes/probe_fastapi_params.py +68 -0
  292. httpp-0.8.0/tools/fastapi_probes/probe_pydantic_types.py +49 -0
  293. httpp-0.6.1/.github/workflows/wheels.yml +0 -72
  294. httpp-0.6.1/PKG-INFO +0 -435
  295. httpp-0.6.1/README.md +0 -410
  296. httpp-0.6.1/docs/index.rst +0 -19
  297. httpp-0.6.1/include/httpp/client.hpp +0 -124
  298. httpp-0.6.1/include/httpp/download.hpp +0 -84
  299. httpp-0.6.1/include/httpp/server.hpp +0 -99
  300. httpp-0.6.1/src/bindings/python/httpp/__init__.py +0 -51
  301. httpp-0.6.1/src/bindings/python/httpp/__main__.py +0 -223
  302. httpp-0.6.1/src/bindings/python/httpp/server.py +0 -253
  303. httpp-0.6.1/src/bindings/python/httpp_cy.pyx +0 -436
  304. httpp-0.6.1/src/core/client.cpp +0 -207
  305. httpp-0.6.1/src/core/download.cpp +0 -311
  306. httpp-0.6.1/src/core/event_loop.cpp +0 -318
  307. httpp-0.6.1/src/core/internal/event_loop.hpp +0 -74
  308. httpp-0.6.1/src/core/server.cpp +0 -199
  309. httpp-0.6.1/src/core/url.cpp +0 -45
  310. httpp-0.6.1/src/third_party/README.md +0 -41
  311. httpp-0.6.1/src/third_party/cpp-httplib/HTTPP_PATCHES.md +0 -93
  312. httpp-0.6.1/src/third_party/cpp-httplib/HTTPP_PATCHES.patch +0 -386
  313. httpp-0.6.1/tests/CMakeLists.txt +0 -13
  314. httpp-0.6.1/tests/cpp/CMakeLists.txt +0 -43
  315. httpp-0.6.1/tests/cpp/test_download.cpp +0 -120
  316. httpp-0.6.1/tests/cpp/test_event_loop.cpp +0 -225
  317. {httpp-0.6.1 → httpp-0.8.0}/.github/workflows/release_template.md +0 -0
  318. {httpp-0.6.1 → httpp-0.8.0}/.gitmodules +0 -0
  319. {httpp-0.6.1 → httpp-0.8.0}/LICENSE.txt +0 -0
  320. {httpp-0.6.1 → httpp-0.8.0}/cmake/DynamicVersion.cmake +0 -0
  321. {httpp-0.6.1 → httpp-0.8.0}/cmake/FindCython.cmake +0 -0
  322. {httpp-0.6.1 → httpp-0.8.0}/cmake/Optimize.cmake +0 -0
  323. {httpp-0.6.1 → httpp-0.8.0}/cmake/Startup.cmake +0 -0
  324. {httpp-0.6.1 → httpp-0.8.0}/cmake/UseCython.cmake +0 -0
  325. {httpp-0.6.1 → httpp-0.8.0}/cmake/httppConfig.cmake.in +0 -0
  326. {httpp-0.6.1 → httpp-0.8.0}/examples/find_httpp_via_python/main.cpp +0 -0
  327. {httpp-0.6.1 → httpp-0.8.0}/examples/python/07_serve_directory.py +0 -0
  328. {httpp-0.6.1 → httpp-0.8.0}/examples/python/08_error_handling.py +0 -0
  329. {httpp-0.6.1 → httpp-0.8.0}/examples/python/09_client.py +0 -0
  330. {httpp-0.6.1 → httpp-0.8.0}/examples/python/10_request_builder.py +0 -0
  331. {httpp-0.6.1 → httpp-0.8.0}/examples/python/11_download.py +0 -0
  332. {httpp-0.6.1 → httpp-0.8.0}/requirements-dev.txt +0 -0
  333. {httpp-0.6.1 → httpp-0.8.0}/src/core/progress.cpp +0 -0
  334. {httpp-0.6.1 → httpp-0.8.0}/src/third_party/indicators/indicators.hpp +0 -0
  335. {httpp-0.6.1 → httpp-0.8.0}/tests/cmake/CMakeLists.txt +0 -0
  336. {httpp-0.6.1 → httpp-0.8.0}/tests/cmake/run_consumer_test.cmake +0 -0
  337. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_curl_compat.cpp +0 -0
  338. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_progress.cpp +0 -0
  339. {httpp-0.6.1 → httpp-0.8.0}/tests/cpp/test_url.cpp +0 -0
  340. {httpp-0.6.1 → httpp-0.8.0}/tests/python/test_httpp_basic.py +0 -0
  341. {httpp-0.6.1 → httpp-0.8.0}/tests/utest/utest.h +0 -0
  342. {httpp-0.6.1 → httpp-0.8.0}/tests/utest/utest_main.cxx +0 -0
  343. {httpp-0.6.1 → httpp-0.8.0}/version.py +0 -0
@@ -0,0 +1,52 @@
1
+ name: autobahn
2
+
3
+ # Called by the orchestrator after its `init` job (which clears the __beta__ assets), so the summary is uploaded after the clean-up
4
+ # and never deleted by it. It can also be run by hand. ADR-0028.
5
+ # WebSocket conformance (RFC 6455) with the Autobahn test suite against the Python echo server. Cases 12.* and 13.* (permessage-deflate) are excluded.
6
+ on:
7
+ workflow_dispatch:
8
+ workflow_call:
9
+
10
+ permissions:
11
+ contents: write
12
+
13
+ jobs:
14
+ autobahn:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+ with:
19
+ submodules: recursive
20
+ - uses: actions/setup-python@v6
21
+ with:
22
+ python-version: "3.12"
23
+ - name: Build and install httpp
24
+ run: pip install .
25
+ - name: Start the echo server
26
+ run: |
27
+ python tools/autobahn/echo_server.py 9001 &
28
+ sleep 2
29
+ - name: Run the Autobahn fuzzing client
30
+ working-directory: tools/autobahn
31
+ run: |
32
+ mkdir -p reports
33
+ docker run --rm --net=host -v "$PWD:/config" -v "$PWD/reports:/reports" crossbario/autobahn-testsuite wstest -m fuzzingclient -s /config/fuzzingclient.json
34
+ - name: Summarise the report
35
+ id: summary
36
+ run: python tools/autobahn/check_report.py tools/autobahn/reports/index.json autobahn-report.md
37
+ continue-on-error: true
38
+ - name: Publish the summary to the __beta__ release
39
+ if: always()
40
+ env:
41
+ GH_TOKEN: ${{ github.token }}
42
+ run: |
43
+ gh release view __beta__ >/dev/null 2>&1 || gh release create __beta__ --prerelease --title __beta__ --notes "pre-release builds"
44
+ gh release upload __beta__ autobahn-report.md --clobber
45
+ - uses: actions/upload-artifact@v4
46
+ if: always()
47
+ with:
48
+ name: autobahn-report
49
+ path: tools/autobahn/reports
50
+ - name: Fail if a case FAILED
51
+ if: steps.summary.outcome == 'failure'
52
+ run: exit 1
@@ -44,7 +44,7 @@ jobs:
44
44
 
45
45
  - name: Run tests (Linux/macOS)
46
46
  if: runner.os != 'Windows'
47
- run: ctest --test-dir build --output-on-failure --extra-verbose
47
+ run: ctest --test-dir build --output-on-failure --extra-verbose --timeout 900
48
48
 
49
49
  build-coverage:
50
50
  runs-on: ubuntu-latest
@@ -79,13 +79,13 @@ jobs:
79
79
  cmake -B build \
80
80
  -DHTTPP_BUILD_TESTS=ON \
81
81
  -DHTTPP_BUILD_PYTHON=ON \
82
- -DCMAKE_CXX_FLAGS="--coverage -O0 -g" \
82
+ -DCMAKE_CXX_FLAGS="--coverage -fprofile-update=atomic -O0 -g" \
83
83
  -DCMAKE_EXE_LINKER_FLAGS="--coverage"
84
84
 
85
85
  - name: Build and run C++ tests
86
86
  run: |
87
87
  cmake --build build --target test_httpp_cpp -j4
88
- ctest --test-dir build -R test_httpp_cpp --output-on-failure
88
+ ctest --test-dir build -R test_httpp_cpp --output-on-failure --timeout 900
89
89
 
90
90
  - name: Capture coverage
91
91
  run: |
@@ -56,6 +56,13 @@ jobs:
56
56
  uses: ./.github/workflows/wheels.yml
57
57
  needs: [init]
58
58
 
59
+ # Informational: release-wheels does not wait for it, a FAILED case must not block publishing the wheels (ADR-0028).
60
+ autobahn:
61
+ uses: ./.github/workflows/autobahn.yml
62
+ needs: [init]
63
+ permissions:
64
+ contents: write
65
+
59
66
  release-wheels:
60
67
  needs: [wheel, init]
61
68
  runs-on: ubuntu-latest
@@ -67,8 +74,15 @@ jobs:
67
74
  path: dist
68
75
  merge-multiple: true
69
76
 
77
+ # Safety net: the publish steps need only flat *.whl / *.tar.gz files in dist/.
78
+ - name: Check dist layout
79
+ run: |
80
+ if find dist -mindepth 1 -type d | grep -q .; then
81
+ echo "::error::unexpected sub-directories in dist/"; find dist; exit 1
82
+ fi
83
+
70
84
  - name: List dist directory
71
- run: tree --du -shaC .
85
+ run: ls -lh dist
72
86
 
73
87
  - name: create release body
74
88
  uses: softprops/action-gh-release@v3
@@ -87,3 +101,7 @@ jobs:
87
101
  with:
88
102
  password: ${{ secrets.PYPI_PASSWORD }}
89
103
  user: ${{ secrets.PYPI_USERNAME }}
104
+ packages-dir: dist
105
+ skip-existing: true
106
+ # attestations need Trusted Publishing; they are ignored when a password is used
107
+ attestations: false
@@ -0,0 +1,103 @@
1
+ name: python build wheels
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ workflow_call:
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ env:
10
+ FORCE_COLOR: 3
11
+
12
+ concurrency:
13
+ group: wheels-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ build_sdist:
18
+ name: Build SDist
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v6
22
+ with:
23
+ submodules: false
24
+
25
+ - uses: actions/setup-python@v6
26
+ with:
27
+ python-version: "3.11"
28
+ cache: "pip"
29
+
30
+ - name: Build SDist
31
+ run: pipx run build --sdist
32
+
33
+ - name: Check metadata
34
+ run: pipx run twine check dist/*
35
+
36
+ - uses: actions/upload-artifact@v7
37
+ with:
38
+ name: wheelhouse-sdist
39
+ path: dist/*.tar.gz
40
+ overwrite: true
41
+
42
+ build_wheels:
43
+ name: Wheels on ${{ matrix.os }}
44
+ runs-on: ${{ matrix.os }}
45
+ # A hung test used to keep this job running for the default 6 hours.
46
+ timeout-minutes: 90
47
+ strategy:
48
+ fail-fast: true
49
+ matrix:
50
+ os: [ubuntu-latest, macos-latest, windows-latest]
51
+
52
+ steps:
53
+ - uses: actions/checkout@v6
54
+ with:
55
+ submodules: recursive
56
+
57
+ - name: Build wheels
58
+ uses: pypa/cibuildwheel@v4.3.1
59
+ env:
60
+ MACOSX_DEPLOYMENT_TARGET: "10.13"
61
+ CIBW_ARCHS_MACOS: universal2
62
+ # Wheel layout (one build per platform for each row):
63
+ # cp39-abi3 every GIL-enabled Python from 3.9 up (the cp39-* selector;
64
+ # see py-api = "cp39" in pyproject.toml).
65
+ # cp313t / cp314t free-threaded 3.13 and 3.14: abi3 cannot be loaded by
66
+ # free-threaded builds, so each gets a version-specific
67
+ # wheel (this is where the no-GIL speed comes from).
68
+ # cp313t is built by the separate cibuildwheel 3.x step below,
69
+ # because cibuildwheel 4.x dropped 3.13 free-threading.
70
+ # cp315t free-threaded 3.15: abi3t (PEP 803, wheel.py-api =
71
+ # "cp315.cp315t" in scikit-build-core >= 1.0) would replace
72
+ # this and all later cpXXXt wheels, but it needs the PEP 793
73
+ # export hook, which released Cython versions do not generate
74
+ # yet. Until then 3.15t keeps a version-specific wheel.
75
+ #
76
+ # Free-threaded builds are enabled by default since cibuildwheel 4 (the old
77
+ # "cpython-freethreading" enable group no longer exists), and 3.15 is built
78
+ # without any prerelease flag.
79
+ CIBW_BUILD: "cp39-* cp314t-* cp315t-*"
80
+ # rpds-py (needed by jsonschema at build time) has no free-threaded wheel in its newest release; prefer an older
81
+ # binary over compiling the newest sdist with Rust.
82
+ CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1
83
+
84
+ # cibuildwheel 4.x no longer supports free-threaded 3.13 (cp313t), so that one wheel
85
+ # comes from the 3.x series. Same wheelhouse/ folder: cibuildwheel never clears the
86
+ # output dir and the filenames differ by tag, so the artifact below stays flat.
87
+ - name: Build wheels (free-threaded 3.13)
88
+ uses: pypa/cibuildwheel@v3.4.1
89
+ env:
90
+ MACOSX_DEPLOYMENT_TARGET: "10.13"
91
+ CIBW_ARCHS_MACOS: universal2
92
+ CIBW_BUILD: "cp313t-*"
93
+ CIBW_ENABLE: cpython-freethreading
94
+ CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1
95
+ CIBW_SKIP: pp*
96
+
97
+ - uses: actions/upload-artifact@v7
98
+ with:
99
+ name: wheelhouse-${{ matrix.os }}
100
+ # A single path keeps the artifact flat (several paths would preserve
101
+ # their parent folders and end up as dist/wheelhouse/... after download).
102
+ path: wheelhouse/*.whl
103
+ overwrite: false
@@ -134,4 +134,4 @@ ehthumbs.db
134
134
  Thumbs.db
135
135
 
136
136
  # Build directory
137
- build/
137
+ *build*/