httpp 0.9.0__tar.gz → 0.10.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 (838) hide show
  1. httpp-0.10.0/.github/workflows/cmake.yml +106 -0
  2. httpp-0.10.0/.github/workflows/docs.yml +52 -0
  3. httpp-0.10.0/.github/workflows/orchestrator.yml +123 -0
  4. httpp-0.10.0/.github/workflows/pages.yml +85 -0
  5. httpp-0.10.0/CHANGELOG.md +654 -0
  6. httpp-0.10.0/CMakeLists.txt +380 -0
  7. httpp-0.10.0/HANDOFF.md +90 -0
  8. httpp-0.10.0/PKG-INFO +768 -0
  9. httpp-0.10.0/README.md +741 -0
  10. httpp-0.10.0/benchmarks/CMakeLists.txt +166 -0
  11. httpp-0.10.0/benchmarks/README.md +62 -0
  12. httpp-0.10.0/benchmarks/cpp/cpp_bench.cpp +49 -0
  13. httpp-0.10.0/benchmarks/fastapi_app.py +56 -0
  14. httpp-0.10.0/benchmarks/results/full/cpp.json +1312 -0
  15. httpp-0.10.0/benchmarks/results/full/py314.json +3744 -0
  16. httpp-0.10.0/benchmarks/results/full/py314t.json +3524 -0
  17. httpp-0.10.0/benchmarks/results/full/system.json +78 -0
  18. httpp-0.10.0/benchmarks/suite.py +772 -0
  19. httpp-0.10.0/benchmarks/suite_app.py +92 -0
  20. httpp-0.10.0/benchmarks/suite_asgi.py +40 -0
  21. httpp-0.10.0/checklist.md +104 -0
  22. httpp-0.10.0/cmake/httppConfig.cmake.in +18 -0
  23. httpp-0.10.0/docs/Architecture.md +410 -0
  24. httpp-0.10.0/docs/adr/0001-own-both-layers.md +33 -0
  25. httpp-0.10.0/docs/adr/0002-standard-asyncio-loop.md +33 -0
  26. httpp-0.10.0/docs/adr/0003-engine-and-third-party.md +38 -0
  27. httpp-0.10.0/docs/adr/0004-zero-system-dependencies.md +22 -0
  28. httpp-0.10.0/docs/adr/0005-multiprocess-workers.md +31 -0
  29. httpp-0.10.0/docs/adr/0006-own-model-layer.md +32 -0
  30. httpp-0.10.0/docs/adr/0007-openapi-and-swagger.md +183 -0
  31. httpp-0.10.0/docs/adr/0009-hot-path.md +29 -0
  32. httpp-0.10.0/docs/adr/0011-logging.md +368 -0
  33. httpp-0.10.0/docs/adr/0012-run-wins-over-listen.md +35 -0
  34. httpp-0.10.0/docs/adr/0013-packaging.md +25 -0
  35. httpp-0.10.0/docs/adr/0015-testing-and-ci.md +52 -0
  36. httpp-0.10.0/docs/adr/0016-dual-api.md +220 -0
  37. httpp-0.10.0/docs/adr/0020-http-exception-and-response-classes.md +35 -0
  38. httpp-0.10.0/docs/adr/0023-inline-async-handlers.md +79 -0
  39. httpp-0.10.0/docs/adr/0024-io-threads-and-defaults.md +270 -0
  40. httpp-0.10.0/docs/adr/0026-websocket.md +280 -0
  41. httpp-0.10.0/docs/adr/0028-autobahn-called-by-the-orchestrator.md +27 -0
  42. httpp-0.10.0/docs/adr/0029-incremental-utf8-validation.md +30 -0
  43. httpp-0.10.0/docs/adr/0030-benchmarks-built-by-cmake.md +36 -0
  44. httpp-0.10.0/docs/adr/0031-compressed-embedded-files.md +50 -0
  45. httpp-0.10.0/docs/adr/0032-file-browser.md +198 -0
  46. httpp-0.10.0/docs/adr/0037-middleware-through-use.md +43 -0
  47. httpp-0.10.0/docs/adr/0041-command-line.md +150 -0
  48. httpp-0.10.0/docs/adr/0042-test-client.md +105 -0
  49. httpp-0.10.0/docs/adr/0049-split-the-cython-module-into-pxi-files.md +21 -0
  50. httpp-0.10.0/docs/adr/0051-cpp-httplib-retired.md +128 -0
  51. httpp-0.10.0/docs/adr/0054-path-and-file-system.md +113 -0
  52. httpp-0.10.0/docs/adr/0060-docs-site.md +104 -0
  53. httpp-0.10.0/docs/adr/0062-request-names-match-python.md +28 -0
  54. httpp-0.10.0/docs/adr/0063-benchmark-json-and-docs-page.md +36 -0
  55. httpp-0.10.0/docs/adr/0066-option-structs-become-builders.md +28 -0
  56. httpp-0.10.0/docs/adr/0067-url-and-proxy.md +87 -0
  57. httpp-0.10.0/docs/adr/0071-client-pool-keeps-every-connection-of-a-burst.md +42 -0
  58. httpp-0.10.0/docs/adr/0074-callback-handler-can-run-unserialized.md +40 -0
  59. httpp-0.10.0/docs/adr/0077-curl-command.md +156 -0
  60. httpp-0.10.0/docs/adr/0079-request-redirects-timeout-compression.md +79 -0
  61. httpp-0.10.0/docs/adr/0081-server-is-a-shared-handle.md +44 -0
  62. httpp-0.10.0/docs/adr/0086-httpp-utils-base-library.md +36 -0
  63. httpp-0.10.0/docs/adr/0092-settings-names.md +213 -0
  64. httpp-0.10.0/docs/adr/0093-client-handles-and-settings-mixin.md +264 -0
  65. httpp-0.10.0/docs/adr/0095-limit-and-unlimited-for-no-limit-settings.md +60 -0
  66. httpp-0.10.0/docs/adr/0097-library-elapsed-retry-and-save.md +190 -0
  67. httpp-0.10.0/docs/adr/0106-direct-scheme-is-no-proxy.md +51 -0
  68. httpp-0.10.0/docs/adr/0107-environment-variables.md +52 -0
  69. httpp-0.10.0/docs/adr/0108-resource-limits-and-request-checks.md +31 -0
  70. httpp-0.10.0/docs/adr/0109-download-on-retry-and-the-download-retry-flags.md +38 -0
  71. httpp-0.10.0/docs/adr/0110-waits-take-a-fraction-of-a-second.md +37 -0
  72. httpp-0.10.0/docs/adr/0111-port-0-for-the-native-commands.md +34 -0
  73. httpp-0.10.0/docs/adr/0112-a-stopped-server-must-not-be-in-a-reference-cycle.md +101 -0
  74. httpp-0.10.0/docs/adr/0113-client-uploads-streamed-bodies-and-multipart.md +41 -0
  75. httpp-0.10.0/docs/adr/0114-a-streamed-body-is-read-one-piece-ahead.md +53 -0
  76. httpp-0.10.0/docs/adr/0115-a-served-file-is-read-from-one-open-handle.md +43 -0
  77. httpp-0.10.0/docs/adr/0116-a-served-file-is-sent-with-sendfile-where-the-socket-is-plain.md +50 -0
  78. httpp-0.10.0/docs/adr/0117-path-gets-parts-relative-to-match-and-a-small-glob.md +36 -0
  79. httpp-0.10.0/docs/adr/0118-str-cat-str-cat-to-and-print.md +44 -0
  80. httpp-0.10.0/docs/adr/README.md +106 -0
  81. httpp-0.10.0/docs/site/README.md +47 -0
  82. httpp-0.10.0/docs/site/docs/benchmarks.mdx +58 -0
  83. httpp-0.10.0/docs/site/docs/client/curl-command.mdx +110 -0
  84. httpp-0.10.0/docs/site/docs/client/download.mdx +91 -0
  85. httpp-0.10.0/docs/site/docs/client/get-request.mdx +39 -0
  86. httpp-0.10.0/docs/site/docs/client/post-request.mdx +48 -0
  87. httpp-0.10.0/docs/site/docs/client/upload.mdx +106 -0
  88. httpp-0.10.0/docs/site/docs/intro.mdx +29 -0
  89. httpp-0.10.0/docs/site/docs/no-asgi.mdx +58 -0
  90. httpp-0.10.0/docs/site/docs/server/browse/01-list-light.png +0 -0
  91. httpp-0.10.0/docs/site/docs/server/browse/02-list-dark.png +0 -0
  92. httpp-0.10.0/docs/site/docs/server/browse/03-grid-light.png +0 -0
  93. httpp-0.10.0/docs/site/docs/server/browse/04-selection.png +0 -0
  94. httpp-0.10.0/docs/site/docs/server/browse/05-context-menu.png +0 -0
  95. httpp-0.10.0/docs/site/docs/server/browse/06-preview-text.png +0 -0
  96. httpp-0.10.0/docs/site/docs/server/browse/07-preview-svg.png +0 -0
  97. httpp-0.10.0/docs/site/docs/server/browse/08-search.png +0 -0
  98. httpp-0.10.0/docs/site/docs/server/browse/09-folder.png +0 -0
  99. httpp-0.10.0/docs/site/docs/server/browse/10-mobile-dark.png +0 -0
  100. httpp-0.10.0/docs/site/docs/server/browse/11-no-dates.png +0 -0
  101. httpp-0.10.0/docs/site/docs/server/errors.mdx +86 -0
  102. httpp-0.10.0/docs/site/docs/server/file-browser.mdx +225 -0
  103. httpp-0.10.0/docs/site/docs/server/get-route.mdx +63 -0
  104. httpp-0.10.0/docs/site/docs/server/hooks.mdx +47 -0
  105. httpp-0.10.0/docs/site/docs/server/request-data.mdx +60 -0
  106. httpp-0.10.0/docs/site/docs/server/responses.mdx +60 -0
  107. httpp-0.10.0/docs/site/docs/server/send-file.mdx +47 -0
  108. httpp-0.10.0/docs/site/docs/server/serve-directory.mdx +110 -0
  109. httpp-0.10.0/docs/site/docs/server/server-handle.mdx +88 -0
  110. httpp-0.10.0/docs/site/docs/server/swagger/01-overview.png +0 -0
  111. httpp-0.10.0/docs/site/docs/server/swagger/02-parameters.png +0 -0
  112. httpp-0.10.0/docs/site/docs/server/swagger/03-request-body.png +0 -0
  113. httpp-0.10.0/docs/site/docs/server/swagger/04-try-it-200.png +0 -0
  114. httpp-0.10.0/docs/site/docs/server/swagger/05-try-it-404.png +0 -0
  115. httpp-0.10.0/docs/site/docs/server/swagger/06-try-it-422.png +0 -0
  116. httpp-0.10.0/docs/site/docs/server/swagger/07-schemas.png +0 -0
  117. httpp-0.10.0/docs/site/docs/server/swagger/08-mobile.png +0 -0
  118. httpp-0.10.0/docs/site/docs/server/swagger.mdx +246 -0
  119. httpp-0.10.0/docs/site/docusaurus.config.ts +46 -0
  120. httpp-0.10.0/docs/site/scripts/prepare.py +144 -0
  121. httpp-0.10.0/docs/site/sidebars.ts +22 -0
  122. httpp-0.10.0/docs/site/src/components/Differ.module.css +91 -0
  123. httpp-0.10.0/docs/site/src/components/Differ.tsx +48 -0
  124. httpp-0.10.0/docs/site/src/components/Grid.module.css +88 -0
  125. httpp-0.10.0/docs/site/src/components/Grid.tsx +59 -0
  126. httpp-0.10.0/docs/site/src/components/Lang.module.css +74 -0
  127. httpp-0.10.0/docs/site/src/components/Lang.tsx +58 -0
  128. httpp-0.10.0/docs/site/src/components/LangSwitch.module.css +9 -0
  129. httpp-0.10.0/docs/site/src/css/custom.css +64 -0
  130. httpp-0.10.0/docs/site/src/pages/index.module.css +83 -0
  131. httpp-0.10.0/docs/site/src/pages/index.tsx +106 -0
  132. httpp-0.10.0/docs/site/static/img/favicon.svg +5 -0
  133. httpp-0.10.0/docs/site/static/img/logo-dark.svg +1 -0
  134. httpp-0.10.0/docs/site/static/img/logo.svg +1 -0
  135. httpp-0.10.0/docs/site/static/img/social-card.png +0 -0
  136. httpp-0.10.0/examples/download/README.md +22 -0
  137. httpp-0.10.0/examples/download/cpp/async.cpp +12 -0
  138. httpp-0.10.0/examples/download/cpp/main.cpp +7 -0
  139. httpp-0.10.0/examples/download/cpp/verified.cpp +15 -0
  140. httpp-0.10.0/examples/errors/README.md +28 -0
  141. httpp-0.10.0/examples/errors/cpp/http_exception.cpp +17 -0
  142. httpp-0.10.0/examples/errors/cpp/main.cpp +42 -0
  143. httpp-0.10.0/examples/errors/python/http_exception.py +20 -0
  144. httpp-0.10.0/examples/errors/python/main.py +35 -0
  145. httpp-0.10.0/examples/file_browser/README.md +24 -0
  146. httpp-0.10.0/examples/file_browser/cpp/main.cpp +10 -0
  147. httpp-0.10.0/examples/file_browser/python/main.py +7 -0
  148. httpp-0.10.0/examples/find_httpp_via_python/main.cpp +7 -0
  149. httpp-0.10.0/examples/get_request/README.md +17 -0
  150. httpp-0.10.0/examples/get_request/cpp/main.cpp +11 -0
  151. httpp-0.10.0/examples/get_route/README.md +21 -0
  152. httpp-0.10.0/examples/get_route/cpp/main.cpp +11 -0
  153. httpp-0.10.0/examples/hooks/README.md +22 -0
  154. httpp-0.10.0/examples/hooks/cpp/main.cpp +22 -0
  155. httpp-0.10.0/examples/post_request/README.md +17 -0
  156. httpp-0.10.0/examples/post_request/cpp/main.cpp +12 -0
  157. httpp-0.10.0/examples/request_data/README.md +24 -0
  158. httpp-0.10.0/examples/request_data/cpp/main.cpp +28 -0
  159. httpp-0.10.0/examples/request_data/python/main.py +29 -0
  160. httpp-0.10.0/examples/responses/README.md +23 -0
  161. httpp-0.10.0/examples/responses/cpp/main.cpp +22 -0
  162. httpp-0.10.0/examples/send_file/README.md +23 -0
  163. httpp-0.10.0/examples/serve_directory/README.md +23 -0
  164. httpp-0.10.0/examples/server_handle/README.md +28 -0
  165. httpp-0.10.0/examples/server_handle/cpp/main.cpp +9 -0
  166. httpp-0.10.0/examples/server_handle/cpp/mount_into.cpp +10 -0
  167. httpp-0.10.0/examples/server_handle/cpp/stop.cpp +15 -0
  168. httpp-0.10.0/examples/server_handle/python/main.py +8 -0
  169. httpp-0.10.0/examples/server_handle/python/mount_into.py +13 -0
  170. httpp-0.10.0/examples/server_handle/python/stop.py +13 -0
  171. httpp-0.10.0/examples/swagger/README.md +27 -0
  172. httpp-0.10.0/examples/swagger/cpp/auto_document.cpp +161 -0
  173. httpp-0.10.0/examples/swagger/cpp/main.cpp +26 -0
  174. httpp-0.10.0/examples/swagger/python/auto_document.py +75 -0
  175. httpp-0.10.0/examples/swagger/python/main.py +36 -0
  176. httpp-0.10.0/examples/upload/README.md +21 -0
  177. httpp-0.10.0/examples/upload/cpp/main.cpp +12 -0
  178. httpp-0.10.0/examples/upload/cpp/progress.cpp +15 -0
  179. httpp-0.10.0/examples/upload/python/main.py +13 -0
  180. httpp-0.10.0/examples/upload/python/progress.py +12 -0
  181. httpp-0.10.0/include/httpp/banner.hpp +19 -0
  182. httpp-0.10.0/include/httpp/client.hpp +611 -0
  183. httpp-0.10.0/include/httpp/cookie.hpp +53 -0
  184. httpp-0.10.0/include/httpp/download.hpp +170 -0
  185. httpp-0.10.0/include/httpp/export.hpp +64 -0
  186. httpp-0.10.0/include/httpp/file_browser.hpp +96 -0
  187. httpp-0.10.0/include/httpp/file_lock.hpp +49 -0
  188. httpp-0.10.0/include/httpp/logging.hpp +693 -0
  189. httpp-0.10.0/include/httpp/middleware.hpp +156 -0
  190. httpp-0.10.0/include/httpp/openapi.hpp +186 -0
  191. httpp-0.10.0/include/httpp/path.hpp +281 -0
  192. httpp-0.10.0/include/httpp/progress.hpp +86 -0
  193. httpp-0.10.0/include/httpp/proxy.hpp +36 -0
  194. httpp-0.10.0/include/httpp/route_pattern.hpp +95 -0
  195. httpp-0.10.0/include/httpp/router.hpp +77 -0
  196. httpp-0.10.0/include/httpp/server.hpp +468 -0
  197. httpp-0.10.0/include/httpp/sha256.hpp +5 -0
  198. httpp-0.10.0/include/httpp/str_cat.hpp +180 -0
  199. httpp-0.10.0/include/httpp/swagger.hpp +58 -0
  200. httpp-0.10.0/include/httpp/url.hpp +85 -0
  201. httpp-0.10.0/include/httpp/utils.hpp +110 -0
  202. httpp-0.10.0/include/httpp/websocket.hpp +107 -0
  203. httpp-0.10.0/include/httpp.h +60 -0
  204. httpp-0.10.0/pyproject.toml +138 -0
  205. httpp-0.10.0/src/assets/file_browser.html +645 -0
  206. httpp-0.10.0/src/bindings/python/CMakeLists.txt +178 -0
  207. httpp-0.10.0/src/bindings/python/cy/async_routes.pxi +509 -0
  208. httpp-0.10.0/src/bindings/python/cy/client.pxi +419 -0
  209. httpp-0.10.0/src/bindings/python/cy/cookie.pxi +68 -0
  210. httpp-0.10.0/src/bindings/python/cy/declarations.pxi +436 -0
  211. httpp-0.10.0/src/bindings/python/cy/directory.pxi +62 -0
  212. httpp-0.10.0/src/bindings/python/cy/file_browser.pxi +147 -0
  213. httpp-0.10.0/src/bindings/python/cy/file_lock.pxi +58 -0
  214. httpp-0.10.0/src/bindings/python/cy/openapi.pxi +177 -0
  215. httpp-0.10.0/src/bindings/python/cy/request.pxi +280 -0
  216. httpp-0.10.0/src/bindings/python/cy/server.pxi +307 -0
  217. httpp-0.10.0/src/bindings/python/cy/support.pxi +265 -0
  218. httpp-0.10.0/src/bindings/python/cy/swagger.pxi +31 -0
  219. httpp-0.10.0/src/bindings/python/cy/transfer.pxi +1054 -0
  220. httpp-0.10.0/src/bindings/python/httpp/__init__.py +78 -0
  221. httpp-0.10.0/src/bindings/python/httpp/_http.py +73 -0
  222. httpp-0.10.0/src/bindings/python/httpp/_log.py +168 -0
  223. httpp-0.10.0/src/bindings/python/httpp/_params.py +542 -0
  224. httpp-0.10.0/src/bindings/python/httpp/_router.py +134 -0
  225. httpp-0.10.0/src/bindings/python/httpp/_run.py +321 -0
  226. httpp-0.10.0/src/bindings/python/httpp/_schema.py +456 -0
  227. httpp-0.10.0/src/bindings/python/httpp/_websocket.py +187 -0
  228. httpp-0.10.0/src/bindings/python/httpp/middleware.py +173 -0
  229. httpp-0.10.0/src/bindings/python/httpp/openapi.py +15 -0
  230. httpp-0.10.0/src/bindings/python/httpp/progress.py +34 -0
  231. httpp-0.10.0/src/bindings/python/httpp/security.py +97 -0
  232. httpp-0.10.0/src/bindings/python/httpp/server.py +1509 -0
  233. httpp-0.10.0/src/bindings/python/httpp/testclient.py +689 -0
  234. httpp-0.10.0/src/bindings/python/httpp/utils.py +14 -0
  235. httpp-0.10.0/src/bindings/python/httpp_cli.py +79 -0
  236. httpp-0.10.0/src/bindings/python/httpp_python.pyx +38 -0
  237. httpp-0.10.0/src/bindings/python/httpp_utils_python.pyx +235 -0
  238. httpp-0.10.0/src/cli/httpp_cli.cpp +1114 -0
  239. httpp-0.10.0/src/core/async_http.cpp +895 -0
  240. httpp-0.10.0/src/core/async_server.cpp +1513 -0
  241. httpp-0.10.0/src/core/banner.cpp +42 -0
  242. httpp-0.10.0/src/core/body_source.cpp +206 -0
  243. httpp-0.10.0/src/core/client.cpp +576 -0
  244. httpp-0.10.0/src/core/cookie.cpp +99 -0
  245. httpp-0.10.0/src/core/download.cpp +483 -0
  246. httpp-0.10.0/src/core/file_browser.cpp +464 -0
  247. httpp-0.10.0/src/core/file_lock.cpp +132 -0
  248. httpp-0.10.0/src/core/form.cpp +224 -0
  249. httpp-0.10.0/src/core/http_exchange.cpp +455 -0
  250. httpp-0.10.0/src/core/internal/async_http.hpp +153 -0
  251. httpp-0.10.0/src/core/internal/async_server.hpp +170 -0
  252. httpp-0.10.0/src/core/internal/basic_credentials.hpp +67 -0
  253. httpp-0.10.0/src/core/internal/body_source.hpp +33 -0
  254. httpp-0.10.0/src/core/internal/checksums.hpp +48 -0
  255. httpp-0.10.0/src/core/internal/file_writer.hpp +98 -0
  256. httpp-0.10.0/src/core/internal/http_exchange.hpp +240 -0
  257. httpp-0.10.0/src/core/internal/http_reason.hpp +46 -0
  258. httpp-0.10.0/src/core/internal/response_compression.hpp +31 -0
  259. httpp-0.10.0/src/core/internal/thread_exit.hpp +20 -0
  260. httpp-0.10.0/src/core/internal/urlencoded.hpp +23 -0
  261. httpp-0.10.0/src/core/internal/websocket.hpp +135 -0
  262. httpp-0.10.0/src/core/internal/worker_pool.hpp +209 -0
  263. httpp-0.10.0/src/core/internal/zip_stream.hpp +247 -0
  264. httpp-0.10.0/src/core/middleware.cpp +574 -0
  265. httpp-0.10.0/src/core/openapi.cpp +433 -0
  266. httpp-0.10.0/src/core/proxy.cpp +124 -0
  267. httpp-0.10.0/src/core/router.cpp +100 -0
  268. httpp-0.10.0/src/core/server.cpp +1619 -0
  269. httpp-0.10.0/src/core/swagger.cpp +155 -0
  270. httpp-0.10.0/src/core/tls_session.cpp +293 -0
  271. httpp-0.10.0/src/core/url.cpp +81 -0
  272. httpp-0.10.0/src/core/websocket.cpp +437 -0
  273. httpp-0.10.0/src/third_party/swagger-ui/VENDORED.md +10 -0
  274. httpp-0.10.0/src/utils/internal/logging.hpp +27 -0
  275. httpp-0.10.0/src/utils/internal/windows_text.hpp +39 -0
  276. httpp-0.10.0/src/utils/logging.cpp +973 -0
  277. httpp-0.10.0/src/utils/path.cpp +591 -0
  278. httpp-0.10.0/src/utils/progress.cpp +62 -0
  279. httpp-0.10.0/src/utils/utils.cpp +252 -0
  280. httpp-0.10.0/tests/CMakeLists.txt +23 -0
  281. httpp-0.10.0/tests/cmake/consumer_project/main.cpp +113 -0
  282. httpp-0.10.0/tests/cpp/CMakeLists.txt +59 -0
  283. httpp-0.10.0/tests/cpp/swagger_original.hpp +16 -0
  284. httpp-0.10.0/tests/cpp/test_async_https.cpp +272 -0
  285. httpp-0.10.0/tests/cpp/test_async_pool_proxy.cpp +725 -0
  286. httpp-0.10.0/tests/cpp/test_async_server.cpp +1005 -0
  287. httpp-0.10.0/tests/cpp/test_async_stream.cpp +155 -0
  288. httpp-0.10.0/tests/cpp/test_certs.hpp +61 -0
  289. httpp-0.10.0/tests/cpp/test_client.cpp +92 -0
  290. httpp-0.10.0/tests/cpp/test_client_async_engine.cpp +358 -0
  291. httpp-0.10.0/tests/cpp/test_client_blocking_engine.cpp +171 -0
  292. httpp-0.10.0/tests/cpp/test_client_encoding.cpp +182 -0
  293. httpp-0.10.0/tests/cpp/test_client_handle.cpp +214 -0
  294. httpp-0.10.0/tests/cpp/test_client_max_time.cpp +166 -0
  295. httpp-0.10.0/tests/cpp/test_client_request.cpp +220 -0
  296. httpp-0.10.0/tests/cpp/test_client_request_stream.cpp +175 -0
  297. httpp-0.10.0/tests/cpp/test_client_retry.cpp +277 -0
  298. httpp-0.10.0/tests/cpp/test_client_save_to.cpp +261 -0
  299. httpp-0.10.0/tests/cpp/test_client_session.cpp +286 -0
  300. httpp-0.10.0/tests/cpp/test_client_upload.cpp +182 -0
  301. httpp-0.10.0/tests/cpp/test_clone.cpp +238 -0
  302. httpp-0.10.0/tests/cpp/test_cookie.cpp +90 -0
  303. httpp-0.10.0/tests/cpp/test_download.cpp +478 -0
  304. httpp-0.10.0/tests/cpp/test_download_retry.cpp +221 -0
  305. httpp-0.10.0/tests/cpp/test_download_settings.cpp +149 -0
  306. httpp-0.10.0/tests/cpp/test_download_transfer.cpp +182 -0
  307. httpp-0.10.0/tests/cpp/test_file_browser.cpp +691 -0
  308. httpp-0.10.0/tests/cpp/test_file_lock.cpp +148 -0
  309. httpp-0.10.0/tests/cpp/test_form.cpp +177 -0
  310. httpp-0.10.0/tests/cpp/test_http_exception.cpp +97 -0
  311. httpp-0.10.0/tests/cpp/test_logging_module.cpp +781 -0
  312. httpp-0.10.0/tests/cpp/test_logging_os.cpp +177 -0
  313. httpp-0.10.0/tests/cpp/test_mountable.cpp +141 -0
  314. httpp-0.10.0/tests/cpp/test_openapi.cpp +292 -0
  315. httpp-0.10.0/tests/cpp/test_path.cpp +653 -0
  316. httpp-0.10.0/tests/cpp/test_path_reader.cpp +87 -0
  317. httpp-0.10.0/tests/cpp/test_progress.cpp +43 -0
  318. httpp-0.10.0/tests/cpp/test_proxy.cpp +244 -0
  319. httpp-0.10.0/tests/cpp/test_router.cpp +123 -0
  320. httpp-0.10.0/tests/cpp/test_server.cpp +529 -0
  321. httpp-0.10.0/tests/cpp/test_server_compression.cpp +93 -0
  322. httpp-0.10.0/tests/cpp/test_server_conditional.cpp +231 -0
  323. httpp-0.10.0/tests/cpp/test_server_features.cpp +402 -0
  324. httpp-0.10.0/tests/cpp/test_server_io_routes.cpp +404 -0
  325. httpp-0.10.0/tests/cpp/test_server_io_threads.cpp +191 -0
  326. httpp-0.10.0/tests/cpp/test_server_lifecycle.cpp +259 -0
  327. httpp-0.10.0/tests/cpp/test_server_middleware.cpp +503 -0
  328. httpp-0.10.0/tests/cpp/test_server_routing.cpp +291 -0
  329. httpp-0.10.0/tests/cpp/test_server_shutdown.cpp +222 -0
  330. httpp-0.10.0/tests/cpp/test_server_tls.cpp +287 -0
  331. httpp-0.10.0/tests/cpp/test_server_websocket.cpp +723 -0
  332. httpp-0.10.0/tests/cpp/test_show_dates.cpp +129 -0
  333. httpp-0.10.0/tests/cpp/test_str_cat.cpp +148 -0
  334. httpp-0.10.0/tests/cpp/test_str_cat_no_print.cpp +26 -0
  335. httpp-0.10.0/tests/cpp/test_swagger_ui.cpp +65 -0
  336. httpp-0.10.0/tests/cpp/test_swagger_ui_route.cpp +146 -0
  337. httpp-0.10.0/tests/cpp/test_thread_exit_hook.cpp +46 -0
  338. httpp-0.10.0/tests/cpp/test_url.cpp +219 -0
  339. httpp-0.10.0/tests/cpp/test_utils.cpp +274 -0
  340. httpp-0.10.0/tests/cpp/test_worker_pool.cpp +231 -0
  341. httpp-0.10.0/tests/cpp/tls_test_server.hpp +163 -0
  342. httpp-0.10.0/tests/python/conftest.py +228 -0
  343. httpp-0.10.0/tests/python/test_async_engine.py +210 -0
  344. httpp-0.10.0/tests/python/test_auth_rate_limit.py +156 -0
  345. httpp-0.10.0/tests/python/test_builders.py +236 -0
  346. httpp-0.10.0/tests/python/test_cli.py +1522 -0
  347. httpp-0.10.0/tests/python/test_client.py +390 -0
  348. httpp-0.10.0/tests/python/test_client_encoding.py +115 -0
  349. httpp-0.10.0/tests/python/test_client_keep_alive.py +45 -0
  350. httpp-0.10.0/tests/python/test_client_upload.py +198 -0
  351. httpp-0.10.0/tests/python/test_cookies.py +47 -0
  352. httpp-0.10.0/tests/python/test_download_progress_url.py +308 -0
  353. httpp-0.10.0/tests/python/test_download_settings.py +97 -0
  354. httpp-0.10.0/tests/python/test_download_sha256.py +150 -0
  355. httpp-0.10.0/tests/python/test_embed_file.py +122 -0
  356. httpp-0.10.0/tests/python/test_examples.py +485 -0
  357. httpp-0.10.0/tests/python/test_file_browser.py +392 -0
  358. httpp-0.10.0/tests/python/test_file_lock.py +108 -0
  359. httpp-0.10.0/tests/python/test_httpp_basic.py +115 -0
  360. httpp-0.10.0/tests/python/test_httpp_routes.py +670 -0
  361. httpp-0.10.0/tests/python/test_inline_async.py +245 -0
  362. httpp-0.10.0/tests/python/test_io_threads.py +177 -0
  363. httpp-0.10.0/tests/python/test_log.py +123 -0
  364. httpp-0.10.0/tests/python/test_log_bridge.py +133 -0
  365. httpp-0.10.0/tests/python/test_log_bridge_any_logger.py +155 -0
  366. httpp-0.10.0/tests/python/test_log_one_registry.py +36 -0
  367. httpp-0.10.0/tests/python/test_loopback.py +106 -0
  368. httpp-0.10.0/tests/python/test_openapi.py +300 -0
  369. httpp-0.10.0/tests/python/test_openapi_document.py +272 -0
  370. httpp-0.10.0/tests/python/test_openapi_security.py +148 -0
  371. httpp-0.10.0/tests/python/test_params_depends.py +387 -0
  372. httpp-0.10.0/tests/python/test_path_templates.py +38 -0
  373. httpp-0.10.0/tests/python/test_pathlib.py +84 -0
  374. httpp-0.10.0/tests/python/test_pool_thread_state.py +78 -0
  375. httpp-0.10.0/tests/python/test_proxy.py +89 -0
  376. httpp-0.10.0/tests/python/test_query_encoding.py +48 -0
  377. httpp-0.10.0/tests/python/test_reload.py +135 -0
  378. httpp-0.10.0/tests/python/test_request_limits.py +130 -0
  379. httpp-0.10.0/tests/python/test_request_streaming.py +260 -0
  380. httpp-0.10.0/tests/python/test_responses.py +262 -0
  381. httpp-0.10.0/tests/python/test_server_features.py +1112 -0
  382. httpp-0.10.0/tests/python/test_server_lifetime.py +263 -0
  383. httpp-0.10.0/tests/python/test_testclient.py +536 -0
  384. httpp-0.10.0/tests/python/test_tls.py +183 -0
  385. httpp-0.10.0/tests/python/test_websocket.py +540 -0
  386. httpp-0.10.0/tests/python/test_websocket_router.py +320 -0
  387. httpp-0.10.0/tests/utils/CMakeLists.txt +34 -0
  388. httpp-0.10.0/tests/utils/check_needed.cmake +28 -0
  389. httpp-0.10.0/tests/utils/fast_path.cpp +119 -0
  390. httpp-0.10.0/tests/utils/one_registry.cpp +32 -0
  391. httpp-0.10.0/tests/utils/registry_probe.cpp +12 -0
  392. httpp-0.10.0/tests/utils/utils_consumer.cpp +41 -0
  393. httpp-0.9.0/.github/workflows/cmake.yml +0 -103
  394. httpp-0.9.0/.github/workflows/docs.yml +0 -47
  395. httpp-0.9.0/.github/workflows/orchestrator.yml +0 -113
  396. httpp-0.9.0/.github/workflows/pages.yml +0 -61
  397. httpp-0.9.0/CHANGELOG.md +0 -501
  398. httpp-0.9.0/CMakeLists.txt +0 -321
  399. httpp-0.9.0/HANDOFF.md +0 -180
  400. httpp-0.9.0/PKG-INFO +0 -645
  401. httpp-0.9.0/README.md +0 -618
  402. httpp-0.9.0/benchmarks/CMakeLists.txt +0 -166
  403. httpp-0.9.0/benchmarks/README.md +0 -58
  404. httpp-0.9.0/benchmarks/cpp/cpp_bench.cpp +0 -49
  405. httpp-0.9.0/benchmarks/fastapi_app.py +0 -27
  406. httpp-0.9.0/benchmarks/results/full/cpp.json +0 -1312
  407. httpp-0.9.0/benchmarks/results/full/py314.json +0 -2864
  408. httpp-0.9.0/benchmarks/results/full/py314t.json +0 -2644
  409. httpp-0.9.0/benchmarks/results/full/system.json +0 -73
  410. httpp-0.9.0/benchmarks/suite.py +0 -729
  411. httpp-0.9.0/benchmarks/suite_app.py +0 -64
  412. httpp-0.9.0/benchmarks/suite_asgi.py +0 -28
  413. httpp-0.9.0/checklist.md +0 -102
  414. httpp-0.9.0/cmake/httppConfig.cmake.in +0 -8
  415. httpp-0.9.0/docs/Architecture.md +0 -410
  416. httpp-0.9.0/docs/adr/0001-own-both-layers.md +0 -33
  417. httpp-0.9.0/docs/adr/0002-standard-asyncio-loop.md +0 -33
  418. httpp-0.9.0/docs/adr/0003-engine-and-third-party.md +0 -38
  419. httpp-0.9.0/docs/adr/0004-zero-system-dependencies.md +0 -22
  420. httpp-0.9.0/docs/adr/0005-multiprocess-workers.md +0 -31
  421. httpp-0.9.0/docs/adr/0006-own-model-layer.md +0 -32
  422. httpp-0.9.0/docs/adr/0007-openapi-from-one-plan.md +0 -28
  423. httpp-0.9.0/docs/adr/0008-swagger-ui-compiled-in.md +0 -35
  424. httpp-0.9.0/docs/adr/0009-hot-path.md +0 -29
  425. httpp-0.9.0/docs/adr/0011-logging.md +0 -41
  426. httpp-0.9.0/docs/adr/0012-run-wins-over-listen.md +0 -35
  427. httpp-0.9.0/docs/adr/0013-packaging.md +0 -25
  428. httpp-0.9.0/docs/adr/0015-testing-and-ci.md +0 -52
  429. httpp-0.9.0/docs/adr/0016-hybrid-api-parity.md +0 -49
  430. httpp-0.9.0/docs/adr/0017-python-binding-policy.md +0 -44
  431. httpp-0.9.0/docs/adr/0018-python-logging-bridge.md +0 -50
  432. httpp-0.9.0/docs/adr/0020-http-exception-and-response-classes.md +0 -33
  433. httpp-0.9.0/docs/adr/0022-dual-api-rule-and-delegated-decisions.md +0 -109
  434. httpp-0.9.0/docs/adr/0023-inline-async-handlers.md +0 -79
  435. httpp-0.9.0/docs/adr/0024-io-threads-and-lanes.md +0 -50
  436. httpp-0.9.0/docs/adr/0025-measured-defaults-on-16-threads.md +0 -155
  437. httpp-0.9.0/docs/adr/0026-websocket.md +0 -111
  438. httpp-0.9.0/docs/adr/0027-websocket-python-and-async-handshake.md +0 -79
  439. httpp-0.9.0/docs/adr/0028-autobahn-called-by-the-orchestrator.md +0 -27
  440. httpp-0.9.0/docs/adr/0029-incremental-utf8-validation.md +0 -30
  441. httpp-0.9.0/docs/adr/0030-benchmarks-built-by-cmake.md +0 -36
  442. httpp-0.9.0/docs/adr/0031-compressed-embedded-files.md +0 -50
  443. httpp-0.9.0/docs/adr/0032-read-only-file-browser.md +0 -65
  444. httpp-0.9.0/docs/adr/0037-middleware-through-use.md +0 -36
  445. httpp-0.9.0/docs/adr/0041-native-cli-and-py.md +0 -59
  446. httpp-0.9.0/docs/adr/0042-test-client.md +0 -46
  447. httpp-0.9.0/docs/adr/0043-websocket-close-1001-on-drain.md +0 -45
  448. httpp-0.9.0/docs/adr/0046-testclient-websocket-and-files.md +0 -43
  449. httpp-0.9.0/docs/adr/0048-websocket-on-routers-and-dependencies.md +0 -26
  450. httpp-0.9.0/docs/adr/0049-split-the-cython-module-into-pxi-files.md +0 -21
  451. httpp-0.9.0/docs/adr/0050-own-logging-module-replaces-aixlog.md +0 -28
  452. httpp-0.9.0/docs/adr/0051-sync-client-on-the-async-engine.md +0 -44
  453. httpp-0.9.0/docs/adr/0052-downloads-stream-through-a-body-sink.md +0 -42
  454. httpp-0.9.0/docs/adr/0053-cpp-httplib-removed.md +0 -26
  455. httpp-0.9.0/docs/adr/0054-own-file-system-module.md +0 -37
  456. httpp-0.9.0/docs/adr/0055-httpp-path-class.md +0 -27
  457. httpp-0.9.0/docs/adr/0056-operating-system-log-handlers.md +0 -27
  458. httpp-0.9.0/docs/adr/0057-public-logging-module.md +0 -28
  459. httpp-0.9.0/docs/adr/0058-fs-merged-into-path.md +0 -25
  460. httpp-0.9.0/docs/adr/0059-free-threaded-pool-starts-at-two.md +0 -48
  461. httpp-0.9.0/docs/adr/0060-docs-site.md +0 -32
  462. httpp-0.9.0/docs/adr/0062-request-names-match-python.md +0 -28
  463. httpp-0.9.0/docs/adr/0063-benchmark-json-and-docs-page.md +0 -36
  464. httpp-0.9.0/docs/adr/0064-docs-site-on-github-pages.md +0 -29
  465. httpp-0.9.0/docs/adr/0065-file-browser-builder.md +0 -29
  466. httpp-0.9.0/docs/adr/0066-option-structs-become-builders.md +0 -28
  467. httpp-0.9.0/docs/adr/0067-urls-are-httpp-url-and-proxy-is-a-url.md +0 -28
  468. httpp-0.9.0/docs/adr/0070-file-browser-safe-mode.md +0 -42
  469. httpp-0.9.0/docs/adr/0071-client-pool-keeps-every-connection-of-a-burst.md +0 -42
  470. httpp-0.9.0/docs/adr/README.md +0 -88
  471. httpp-0.9.0/docs/site/README.md +0 -47
  472. httpp-0.9.0/docs/site/docs/benchmarks.mdx +0 -48
  473. httpp-0.9.0/docs/site/docs/client/download.mdx +0 -87
  474. httpp-0.9.0/docs/site/docs/client/get-request.mdx +0 -38
  475. httpp-0.9.0/docs/site/docs/client/post-request.mdx +0 -47
  476. httpp-0.9.0/docs/site/docs/intro.mdx +0 -23
  477. httpp-0.9.0/docs/site/docs/server/file-browser.mdx +0 -76
  478. httpp-0.9.0/docs/site/docs/server/get-route.mdx +0 -46
  479. httpp-0.9.0/docs/site/docs/server/hooks.mdx +0 -46
  480. httpp-0.9.0/docs/site/docs/server/request-data.mdx +0 -47
  481. httpp-0.9.0/docs/site/docs/server/responses.mdx +0 -55
  482. httpp-0.9.0/docs/site/docs/server/send-file.mdx +0 -46
  483. httpp-0.9.0/docs/site/docs/server/serve-directory.mdx +0 -60
  484. httpp-0.9.0/docs/site/docusaurus.config.ts +0 -42
  485. httpp-0.9.0/docs/site/scripts/prepare.py +0 -123
  486. httpp-0.9.0/docs/site/scripts/test_snippets.py +0 -322
  487. httpp-0.9.0/docs/site/sidebars.ts +0 -21
  488. httpp-0.9.0/docs/site/snippets/cpp/client_get.cpp +0 -12
  489. httpp-0.9.0/docs/site/snippets/cpp/client_post.cpp +0 -13
  490. httpp-0.9.0/docs/site/snippets/cpp/download_async.cpp +0 -13
  491. httpp-0.9.0/docs/site/snippets/cpp/download_file.cpp +0 -8
  492. httpp-0.9.0/docs/site/snippets/cpp/download_verified.cpp +0 -15
  493. httpp-0.9.0/docs/site/snippets/cpp/file_browser.cpp +0 -10
  494. httpp-0.9.0/docs/site/snippets/cpp/get_route.cpp +0 -11
  495. httpp-0.9.0/docs/site/snippets/cpp/hooks.cpp +0 -22
  496. httpp-0.9.0/docs/site/snippets/cpp/request_info.cpp +0 -14
  497. httpp-0.9.0/docs/site/snippets/cpp/responses.cpp +0 -22
  498. httpp-0.9.0/docs/site/snippets/python/file_browser.py +0 -7
  499. httpp-0.9.0/docs/site/snippets/python/request_info.py +0 -17
  500. httpp-0.9.0/docs/site/src/components/Lang.module.css +0 -40
  501. httpp-0.9.0/docs/site/src/components/Lang.tsx +0 -45
  502. httpp-0.9.0/docs/site/src/components/LangSwitch.module.css +0 -34
  503. httpp-0.9.0/docs/site/src/css/custom.css +0 -46
  504. httpp-0.9.0/docs/site/static/img/favicon.svg +0 -1
  505. httpp-0.9.0/examples/find_httpp_via_python/main.cpp +0 -8
  506. httpp-0.9.0/examples/python/01_hello_server.py +0 -17
  507. httpp-0.9.0/examples/python/02_path_params.py +0 -24
  508. httpp-0.9.0/examples/python/03_request_object.py +0 -28
  509. httpp-0.9.0/examples/python/04_responses.py +0 -45
  510. httpp-0.9.0/examples/python/05_http_methods.py +0 -49
  511. httpp-0.9.0/examples/python/06_async_handlers.py +0 -38
  512. httpp-0.9.0/examples/python/07_serve_directory.py +0 -23
  513. httpp-0.9.0/examples/python/08_error_handling.py +0 -30
  514. httpp-0.9.0/examples/python/09_client.py +0 -37
  515. httpp-0.9.0/examples/python/10_request_builder.py +0 -44
  516. httpp-0.9.0/examples/python/11_download.py +0 -35
  517. httpp-0.9.0/examples/python/12_hooks_and_settings.py +0 -81
  518. httpp-0.9.0/examples/python/13_streaming_and_files.py +0 -84
  519. httpp-0.9.0/examples/python/14_async_client.py +0 -66
  520. httpp-0.9.0/examples/python/15_progress_and_url.py +0 -31
  521. httpp-0.9.0/include/httpp/client.hpp +0 -306
  522. httpp-0.9.0/include/httpp/curl.hpp +0 -51
  523. httpp-0.9.0/include/httpp/curl_compat.h +0 -102
  524. httpp-0.9.0/include/httpp/download.hpp +0 -131
  525. httpp-0.9.0/include/httpp/export.hpp +0 -30
  526. httpp-0.9.0/include/httpp/file_browser.hpp +0 -70
  527. httpp-0.9.0/include/httpp/log.hpp +0 -51
  528. httpp-0.9.0/include/httpp/logging.hpp +0 -334
  529. httpp-0.9.0/include/httpp/middleware.hpp +0 -104
  530. httpp-0.9.0/include/httpp/path.hpp +0 -152
  531. httpp-0.9.0/include/httpp/progress.hpp +0 -86
  532. httpp-0.9.0/include/httpp/router.hpp +0 -77
  533. httpp-0.9.0/include/httpp/server.hpp +0 -321
  534. httpp-0.9.0/include/httpp/sha256.hpp +0 -25
  535. httpp-0.9.0/include/httpp/swagger_ui.hpp +0 -50
  536. httpp-0.9.0/include/httpp/url.hpp +0 -58
  537. httpp-0.9.0/include/httpp/websocket.hpp +0 -107
  538. httpp-0.9.0/include/httpp.h +0 -58
  539. httpp-0.9.0/pyproject.toml +0 -132
  540. httpp-0.9.0/src/assets/file_browser.html +0 -376
  541. httpp-0.9.0/src/bindings/python/CMakeLists.txt +0 -152
  542. httpp-0.9.0/src/bindings/python/cy/async_routes.pxi +0 -509
  543. httpp-0.9.0/src/bindings/python/cy/client.pxi +0 -308
  544. httpp-0.9.0/src/bindings/python/cy/declarations.pxi +0 -346
  545. httpp-0.9.0/src/bindings/python/cy/directory.pxi +0 -53
  546. httpp-0.9.0/src/bindings/python/cy/file_browser.pxi +0 -116
  547. httpp-0.9.0/src/bindings/python/cy/request.pxi +0 -280
  548. httpp-0.9.0/src/bindings/python/cy/server.pxi +0 -269
  549. httpp-0.9.0/src/bindings/python/cy/support.pxi +0 -222
  550. httpp-0.9.0/src/bindings/python/cy/swagger_ui.pxi +0 -41
  551. httpp-0.9.0/src/bindings/python/cy/transfer.pxi +0 -509
  552. httpp-0.9.0/src/bindings/python/httpp/__init__.py +0 -78
  553. httpp-0.9.0/src/bindings/python/httpp/_http.py +0 -132
  554. httpp-0.9.0/src/bindings/python/httpp/_log.py +0 -86
  555. httpp-0.9.0/src/bindings/python/httpp/_params.py +0 -542
  556. httpp-0.9.0/src/bindings/python/httpp/_router.py +0 -130
  557. httpp-0.9.0/src/bindings/python/httpp/_run.py +0 -321
  558. httpp-0.9.0/src/bindings/python/httpp/_schema.py +0 -429
  559. httpp-0.9.0/src/bindings/python/httpp/_websocket.py +0 -187
  560. httpp-0.9.0/src/bindings/python/httpp/middleware.py +0 -116
  561. httpp-0.9.0/src/bindings/python/httpp/progress.py +0 -34
  562. httpp-0.9.0/src/bindings/python/httpp/server.py +0 -1439
  563. httpp-0.9.0/src/bindings/python/httpp/testclient.py +0 -656
  564. httpp-0.9.0/src/bindings/python/httpp/utils.py +0 -14
  565. httpp-0.9.0/src/bindings/python/httpp_cli.py +0 -79
  566. httpp-0.9.0/src/bindings/python/httpp_cy.pyx +0 -34
  567. httpp-0.9.0/src/cli/httpp_cli.cpp +0 -426
  568. httpp-0.9.0/src/core/async_http.cpp +0 -804
  569. httpp-0.9.0/src/core/async_server.cpp +0 -1272
  570. httpp-0.9.0/src/core/client.cpp +0 -363
  571. httpp-0.9.0/src/core/curl.cpp +0 -51
  572. httpp-0.9.0/src/core/curl_compat.cpp +0 -246
  573. httpp-0.9.0/src/core/download.cpp +0 -520
  574. httpp-0.9.0/src/core/file_browser.cpp +0 -297
  575. httpp-0.9.0/src/core/form.cpp +0 -205
  576. httpp-0.9.0/src/core/http_exchange.cpp +0 -314
  577. httpp-0.9.0/src/core/internal/async_http.hpp +0 -107
  578. httpp-0.9.0/src/core/internal/async_server.hpp +0 -157
  579. httpp-0.9.0/src/core/internal/blocking_pool.hpp +0 -73
  580. httpp-0.9.0/src/core/internal/checksums.hpp +0 -45
  581. httpp-0.9.0/src/core/internal/http_exchange.hpp +0 -143
  582. httpp-0.9.0/src/core/internal/log.hpp +0 -45
  583. httpp-0.9.0/src/core/internal/logging_os.hpp +0 -196
  584. httpp-0.9.0/src/core/internal/response_compression.hpp +0 -31
  585. httpp-0.9.0/src/core/internal/urlencoded.hpp +0 -17
  586. httpp-0.9.0/src/core/internal/websocket.hpp +0 -135
  587. httpp-0.9.0/src/core/internal/worker_pool.hpp +0 -179
  588. httpp-0.9.0/src/core/log.cpp +0 -151
  589. httpp-0.9.0/src/core/logging.cpp +0 -569
  590. httpp-0.9.0/src/core/logging_os.cpp +0 -244
  591. httpp-0.9.0/src/core/middleware.cpp +0 -414
  592. httpp-0.9.0/src/core/path.cpp +0 -247
  593. httpp-0.9.0/src/core/progress.cpp +0 -62
  594. httpp-0.9.0/src/core/router.cpp +0 -100
  595. httpp-0.9.0/src/core/server.cpp +0 -1462
  596. httpp-0.9.0/src/core/sha256.cpp +0 -110
  597. httpp-0.9.0/src/core/swagger_ui.cpp +0 -160
  598. httpp-0.9.0/src/core/tls_session.cpp +0 -283
  599. httpp-0.9.0/src/core/url.cpp +0 -107
  600. httpp-0.9.0/src/core/websocket.cpp +0 -437
  601. httpp-0.9.0/src/third_party/swagger-ui/VENDORED.md +0 -10
  602. httpp-0.9.0/tests/CMakeLists.txt +0 -22
  603. httpp-0.9.0/tests/cmake/consumer_project/main.cpp +0 -134
  604. httpp-0.9.0/tests/cpp/CMakeLists.txt +0 -59
  605. httpp-0.9.0/tests/cpp/swagger_original.hpp +0 -16
  606. httpp-0.9.0/tests/cpp/test_async_https.cpp +0 -262
  607. httpp-0.9.0/tests/cpp/test_async_pool_proxy.cpp +0 -688
  608. httpp-0.9.0/tests/cpp/test_async_server.cpp +0 -605
  609. httpp-0.9.0/tests/cpp/test_async_stream.cpp +0 -155
  610. httpp-0.9.0/tests/cpp/test_certs.hpp +0 -42
  611. httpp-0.9.0/tests/cpp/test_client.cpp +0 -67
  612. httpp-0.9.0/tests/cpp/test_client_async_engine.cpp +0 -358
  613. httpp-0.9.0/tests/cpp/test_client_blocking_engine.cpp +0 -123
  614. httpp-0.9.0/tests/cpp/test_client_encoding.cpp +0 -160
  615. httpp-0.9.0/tests/cpp/test_client_request.cpp +0 -111
  616. httpp-0.9.0/tests/cpp/test_client_session.cpp +0 -211
  617. httpp-0.9.0/tests/cpp/test_curl.cpp +0 -111
  618. httpp-0.9.0/tests/cpp/test_curl_compat.cpp +0 -116
  619. httpp-0.9.0/tests/cpp/test_download.cpp +0 -452
  620. httpp-0.9.0/tests/cpp/test_download_transfer.cpp +0 -182
  621. httpp-0.9.0/tests/cpp/test_file_browser.cpp +0 -556
  622. httpp-0.9.0/tests/cpp/test_form.cpp +0 -127
  623. httpp-0.9.0/tests/cpp/test_log.cpp +0 -194
  624. httpp-0.9.0/tests/cpp/test_logging_module.cpp +0 -445
  625. httpp-0.9.0/tests/cpp/test_logging_os.cpp +0 -176
  626. httpp-0.9.0/tests/cpp/test_path.cpp +0 -266
  627. httpp-0.9.0/tests/cpp/test_progress.cpp +0 -43
  628. httpp-0.9.0/tests/cpp/test_router.cpp +0 -123
  629. httpp-0.9.0/tests/cpp/test_server.cpp +0 -529
  630. httpp-0.9.0/tests/cpp/test_server_compression.cpp +0 -93
  631. httpp-0.9.0/tests/cpp/test_server_conditional.cpp +0 -231
  632. httpp-0.9.0/tests/cpp/test_server_features.cpp +0 -402
  633. httpp-0.9.0/tests/cpp/test_server_io_routes.cpp +0 -404
  634. httpp-0.9.0/tests/cpp/test_server_io_threads.cpp +0 -191
  635. httpp-0.9.0/tests/cpp/test_server_middleware.cpp +0 -340
  636. httpp-0.9.0/tests/cpp/test_server_routing.cpp +0 -226
  637. httpp-0.9.0/tests/cpp/test_server_shutdown.cpp +0 -222
  638. httpp-0.9.0/tests/cpp/test_server_tls.cpp +0 -270
  639. httpp-0.9.0/tests/cpp/test_server_websocket.cpp +0 -712
  640. httpp-0.9.0/tests/cpp/test_sha256.cpp +0 -61
  641. httpp-0.9.0/tests/cpp/test_swagger_ui.cpp +0 -65
  642. httpp-0.9.0/tests/cpp/test_swagger_ui_route.cpp +0 -123
  643. httpp-0.9.0/tests/cpp/test_url.cpp +0 -62
  644. httpp-0.9.0/tests/cpp/test_worker_pool.cpp +0 -153
  645. httpp-0.9.0/tests/cpp/tls_test_server.hpp +0 -157
  646. httpp-0.9.0/tests/python/conftest.py +0 -91
  647. httpp-0.9.0/tests/python/test_async_engine.py +0 -210
  648. httpp-0.9.0/tests/python/test_builders.py +0 -168
  649. httpp-0.9.0/tests/python/test_cli.py +0 -472
  650. httpp-0.9.0/tests/python/test_client.py +0 -305
  651. httpp-0.9.0/tests/python/test_client_encoding.py +0 -105
  652. httpp-0.9.0/tests/python/test_client_keep_alive.py +0 -45
  653. httpp-0.9.0/tests/python/test_cpp_python_parity.py +0 -229
  654. httpp-0.9.0/tests/python/test_download_progress_url.py +0 -302
  655. httpp-0.9.0/tests/python/test_download_sha256.py +0 -150
  656. httpp-0.9.0/tests/python/test_embed_file.py +0 -122
  657. httpp-0.9.0/tests/python/test_examples.py +0 -37
  658. httpp-0.9.0/tests/python/test_file_browser.py +0 -234
  659. httpp-0.9.0/tests/python/test_httpp_basic.py +0 -115
  660. httpp-0.9.0/tests/python/test_httpp_routes.py +0 -532
  661. httpp-0.9.0/tests/python/test_inline_async.py +0 -232
  662. httpp-0.9.0/tests/python/test_io_threads.py +0 -177
  663. httpp-0.9.0/tests/python/test_log.py +0 -123
  664. httpp-0.9.0/tests/python/test_log_bridge.py +0 -133
  665. httpp-0.9.0/tests/python/test_openapi.py +0 -300
  666. httpp-0.9.0/tests/python/test_params_depends.py +0 -387
  667. httpp-0.9.0/tests/python/test_path_templates.py +0 -35
  668. httpp-0.9.0/tests/python/test_pathlib.py +0 -84
  669. httpp-0.9.0/tests/python/test_pool_thread_state.py +0 -37
  670. httpp-0.9.0/tests/python/test_portability_sources.py +0 -21
  671. httpp-0.9.0/tests/python/test_query_encoding.py +0 -48
  672. httpp-0.9.0/tests/python/test_reload.py +0 -149
  673. httpp-0.9.0/tests/python/test_responses.py +0 -262
  674. httpp-0.9.0/tests/python/test_server_features.py +0 -1090
  675. httpp-0.9.0/tests/python/test_testclient.py +0 -476
  676. httpp-0.9.0/tests/python/test_tls.py +0 -183
  677. httpp-0.9.0/tests/python/test_websocket.py +0 -540
  678. httpp-0.9.0/tests/python/test_websocket_router.py +0 -320
  679. {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/autobahn.yml +0 -0
  680. {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/release_template.md +0 -0
  681. {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/wheels.yml +0 -0
  682. {httpp-0.9.0 → httpp-0.10.0}/.gitignore +0 -0
  683. {httpp-0.9.0 → httpp-0.10.0}/.gitmodules +0 -0
  684. {httpp-0.9.0 → httpp-0.10.0}/LICENSE.txt +0 -0
  685. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/asgi_app.py +0 -0
  686. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench.py +0 -0
  687. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench_setup.py +0 -0
  688. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench_validate.py +0 -0
  689. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/client_worker.py +0 -0
  690. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpp/drogon_bench.cpp +0 -0
  691. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpp/ws_load.cpp +0 -0
  692. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpu_app.py +0 -0
  693. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpu_bench.py +0 -0
  694. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_async_client.py +0 -0
  695. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_io.sh +0 -0
  696. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_sync_client.py +0 -0
  697. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/gzip_app.py +0 -0
  698. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/gzip_bench.py +0 -0
  699. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/httpp_app.py +0 -0
  700. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/io_app.py +0 -0
  701. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/io_bench.py +0 -0
  702. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/results/.gitignore +0 -0
  703. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/run.sh +0 -0
  704. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/stress.py +0 -0
  705. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/suite_aiohttp.py +0 -0
  706. {httpp-0.9.0 → httpp-0.10.0}/benchmarks/ws_websockets.py +0 -0
  707. {httpp-0.9.0 → httpp-0.10.0}/cmake/DynamicVersion.cmake +0 -0
  708. {httpp-0.9.0 → httpp-0.10.0}/cmake/EmbedFile.cmake +0 -0
  709. {httpp-0.9.0 → httpp-0.10.0}/cmake/FindCython.cmake +0 -0
  710. {httpp-0.9.0 → httpp-0.10.0}/cmake/Optimize.cmake +0 -0
  711. {httpp-0.9.0 → httpp-0.10.0}/cmake/Startup.cmake +0 -0
  712. {httpp-0.9.0 → httpp-0.10.0}/cmake/UseCython.cmake +0 -0
  713. {httpp-0.9.0 → httpp-0.10.0}/cmake/httpp_mbedtls_config.h +0 -0
  714. {httpp-0.9.0 → httpp-0.10.0}/cmake/utils/embedded_files.in.hpp +0 -0
  715. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0010-mbedtls-threading.md +0 -0
  716. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0014-coding-conventions.md +0 -0
  717. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0019-vendored-deflate-inflate.md +0 -0
  718. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0021-pool-thread-state-and-two-core-numbers.md +0 -0
  719. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0033-engine-per-request-cost.md +0 -0
  720. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0034-balanced-connections-between-io-threads.md +0 -0
  721. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0035-hook-path-needs-no-server-pointer.md +0 -0
  722. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0036-connection-read-buffer-not-zero-filled.md +0 -0
  723. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0038-graceful-shutdown.md +0 -0
  724. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0039-reload-supervisor.md +0 -0
  725. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0040-server-tls.md +0 -0
  726. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0044-worker-respawn.md +0 -0
  727. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0045-conditional-static-files.md +0 -0
  728. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0047-one-mime-table-and-exchange-leak.md +0 -0
  729. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0061-server-gzip-defaults.md +0 -0
  730. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0068-socks5-proxy.md +0 -0
  731. {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0069-forwarded-headers.md +0 -0
  732. {httpp-0.9.0 → httpp-0.10.0}/docs/agent.md +0 -0
  733. {httpp-0.9.0 → httpp-0.10.0}/docs/index.rst +0 -0
  734. {httpp-0.9.0 → httpp-0.10.0}/docs/site/.gitignore +0 -0
  735. {httpp-0.9.0 → httpp-0.10.0}/docs/site/docs/install.mdx +0 -0
  736. {httpp-0.9.0 → httpp-0.10.0}/docs/site/languages.json +0 -0
  737. {httpp-0.9.0 → httpp-0.10.0}/docs/site/package-lock.json +0 -0
  738. {httpp-0.9.0 → httpp-0.10.0}/docs/site/package.json +0 -0
  739. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Bench.module.css +0 -0
  740. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Bench.tsx +0 -0
  741. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/LangContext.tsx +0 -0
  742. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/LangSwitch.tsx +0 -0
  743. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Only.tsx +0 -0
  744. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/theme/NavbarItem/ComponentTypes.tsx +0 -0
  745. {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/theme/Root.tsx +0 -0
  746. {httpp-0.9.0 → httpp-0.10.0}/docs/site/tsconfig.json +0 -0
  747. /httpp-0.9.0/docs/site/snippets/python/download_async.py → /httpp-0.10.0/examples/download/python/async.py +0 -0
  748. /httpp-0.9.0/docs/site/snippets/python/download_file.py → /httpp-0.10.0/examples/download/python/main.py +0 -0
  749. /httpp-0.9.0/docs/site/snippets/python/download_verified.py → /httpp-0.10.0/examples/download/python/verified.py +0 -0
  750. {httpp-0.9.0 → httpp-0.10.0}/examples/find_httpp_via_python/CMakeLists.txt +0 -0
  751. /httpp-0.9.0/docs/site/snippets/python/client_get.py → /httpp-0.10.0/examples/get_request/python/main.py +0 -0
  752. /httpp-0.9.0/docs/site/snippets/python/get_route.py → /httpp-0.10.0/examples/get_route/python/main.py +0 -0
  753. /httpp-0.9.0/docs/site/snippets/python/hooks.py → /httpp-0.10.0/examples/hooks/python/main.py +0 -0
  754. /httpp-0.9.0/docs/site/snippets/python/client_post.py → /httpp-0.10.0/examples/post_request/python/main.py +0 -0
  755. /httpp-0.9.0/docs/site/snippets/python/responses.py → /httpp-0.10.0/examples/responses/python/main.py +0 -0
  756. /httpp-0.9.0/docs/site/snippets/cpp/send_file.cpp → /httpp-0.10.0/examples/send_file/cpp/main.cpp +0 -0
  757. /httpp-0.9.0/docs/site/snippets/python/send_file.py → /httpp-0.10.0/examples/send_file/python/main.py +0 -0
  758. /httpp-0.9.0/docs/site/snippets/cpp/serve_folder.cpp → /httpp-0.10.0/examples/serve_directory/cpp/main.cpp +0 -0
  759. /httpp-0.9.0/docs/site/snippets/python/serve_folder.py → /httpp-0.10.0/examples/serve_directory/python/main.py +0 -0
  760. {httpp-0.9.0 → httpp-0.10.0}/requirements-dev.txt +0 -0
  761. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/_validate_cy.pyx +0 -0
  762. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/__main__.py +0 -0
  763. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_background.py +0 -0
  764. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_forms.py +0 -0
  765. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_reload.py +0 -0
  766. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_validate.py +0 -0
  767. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/errors.py +0 -0
  768. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/models.py +0 -0
  769. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/responses.py +0 -0
  770. {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/status.py +0 -0
  771. {httpp-0.9.0 → httpp-0.10.0}/src/core/content_decode.cpp +0 -0
  772. {httpp-0.9.0 → httpp-0.10.0}/src/core/deflate.cpp +0 -0
  773. {httpp-0.9.0 → httpp-0.10.0}/src/core/inflate.cpp +0 -0
  774. {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/content_decode.hpp +0 -0
  775. {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/deflate.hpp +0 -0
  776. {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/inflate.hpp +0 -0
  777. {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/tls_session.hpp +0 -0
  778. {httpp-0.9.0 → httpp-0.10.0}/src/core/mbedtls_alt/threading_alt.h +0 -0
  779. {httpp-0.9.0 → httpp-0.10.0}/src/core/mbedtls_threading.cpp +0 -0
  780. {httpp-0.9.0 → httpp-0.10.0}/src/core/response_compression.cpp +0 -0
  781. {httpp-0.9.0 → httpp-0.10.0}/src/core/websocket_api.cpp +0 -0
  782. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/CLI11/CLI11.hpp +0 -0
  783. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/README.md +0 -0
  784. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/indicators/indicators.hpp +0 -0
  785. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/LICENSE +0 -0
  786. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/VENDORED.md +0 -0
  787. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/include/llhttp.h +0 -0
  788. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/api.c +0 -0
  789. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/http.c +0 -0
  790. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/llhttp.c +0 -0
  791. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/LICENSE +0 -0
  792. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/VENDORED.md +0 -0
  793. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/stb_deflate.h +0 -0
  794. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/LICENSE +0 -0
  795. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/VENDORED.md +0 -0
  796. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/stb_inflate.h +0 -0
  797. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/LICENSE +0 -0
  798. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/NOTICE +0 -0
  799. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-api-icon.svg +0 -0
  800. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui-bundle.js +0 -0
  801. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui-bundle.js.LICENSE.txt +0 -0
  802. {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui.css +0 -0
  803. {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/CMakeLists.txt +0 -0
  804. {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/consumer_project/CMakeLists.txt +0 -0
  805. {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/embed_compress/CMakeLists.txt +0 -0
  806. {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/embed_compress/main.cpp +0 -0
  807. {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/run_consumer_test.cmake +0 -0
  808. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/inflate_fixtures.hpp +0 -0
  809. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/local_server.hpp +0 -0
  810. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_async_http.cpp +0 -0
  811. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_deflate.cpp +0 -0
  812. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_inflate.cpp +0 -0
  813. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_mime.cpp +0 -0
  814. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_server_after_send.cpp +0 -0
  815. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_websocket_session.cpp +0 -0
  816. {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/ws_test_client.hpp +0 -0
  817. {httpp-0.9.0 → httpp-0.10.0}/tests/python/CMakeLists.txt +0 -0
  818. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_abi3_safe.py +0 -0
  819. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_cli_path.py +0 -0
  820. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_forms.py +0 -0
  821. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_middleware.py +0 -0
  822. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_models_vs_pydantic.py +0 -0
  823. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_response_injection.py +0 -0
  824. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_router.py +0 -0
  825. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_run.py +0 -0
  826. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_server_raw_request.py +0 -0
  827. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_shutdown.py +0 -0
  828. {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_validate_vs_pydantic.py +0 -0
  829. {httpp-0.9.0 → httpp-0.10.0}/tests/utest/utest.h +0 -0
  830. {httpp-0.9.0 → httpp-0.10.0}/tests/utest/utest_main.cxx +0 -0
  831. {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/README.md +0 -0
  832. {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/check_report.py +0 -0
  833. {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/echo_server.py +0 -0
  834. {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/fuzzingclient.json +0 -0
  835. {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_fastapi_deps_responses.py +0 -0
  836. {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_fastapi_params.py +0 -0
  837. {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_pydantic_types.py +0 -0
  838. {httpp-0.9.0 → httpp-0.10.0}/version.py +0 -0
@@ -0,0 +1,106 @@
1
+ name: cmake stuff
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ workflow_call:
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build-and-test:
11
+ strategy:
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest, windows-latest]
14
+
15
+ runs-on: ${{ matrix.os }}
16
+
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v6
20
+ with:
21
+ submodules: recursive
22
+
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v6
25
+ with:
26
+ python-version: "3.11"
27
+ cache: "pip"
28
+
29
+ - name: Install python deps
30
+ run: pip install -r requirements-dev.txt
31
+
32
+ - name: Configure Project
33
+ uses: threeal/cmake-action@v2.1.0
34
+ with:
35
+ build-dir: build
36
+ run-build: false
37
+ options: |
38
+ CMAKE_BUILD_TYPE=Release
39
+ HTTPP_BUILD_TESTS=ON
40
+ HTTPP_BUILD_PYTHON=ON
41
+
42
+ - name: Build
43
+ run: cmake --build build -j4 --config Release
44
+
45
+ - name: Run tests (Linux/macOS)
46
+ if: runner.os != 'Windows'
47
+ run: ctest --test-dir build --output-on-failure --extra-verbose --timeout 900
48
+
49
+ build-coverage:
50
+ runs-on: ubuntu-latest
51
+
52
+ steps:
53
+ - name: Checkout repository
54
+ uses: actions/checkout@v6
55
+ with:
56
+ submodules: recursive
57
+
58
+ - name: Setup cmake
59
+ uses: jwlawson/actions-setup-cmake@v2
60
+ with:
61
+ cmake-version: '3.28.x'
62
+
63
+ - name: Set up Python
64
+ uses: actions/setup-python@v6
65
+ with:
66
+ python-version: "3.11"
67
+ cache: "pip"
68
+
69
+ - name: Install python dependencies
70
+ run: pip install -r requirements-dev.txt
71
+
72
+ - uses: nick-fields/retry@v3
73
+ with:
74
+ timeout_minutes: 10
75
+ max_attempts: 5
76
+ command: |
77
+ sudo apt-get update
78
+ sudo apt-get install -y --fix-missing lcov
79
+
80
+ - name: Configure CMake with coverage
81
+ run: |
82
+ cmake -B build \
83
+ -DHTTPP_BUILD_TESTS=ON \
84
+ -DHTTPP_BUILD_PYTHON=ON \
85
+ -DCMAKE_CXX_FLAGS="--coverage -fprofile-update=atomic -O0 -g" \
86
+ -DCMAKE_EXE_LINKER_FLAGS="--coverage"
87
+
88
+ - name: Build and run C++ tests
89
+ run: |
90
+ cmake --build build --target test_httpp_cpp -j4
91
+ ctest --test-dir build -R test_httpp_cpp --output-on-failure --timeout 900
92
+
93
+ - name: Capture coverage
94
+ run: |
95
+ lcov --capture --directory build --base-directory . \
96
+ --exclude '*/tests/*' --exclude '*/third_party/*' --exclude '/usr/*' \
97
+ --output-file coverage.lcov
98
+
99
+ - name: Upload coverage to Codecov
100
+ uses: codecov/codecov-action@v5
101
+ with:
102
+ files: coverage.lcov
103
+ flags: unittests
104
+ name: codecov-httpp
105
+ fail_ci_if_error: false
106
+ verbose: true
@@ -0,0 +1,52 @@
1
+ name: docs
2
+
3
+ # Builds the documentation site in docs/site (ADR-0060). The orchestrator calls it on every push to master and on tags; it is
4
+ # informational there (release-wheels does not wait for it). On pull requests it runs only when the site changes. Publishes nothing.
5
+ on:
6
+ workflow_dispatch:
7
+ workflow_call:
8
+ pull_request:
9
+ branches: [ master ]
10
+ paths:
11
+ - "docs/site/**"
12
+ - "examples/**"
13
+ - "tests/python/test_examples.py"
14
+ - ".github/workflows/docs.yml"
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ site:
21
+ runs-on: ubuntu-latest
22
+ defaults:
23
+ run:
24
+ working-directory: docs/site
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ with:
28
+ submodules: recursive
29
+ - uses: actions/setup-python@v6
30
+ with:
31
+ python-version: "3.12"
32
+ - uses: actions/setup-node@v6
33
+ with:
34
+ node-version: "22"
35
+ cache: npm
36
+ cache-dependency-path: docs/site/package-lock.json
37
+ - name: Both languages have every example, and a README
38
+ run: python3 scripts/prepare.py all
39
+ - name: Build and install httpp
40
+ working-directory: .
41
+ run: pip install .
42
+ - name: Examples build, run and do what their pages say
43
+ working-directory: .
44
+ run: |
45
+ pip install pytest
46
+ python -m pytest tests/python/test_examples.py -q
47
+ - name: Install
48
+ run: npm ci
49
+ - name: Type check
50
+ run: npm run typecheck
51
+ - name: Build
52
+ run: npm run build
@@ -0,0 +1,123 @@
1
+ name: Orchestration & Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [ master ]
7
+ tags: [ "v*" ]
8
+
9
+ jobs:
10
+ init:
11
+ runs-on: ubuntu-latest
12
+ outputs:
13
+ release_name: ${{ steps.init.outputs.release_name }}
14
+ is_tag: ${{ steps.init.outputs.is_tag }}
15
+ version_string: ${{ steps.init.outputs.version_string }}
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v6
19
+
20
+ - name: Initalize
21
+ id: init
22
+ env:
23
+ GH_TOKEN: ${{ github.token }}
24
+ run: |
25
+ export version_string="$(python version.py | tr -d '\n')"
26
+ echo "version_string=${version_string}" | tee -a "$GITHUB_OUTPUT"
27
+ if [[ "${{ github.ref }}" =~ ^refs/tags/v.*$ ]]; then
28
+ TAG_NAME="${GITHUB_REF#refs/tags/}"
29
+ [[ "${version_string}" == "${GITHUB_REF#refs/tags/v}" ]] || (echo "❌ Version mismatch!" && exit 1)
30
+ export release_name="$TAG_NAME"
31
+ export is_tag="true"
32
+ else
33
+ gh api repos/${{ github.repository }}/releases/tags/__beta__ --jq '.assets[].id' 2>/dev/null | xargs -r -I {} gh api repos/${{ github.repository }}/releases/assets/{} -X DELETE 2>/dev/null || true
34
+ export release_name="__beta__"
35
+ export is_tag="false"
36
+ fi
37
+ echo "release_name=${release_name}" | tee -a "$GITHUB_OUTPUT"
38
+ echo "is_tag=${is_tag}" | tee -a "$GITHUB_OUTPUT"
39
+ sed -i -e "s/RELEASE_NAME/${release_name}/g" -e "s/VERSION_STRING/${version_string}/g" .github/workflows/release_template.md
40
+
41
+ - name: Initialize release body
42
+ uses: softprops/action-gh-release@v3
43
+ with:
44
+ tag_name: ${{ steps.init.outputs.release_name }}
45
+ name: ${{ steps.init.outputs.release_name }}
46
+ draft: false
47
+ prerelease: ${{ steps.init.outputs.is_tag == 'false' }}
48
+ token: ${{ secrets.GITHUB_TOKEN }}
49
+ body_path: .github/workflows/release_template.md
50
+
51
+ cmake:
52
+ uses: ./.github/workflows/cmake.yml
53
+ needs: [init]
54
+
55
+ wheel:
56
+ uses: ./.github/workflows/wheels.yml
57
+ needs: [init]
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
+
66
+ # Runs after the cmake job, so the docs are built only against a library that built and passed its tests. Informational:
67
+ # release-wheels does not wait for it, a broken docs build must not block publishing the wheels (ADR-0060).
68
+ docs:
69
+ uses: ./.github/workflows/docs.yml
70
+ needs: [init, cmake]
71
+
72
+ # Publishes the documentation site to GitHub Pages. pages.yml decides by itself (its `changed` job) whether a push touched the site;
73
+ # the permissions are given here because a called workflow cannot ask for more than its caller gives.
74
+ pages:
75
+ uses: ./.github/workflows/pages.yml
76
+ needs: [init]
77
+ permissions:
78
+ contents: read
79
+ pages: write
80
+ id-token: write
81
+
82
+ release-wheels:
83
+ needs: [wheel, init]
84
+ runs-on: ubuntu-latest
85
+ steps:
86
+ - name: Download all artifacts
87
+ uses: actions/download-artifact@v8
88
+ with:
89
+ pattern: wheelhouse-*
90
+ path: dist
91
+ merge-multiple: true
92
+
93
+ # Safety net: the publish steps need only flat *.whl / *.tar.gz files in dist/.
94
+ - name: Check dist layout
95
+ run: |
96
+ if find dist -mindepth 1 -type d | grep -q .; then
97
+ echo "::error::unexpected sub-directories in dist/"; find dist; exit 1
98
+ fi
99
+
100
+ - name: List dist directory
101
+ run: ls -lh dist
102
+
103
+ - name: create release body
104
+ uses: softprops/action-gh-release@v3
105
+ with:
106
+ tag_name: ${{ needs.init.outputs.release_name }}
107
+ name: ${{ needs.init.outputs.release_name }}
108
+ draft: false
109
+ prerelease: ${{ needs.init.outputs.is_tag == 'false' }}
110
+ token: ${{ secrets.GITHUB_TOKEN }}
111
+ files: dist/*
112
+ generate_release_notes: true
113
+
114
+ - name: Publishing to PyPi
115
+ uses: pypa/gh-action-pypi-publish@release/v1
116
+ if: startsWith(github.ref, 'refs/tags/')
117
+ with:
118
+ password: ${{ secrets.PYPI_PASSWORD }}
119
+ user: ${{ secrets.PYPI_USERNAME }}
120
+ packages-dir: dist
121
+ skip-existing: true
122
+ # attestations need Trusted Publishing; they are ignored when a password is used
123
+ attestations: false
@@ -0,0 +1,85 @@
1
+ name: pages
2
+
3
+ # Publishes the documentation site (docs/site, ADR-0060) to GitHub Pages: https://mohammadraziei.github.io/httpp/
4
+ # docs.yml checks the site (examples, type check, build) and publishes nothing; this workflow builds it again and deploys it.
5
+ # Like every other workflow it has no push trigger of its own: the orchestrator calls it (workflow_call) and gives the deploy job the
6
+ # permissions it needs (pages: write, id-token: write). The old push filter on paths moved into the `changed` job below, because a
7
+ # called workflow cannot filter by path: a push to master deploys only when a file of the site changed, a manual run always deploys.
8
+ # One-time setup: Settings -> Pages -> Source: "GitHub Actions".
9
+ on:
10
+ workflow_dispatch:
11
+ workflow_call:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ concurrency:
17
+ group: pages
18
+ cancel-in-progress: true
19
+
20
+ jobs:
21
+ changed:
22
+ runs-on: ubuntu-latest
23
+ outputs:
24
+ site: ${{ steps.diff.outputs.site }}
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ with:
28
+ fetch-depth: 0
29
+ - id: diff
30
+ env:
31
+ EVENT: ${{ github.event_name }}
32
+ REF: ${{ github.ref }}
33
+ BEFORE: ${{ github.event.before }}
34
+ run: |
35
+ site=false
36
+ if [[ "$EVENT" == "workflow_dispatch" ]]; then
37
+ site=true
38
+ elif [[ "$REF" == "refs/heads/master" ]]; then
39
+ if [[ -z "$BEFORE" || "$BEFORE" =~ ^0+$ ]] || ! git cat-file -e "${BEFORE}^{commit}" 2>/dev/null; then
40
+ site=true # first push, or a force push that lost the old commit: do not guess
41
+ elif git diff --name-only "$BEFORE" HEAD | grep -Eq '^(docs/site/|examples/|benchmarks/results/full/[^/]*\.json$|\.github/workflows/pages\.yml$)'; then
42
+ site=true
43
+ fi
44
+ fi
45
+ echo "site=${site}" | tee -a "$GITHUB_OUTPUT"
46
+
47
+ build:
48
+ needs: changed
49
+ if: needs.changed.outputs.site == 'true'
50
+ runs-on: ubuntu-latest
51
+ defaults:
52
+ run:
53
+ working-directory: docs/site
54
+ steps:
55
+ - uses: actions/checkout@v6
56
+ - uses: actions/setup-python@v6
57
+ with:
58
+ python-version: "3.12"
59
+ - uses: actions/setup-node@v6
60
+ with:
61
+ node-version: "22"
62
+ cache: npm
63
+ cache-dependency-path: docs/site/package-lock.json
64
+ - name: Snippets and benchmark data
65
+ run: python3 scripts/prepare.py all
66
+ - name: Install
67
+ run: npm ci
68
+ - name: Build
69
+ run: npm run build
70
+ - uses: actions/upload-pages-artifact@v3
71
+ with:
72
+ path: docs/site/build
73
+
74
+ deploy:
75
+ needs: build
76
+ runs-on: ubuntu-latest
77
+ permissions:
78
+ pages: write
79
+ id-token: write
80
+ environment:
81
+ name: github-pages
82
+ url: ${{ steps.deployment.outputs.page_url }}
83
+ steps:
84
+ - id: deployment
85
+ uses: actions/deploy-pages@v4