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.
- httpp-0.10.0/.github/workflows/cmake.yml +106 -0
- httpp-0.10.0/.github/workflows/docs.yml +52 -0
- httpp-0.10.0/.github/workflows/orchestrator.yml +123 -0
- httpp-0.10.0/.github/workflows/pages.yml +85 -0
- httpp-0.10.0/CHANGELOG.md +654 -0
- httpp-0.10.0/CMakeLists.txt +380 -0
- httpp-0.10.0/HANDOFF.md +90 -0
- httpp-0.10.0/PKG-INFO +768 -0
- httpp-0.10.0/README.md +741 -0
- httpp-0.10.0/benchmarks/CMakeLists.txt +166 -0
- httpp-0.10.0/benchmarks/README.md +62 -0
- httpp-0.10.0/benchmarks/cpp/cpp_bench.cpp +49 -0
- httpp-0.10.0/benchmarks/fastapi_app.py +56 -0
- httpp-0.10.0/benchmarks/results/full/cpp.json +1312 -0
- httpp-0.10.0/benchmarks/results/full/py314.json +3744 -0
- httpp-0.10.0/benchmarks/results/full/py314t.json +3524 -0
- httpp-0.10.0/benchmarks/results/full/system.json +78 -0
- httpp-0.10.0/benchmarks/suite.py +772 -0
- httpp-0.10.0/benchmarks/suite_app.py +92 -0
- httpp-0.10.0/benchmarks/suite_asgi.py +40 -0
- httpp-0.10.0/checklist.md +104 -0
- httpp-0.10.0/cmake/httppConfig.cmake.in +18 -0
- httpp-0.10.0/docs/Architecture.md +410 -0
- httpp-0.10.0/docs/adr/0001-own-both-layers.md +33 -0
- httpp-0.10.0/docs/adr/0002-standard-asyncio-loop.md +33 -0
- httpp-0.10.0/docs/adr/0003-engine-and-third-party.md +38 -0
- httpp-0.10.0/docs/adr/0004-zero-system-dependencies.md +22 -0
- httpp-0.10.0/docs/adr/0005-multiprocess-workers.md +31 -0
- httpp-0.10.0/docs/adr/0006-own-model-layer.md +32 -0
- httpp-0.10.0/docs/adr/0007-openapi-and-swagger.md +183 -0
- httpp-0.10.0/docs/adr/0009-hot-path.md +29 -0
- httpp-0.10.0/docs/adr/0011-logging.md +368 -0
- httpp-0.10.0/docs/adr/0012-run-wins-over-listen.md +35 -0
- httpp-0.10.0/docs/adr/0013-packaging.md +25 -0
- httpp-0.10.0/docs/adr/0015-testing-and-ci.md +52 -0
- httpp-0.10.0/docs/adr/0016-dual-api.md +220 -0
- httpp-0.10.0/docs/adr/0020-http-exception-and-response-classes.md +35 -0
- httpp-0.10.0/docs/adr/0023-inline-async-handlers.md +79 -0
- httpp-0.10.0/docs/adr/0024-io-threads-and-defaults.md +270 -0
- httpp-0.10.0/docs/adr/0026-websocket.md +280 -0
- httpp-0.10.0/docs/adr/0028-autobahn-called-by-the-orchestrator.md +27 -0
- httpp-0.10.0/docs/adr/0029-incremental-utf8-validation.md +30 -0
- httpp-0.10.0/docs/adr/0030-benchmarks-built-by-cmake.md +36 -0
- httpp-0.10.0/docs/adr/0031-compressed-embedded-files.md +50 -0
- httpp-0.10.0/docs/adr/0032-file-browser.md +198 -0
- httpp-0.10.0/docs/adr/0037-middleware-through-use.md +43 -0
- httpp-0.10.0/docs/adr/0041-command-line.md +150 -0
- httpp-0.10.0/docs/adr/0042-test-client.md +105 -0
- httpp-0.10.0/docs/adr/0049-split-the-cython-module-into-pxi-files.md +21 -0
- httpp-0.10.0/docs/adr/0051-cpp-httplib-retired.md +128 -0
- httpp-0.10.0/docs/adr/0054-path-and-file-system.md +113 -0
- httpp-0.10.0/docs/adr/0060-docs-site.md +104 -0
- httpp-0.10.0/docs/adr/0062-request-names-match-python.md +28 -0
- httpp-0.10.0/docs/adr/0063-benchmark-json-and-docs-page.md +36 -0
- httpp-0.10.0/docs/adr/0066-option-structs-become-builders.md +28 -0
- httpp-0.10.0/docs/adr/0067-url-and-proxy.md +87 -0
- httpp-0.10.0/docs/adr/0071-client-pool-keeps-every-connection-of-a-burst.md +42 -0
- httpp-0.10.0/docs/adr/0074-callback-handler-can-run-unserialized.md +40 -0
- httpp-0.10.0/docs/adr/0077-curl-command.md +156 -0
- httpp-0.10.0/docs/adr/0079-request-redirects-timeout-compression.md +79 -0
- httpp-0.10.0/docs/adr/0081-server-is-a-shared-handle.md +44 -0
- httpp-0.10.0/docs/adr/0086-httpp-utils-base-library.md +36 -0
- httpp-0.10.0/docs/adr/0092-settings-names.md +213 -0
- httpp-0.10.0/docs/adr/0093-client-handles-and-settings-mixin.md +264 -0
- httpp-0.10.0/docs/adr/0095-limit-and-unlimited-for-no-limit-settings.md +60 -0
- httpp-0.10.0/docs/adr/0097-library-elapsed-retry-and-save.md +190 -0
- httpp-0.10.0/docs/adr/0106-direct-scheme-is-no-proxy.md +51 -0
- httpp-0.10.0/docs/adr/0107-environment-variables.md +52 -0
- httpp-0.10.0/docs/adr/0108-resource-limits-and-request-checks.md +31 -0
- httpp-0.10.0/docs/adr/0109-download-on-retry-and-the-download-retry-flags.md +38 -0
- httpp-0.10.0/docs/adr/0110-waits-take-a-fraction-of-a-second.md +37 -0
- httpp-0.10.0/docs/adr/0111-port-0-for-the-native-commands.md +34 -0
- httpp-0.10.0/docs/adr/0112-a-stopped-server-must-not-be-in-a-reference-cycle.md +101 -0
- httpp-0.10.0/docs/adr/0113-client-uploads-streamed-bodies-and-multipart.md +41 -0
- httpp-0.10.0/docs/adr/0114-a-streamed-body-is-read-one-piece-ahead.md +53 -0
- httpp-0.10.0/docs/adr/0115-a-served-file-is-read-from-one-open-handle.md +43 -0
- httpp-0.10.0/docs/adr/0116-a-served-file-is-sent-with-sendfile-where-the-socket-is-plain.md +50 -0
- httpp-0.10.0/docs/adr/0117-path-gets-parts-relative-to-match-and-a-small-glob.md +36 -0
- httpp-0.10.0/docs/adr/0118-str-cat-str-cat-to-and-print.md +44 -0
- httpp-0.10.0/docs/adr/README.md +106 -0
- httpp-0.10.0/docs/site/README.md +47 -0
- httpp-0.10.0/docs/site/docs/benchmarks.mdx +58 -0
- httpp-0.10.0/docs/site/docs/client/curl-command.mdx +110 -0
- httpp-0.10.0/docs/site/docs/client/download.mdx +91 -0
- httpp-0.10.0/docs/site/docs/client/get-request.mdx +39 -0
- httpp-0.10.0/docs/site/docs/client/post-request.mdx +48 -0
- httpp-0.10.0/docs/site/docs/client/upload.mdx +106 -0
- httpp-0.10.0/docs/site/docs/intro.mdx +29 -0
- httpp-0.10.0/docs/site/docs/no-asgi.mdx +58 -0
- httpp-0.10.0/docs/site/docs/server/browse/01-list-light.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/02-list-dark.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/03-grid-light.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/04-selection.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/05-context-menu.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/06-preview-text.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/07-preview-svg.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/08-search.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/09-folder.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/10-mobile-dark.png +0 -0
- httpp-0.10.0/docs/site/docs/server/browse/11-no-dates.png +0 -0
- httpp-0.10.0/docs/site/docs/server/errors.mdx +86 -0
- httpp-0.10.0/docs/site/docs/server/file-browser.mdx +225 -0
- httpp-0.10.0/docs/site/docs/server/get-route.mdx +63 -0
- httpp-0.10.0/docs/site/docs/server/hooks.mdx +47 -0
- httpp-0.10.0/docs/site/docs/server/request-data.mdx +60 -0
- httpp-0.10.0/docs/site/docs/server/responses.mdx +60 -0
- httpp-0.10.0/docs/site/docs/server/send-file.mdx +47 -0
- httpp-0.10.0/docs/site/docs/server/serve-directory.mdx +110 -0
- httpp-0.10.0/docs/site/docs/server/server-handle.mdx +88 -0
- httpp-0.10.0/docs/site/docs/server/swagger/01-overview.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/02-parameters.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/03-request-body.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/04-try-it-200.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/05-try-it-404.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/06-try-it-422.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/07-schemas.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger/08-mobile.png +0 -0
- httpp-0.10.0/docs/site/docs/server/swagger.mdx +246 -0
- httpp-0.10.0/docs/site/docusaurus.config.ts +46 -0
- httpp-0.10.0/docs/site/scripts/prepare.py +144 -0
- httpp-0.10.0/docs/site/sidebars.ts +22 -0
- httpp-0.10.0/docs/site/src/components/Differ.module.css +91 -0
- httpp-0.10.0/docs/site/src/components/Differ.tsx +48 -0
- httpp-0.10.0/docs/site/src/components/Grid.module.css +88 -0
- httpp-0.10.0/docs/site/src/components/Grid.tsx +59 -0
- httpp-0.10.0/docs/site/src/components/Lang.module.css +74 -0
- httpp-0.10.0/docs/site/src/components/Lang.tsx +58 -0
- httpp-0.10.0/docs/site/src/components/LangSwitch.module.css +9 -0
- httpp-0.10.0/docs/site/src/css/custom.css +64 -0
- httpp-0.10.0/docs/site/src/pages/index.module.css +83 -0
- httpp-0.10.0/docs/site/src/pages/index.tsx +106 -0
- httpp-0.10.0/docs/site/static/img/favicon.svg +5 -0
- httpp-0.10.0/docs/site/static/img/logo-dark.svg +1 -0
- httpp-0.10.0/docs/site/static/img/logo.svg +1 -0
- httpp-0.10.0/docs/site/static/img/social-card.png +0 -0
- httpp-0.10.0/examples/download/README.md +22 -0
- httpp-0.10.0/examples/download/cpp/async.cpp +12 -0
- httpp-0.10.0/examples/download/cpp/main.cpp +7 -0
- httpp-0.10.0/examples/download/cpp/verified.cpp +15 -0
- httpp-0.10.0/examples/errors/README.md +28 -0
- httpp-0.10.0/examples/errors/cpp/http_exception.cpp +17 -0
- httpp-0.10.0/examples/errors/cpp/main.cpp +42 -0
- httpp-0.10.0/examples/errors/python/http_exception.py +20 -0
- httpp-0.10.0/examples/errors/python/main.py +35 -0
- httpp-0.10.0/examples/file_browser/README.md +24 -0
- httpp-0.10.0/examples/file_browser/cpp/main.cpp +10 -0
- httpp-0.10.0/examples/file_browser/python/main.py +7 -0
- httpp-0.10.0/examples/find_httpp_via_python/main.cpp +7 -0
- httpp-0.10.0/examples/get_request/README.md +17 -0
- httpp-0.10.0/examples/get_request/cpp/main.cpp +11 -0
- httpp-0.10.0/examples/get_route/README.md +21 -0
- httpp-0.10.0/examples/get_route/cpp/main.cpp +11 -0
- httpp-0.10.0/examples/hooks/README.md +22 -0
- httpp-0.10.0/examples/hooks/cpp/main.cpp +22 -0
- httpp-0.10.0/examples/post_request/README.md +17 -0
- httpp-0.10.0/examples/post_request/cpp/main.cpp +12 -0
- httpp-0.10.0/examples/request_data/README.md +24 -0
- httpp-0.10.0/examples/request_data/cpp/main.cpp +28 -0
- httpp-0.10.0/examples/request_data/python/main.py +29 -0
- httpp-0.10.0/examples/responses/README.md +23 -0
- httpp-0.10.0/examples/responses/cpp/main.cpp +22 -0
- httpp-0.10.0/examples/send_file/README.md +23 -0
- httpp-0.10.0/examples/serve_directory/README.md +23 -0
- httpp-0.10.0/examples/server_handle/README.md +28 -0
- httpp-0.10.0/examples/server_handle/cpp/main.cpp +9 -0
- httpp-0.10.0/examples/server_handle/cpp/mount_into.cpp +10 -0
- httpp-0.10.0/examples/server_handle/cpp/stop.cpp +15 -0
- httpp-0.10.0/examples/server_handle/python/main.py +8 -0
- httpp-0.10.0/examples/server_handle/python/mount_into.py +13 -0
- httpp-0.10.0/examples/server_handle/python/stop.py +13 -0
- httpp-0.10.0/examples/swagger/README.md +27 -0
- httpp-0.10.0/examples/swagger/cpp/auto_document.cpp +161 -0
- httpp-0.10.0/examples/swagger/cpp/main.cpp +26 -0
- httpp-0.10.0/examples/swagger/python/auto_document.py +75 -0
- httpp-0.10.0/examples/swagger/python/main.py +36 -0
- httpp-0.10.0/examples/upload/README.md +21 -0
- httpp-0.10.0/examples/upload/cpp/main.cpp +12 -0
- httpp-0.10.0/examples/upload/cpp/progress.cpp +15 -0
- httpp-0.10.0/examples/upload/python/main.py +13 -0
- httpp-0.10.0/examples/upload/python/progress.py +12 -0
- httpp-0.10.0/include/httpp/banner.hpp +19 -0
- httpp-0.10.0/include/httpp/client.hpp +611 -0
- httpp-0.10.0/include/httpp/cookie.hpp +53 -0
- httpp-0.10.0/include/httpp/download.hpp +170 -0
- httpp-0.10.0/include/httpp/export.hpp +64 -0
- httpp-0.10.0/include/httpp/file_browser.hpp +96 -0
- httpp-0.10.0/include/httpp/file_lock.hpp +49 -0
- httpp-0.10.0/include/httpp/logging.hpp +693 -0
- httpp-0.10.0/include/httpp/middleware.hpp +156 -0
- httpp-0.10.0/include/httpp/openapi.hpp +186 -0
- httpp-0.10.0/include/httpp/path.hpp +281 -0
- httpp-0.10.0/include/httpp/progress.hpp +86 -0
- httpp-0.10.0/include/httpp/proxy.hpp +36 -0
- httpp-0.10.0/include/httpp/route_pattern.hpp +95 -0
- httpp-0.10.0/include/httpp/router.hpp +77 -0
- httpp-0.10.0/include/httpp/server.hpp +468 -0
- httpp-0.10.0/include/httpp/sha256.hpp +5 -0
- httpp-0.10.0/include/httpp/str_cat.hpp +180 -0
- httpp-0.10.0/include/httpp/swagger.hpp +58 -0
- httpp-0.10.0/include/httpp/url.hpp +85 -0
- httpp-0.10.0/include/httpp/utils.hpp +110 -0
- httpp-0.10.0/include/httpp/websocket.hpp +107 -0
- httpp-0.10.0/include/httpp.h +60 -0
- httpp-0.10.0/pyproject.toml +138 -0
- httpp-0.10.0/src/assets/file_browser.html +645 -0
- httpp-0.10.0/src/bindings/python/CMakeLists.txt +178 -0
- httpp-0.10.0/src/bindings/python/cy/async_routes.pxi +509 -0
- httpp-0.10.0/src/bindings/python/cy/client.pxi +419 -0
- httpp-0.10.0/src/bindings/python/cy/cookie.pxi +68 -0
- httpp-0.10.0/src/bindings/python/cy/declarations.pxi +436 -0
- httpp-0.10.0/src/bindings/python/cy/directory.pxi +62 -0
- httpp-0.10.0/src/bindings/python/cy/file_browser.pxi +147 -0
- httpp-0.10.0/src/bindings/python/cy/file_lock.pxi +58 -0
- httpp-0.10.0/src/bindings/python/cy/openapi.pxi +177 -0
- httpp-0.10.0/src/bindings/python/cy/request.pxi +280 -0
- httpp-0.10.0/src/bindings/python/cy/server.pxi +307 -0
- httpp-0.10.0/src/bindings/python/cy/support.pxi +265 -0
- httpp-0.10.0/src/bindings/python/cy/swagger.pxi +31 -0
- httpp-0.10.0/src/bindings/python/cy/transfer.pxi +1054 -0
- httpp-0.10.0/src/bindings/python/httpp/__init__.py +78 -0
- httpp-0.10.0/src/bindings/python/httpp/_http.py +73 -0
- httpp-0.10.0/src/bindings/python/httpp/_log.py +168 -0
- httpp-0.10.0/src/bindings/python/httpp/_params.py +542 -0
- httpp-0.10.0/src/bindings/python/httpp/_router.py +134 -0
- httpp-0.10.0/src/bindings/python/httpp/_run.py +321 -0
- httpp-0.10.0/src/bindings/python/httpp/_schema.py +456 -0
- httpp-0.10.0/src/bindings/python/httpp/_websocket.py +187 -0
- httpp-0.10.0/src/bindings/python/httpp/middleware.py +173 -0
- httpp-0.10.0/src/bindings/python/httpp/openapi.py +15 -0
- httpp-0.10.0/src/bindings/python/httpp/progress.py +34 -0
- httpp-0.10.0/src/bindings/python/httpp/security.py +97 -0
- httpp-0.10.0/src/bindings/python/httpp/server.py +1509 -0
- httpp-0.10.0/src/bindings/python/httpp/testclient.py +689 -0
- httpp-0.10.0/src/bindings/python/httpp/utils.py +14 -0
- httpp-0.10.0/src/bindings/python/httpp_cli.py +79 -0
- httpp-0.10.0/src/bindings/python/httpp_python.pyx +38 -0
- httpp-0.10.0/src/bindings/python/httpp_utils_python.pyx +235 -0
- httpp-0.10.0/src/cli/httpp_cli.cpp +1114 -0
- httpp-0.10.0/src/core/async_http.cpp +895 -0
- httpp-0.10.0/src/core/async_server.cpp +1513 -0
- httpp-0.10.0/src/core/banner.cpp +42 -0
- httpp-0.10.0/src/core/body_source.cpp +206 -0
- httpp-0.10.0/src/core/client.cpp +576 -0
- httpp-0.10.0/src/core/cookie.cpp +99 -0
- httpp-0.10.0/src/core/download.cpp +483 -0
- httpp-0.10.0/src/core/file_browser.cpp +464 -0
- httpp-0.10.0/src/core/file_lock.cpp +132 -0
- httpp-0.10.0/src/core/form.cpp +224 -0
- httpp-0.10.0/src/core/http_exchange.cpp +455 -0
- httpp-0.10.0/src/core/internal/async_http.hpp +153 -0
- httpp-0.10.0/src/core/internal/async_server.hpp +170 -0
- httpp-0.10.0/src/core/internal/basic_credentials.hpp +67 -0
- httpp-0.10.0/src/core/internal/body_source.hpp +33 -0
- httpp-0.10.0/src/core/internal/checksums.hpp +48 -0
- httpp-0.10.0/src/core/internal/file_writer.hpp +98 -0
- httpp-0.10.0/src/core/internal/http_exchange.hpp +240 -0
- httpp-0.10.0/src/core/internal/http_reason.hpp +46 -0
- httpp-0.10.0/src/core/internal/response_compression.hpp +31 -0
- httpp-0.10.0/src/core/internal/thread_exit.hpp +20 -0
- httpp-0.10.0/src/core/internal/urlencoded.hpp +23 -0
- httpp-0.10.0/src/core/internal/websocket.hpp +135 -0
- httpp-0.10.0/src/core/internal/worker_pool.hpp +209 -0
- httpp-0.10.0/src/core/internal/zip_stream.hpp +247 -0
- httpp-0.10.0/src/core/middleware.cpp +574 -0
- httpp-0.10.0/src/core/openapi.cpp +433 -0
- httpp-0.10.0/src/core/proxy.cpp +124 -0
- httpp-0.10.0/src/core/router.cpp +100 -0
- httpp-0.10.0/src/core/server.cpp +1619 -0
- httpp-0.10.0/src/core/swagger.cpp +155 -0
- httpp-0.10.0/src/core/tls_session.cpp +293 -0
- httpp-0.10.0/src/core/url.cpp +81 -0
- httpp-0.10.0/src/core/websocket.cpp +437 -0
- httpp-0.10.0/src/third_party/swagger-ui/VENDORED.md +10 -0
- httpp-0.10.0/src/utils/internal/logging.hpp +27 -0
- httpp-0.10.0/src/utils/internal/windows_text.hpp +39 -0
- httpp-0.10.0/src/utils/logging.cpp +973 -0
- httpp-0.10.0/src/utils/path.cpp +591 -0
- httpp-0.10.0/src/utils/progress.cpp +62 -0
- httpp-0.10.0/src/utils/utils.cpp +252 -0
- httpp-0.10.0/tests/CMakeLists.txt +23 -0
- httpp-0.10.0/tests/cmake/consumer_project/main.cpp +113 -0
- httpp-0.10.0/tests/cpp/CMakeLists.txt +59 -0
- httpp-0.10.0/tests/cpp/swagger_original.hpp +16 -0
- httpp-0.10.0/tests/cpp/test_async_https.cpp +272 -0
- httpp-0.10.0/tests/cpp/test_async_pool_proxy.cpp +725 -0
- httpp-0.10.0/tests/cpp/test_async_server.cpp +1005 -0
- httpp-0.10.0/tests/cpp/test_async_stream.cpp +155 -0
- httpp-0.10.0/tests/cpp/test_certs.hpp +61 -0
- httpp-0.10.0/tests/cpp/test_client.cpp +92 -0
- httpp-0.10.0/tests/cpp/test_client_async_engine.cpp +358 -0
- httpp-0.10.0/tests/cpp/test_client_blocking_engine.cpp +171 -0
- httpp-0.10.0/tests/cpp/test_client_encoding.cpp +182 -0
- httpp-0.10.0/tests/cpp/test_client_handle.cpp +214 -0
- httpp-0.10.0/tests/cpp/test_client_max_time.cpp +166 -0
- httpp-0.10.0/tests/cpp/test_client_request.cpp +220 -0
- httpp-0.10.0/tests/cpp/test_client_request_stream.cpp +175 -0
- httpp-0.10.0/tests/cpp/test_client_retry.cpp +277 -0
- httpp-0.10.0/tests/cpp/test_client_save_to.cpp +261 -0
- httpp-0.10.0/tests/cpp/test_client_session.cpp +286 -0
- httpp-0.10.0/tests/cpp/test_client_upload.cpp +182 -0
- httpp-0.10.0/tests/cpp/test_clone.cpp +238 -0
- httpp-0.10.0/tests/cpp/test_cookie.cpp +90 -0
- httpp-0.10.0/tests/cpp/test_download.cpp +478 -0
- httpp-0.10.0/tests/cpp/test_download_retry.cpp +221 -0
- httpp-0.10.0/tests/cpp/test_download_settings.cpp +149 -0
- httpp-0.10.0/tests/cpp/test_download_transfer.cpp +182 -0
- httpp-0.10.0/tests/cpp/test_file_browser.cpp +691 -0
- httpp-0.10.0/tests/cpp/test_file_lock.cpp +148 -0
- httpp-0.10.0/tests/cpp/test_form.cpp +177 -0
- httpp-0.10.0/tests/cpp/test_http_exception.cpp +97 -0
- httpp-0.10.0/tests/cpp/test_logging_module.cpp +781 -0
- httpp-0.10.0/tests/cpp/test_logging_os.cpp +177 -0
- httpp-0.10.0/tests/cpp/test_mountable.cpp +141 -0
- httpp-0.10.0/tests/cpp/test_openapi.cpp +292 -0
- httpp-0.10.0/tests/cpp/test_path.cpp +653 -0
- httpp-0.10.0/tests/cpp/test_path_reader.cpp +87 -0
- httpp-0.10.0/tests/cpp/test_progress.cpp +43 -0
- httpp-0.10.0/tests/cpp/test_proxy.cpp +244 -0
- httpp-0.10.0/tests/cpp/test_router.cpp +123 -0
- httpp-0.10.0/tests/cpp/test_server.cpp +529 -0
- httpp-0.10.0/tests/cpp/test_server_compression.cpp +93 -0
- httpp-0.10.0/tests/cpp/test_server_conditional.cpp +231 -0
- httpp-0.10.0/tests/cpp/test_server_features.cpp +402 -0
- httpp-0.10.0/tests/cpp/test_server_io_routes.cpp +404 -0
- httpp-0.10.0/tests/cpp/test_server_io_threads.cpp +191 -0
- httpp-0.10.0/tests/cpp/test_server_lifecycle.cpp +259 -0
- httpp-0.10.0/tests/cpp/test_server_middleware.cpp +503 -0
- httpp-0.10.0/tests/cpp/test_server_routing.cpp +291 -0
- httpp-0.10.0/tests/cpp/test_server_shutdown.cpp +222 -0
- httpp-0.10.0/tests/cpp/test_server_tls.cpp +287 -0
- httpp-0.10.0/tests/cpp/test_server_websocket.cpp +723 -0
- httpp-0.10.0/tests/cpp/test_show_dates.cpp +129 -0
- httpp-0.10.0/tests/cpp/test_str_cat.cpp +148 -0
- httpp-0.10.0/tests/cpp/test_str_cat_no_print.cpp +26 -0
- httpp-0.10.0/tests/cpp/test_swagger_ui.cpp +65 -0
- httpp-0.10.0/tests/cpp/test_swagger_ui_route.cpp +146 -0
- httpp-0.10.0/tests/cpp/test_thread_exit_hook.cpp +46 -0
- httpp-0.10.0/tests/cpp/test_url.cpp +219 -0
- httpp-0.10.0/tests/cpp/test_utils.cpp +274 -0
- httpp-0.10.0/tests/cpp/test_worker_pool.cpp +231 -0
- httpp-0.10.0/tests/cpp/tls_test_server.hpp +163 -0
- httpp-0.10.0/tests/python/conftest.py +228 -0
- httpp-0.10.0/tests/python/test_async_engine.py +210 -0
- httpp-0.10.0/tests/python/test_auth_rate_limit.py +156 -0
- httpp-0.10.0/tests/python/test_builders.py +236 -0
- httpp-0.10.0/tests/python/test_cli.py +1522 -0
- httpp-0.10.0/tests/python/test_client.py +390 -0
- httpp-0.10.0/tests/python/test_client_encoding.py +115 -0
- httpp-0.10.0/tests/python/test_client_keep_alive.py +45 -0
- httpp-0.10.0/tests/python/test_client_upload.py +198 -0
- httpp-0.10.0/tests/python/test_cookies.py +47 -0
- httpp-0.10.0/tests/python/test_download_progress_url.py +308 -0
- httpp-0.10.0/tests/python/test_download_settings.py +97 -0
- httpp-0.10.0/tests/python/test_download_sha256.py +150 -0
- httpp-0.10.0/tests/python/test_embed_file.py +122 -0
- httpp-0.10.0/tests/python/test_examples.py +485 -0
- httpp-0.10.0/tests/python/test_file_browser.py +392 -0
- httpp-0.10.0/tests/python/test_file_lock.py +108 -0
- httpp-0.10.0/tests/python/test_httpp_basic.py +115 -0
- httpp-0.10.0/tests/python/test_httpp_routes.py +670 -0
- httpp-0.10.0/tests/python/test_inline_async.py +245 -0
- httpp-0.10.0/tests/python/test_io_threads.py +177 -0
- httpp-0.10.0/tests/python/test_log.py +123 -0
- httpp-0.10.0/tests/python/test_log_bridge.py +133 -0
- httpp-0.10.0/tests/python/test_log_bridge_any_logger.py +155 -0
- httpp-0.10.0/tests/python/test_log_one_registry.py +36 -0
- httpp-0.10.0/tests/python/test_loopback.py +106 -0
- httpp-0.10.0/tests/python/test_openapi.py +300 -0
- httpp-0.10.0/tests/python/test_openapi_document.py +272 -0
- httpp-0.10.0/tests/python/test_openapi_security.py +148 -0
- httpp-0.10.0/tests/python/test_params_depends.py +387 -0
- httpp-0.10.0/tests/python/test_path_templates.py +38 -0
- httpp-0.10.0/tests/python/test_pathlib.py +84 -0
- httpp-0.10.0/tests/python/test_pool_thread_state.py +78 -0
- httpp-0.10.0/tests/python/test_proxy.py +89 -0
- httpp-0.10.0/tests/python/test_query_encoding.py +48 -0
- httpp-0.10.0/tests/python/test_reload.py +135 -0
- httpp-0.10.0/tests/python/test_request_limits.py +130 -0
- httpp-0.10.0/tests/python/test_request_streaming.py +260 -0
- httpp-0.10.0/tests/python/test_responses.py +262 -0
- httpp-0.10.0/tests/python/test_server_features.py +1112 -0
- httpp-0.10.0/tests/python/test_server_lifetime.py +263 -0
- httpp-0.10.0/tests/python/test_testclient.py +536 -0
- httpp-0.10.0/tests/python/test_tls.py +183 -0
- httpp-0.10.0/tests/python/test_websocket.py +540 -0
- httpp-0.10.0/tests/python/test_websocket_router.py +320 -0
- httpp-0.10.0/tests/utils/CMakeLists.txt +34 -0
- httpp-0.10.0/tests/utils/check_needed.cmake +28 -0
- httpp-0.10.0/tests/utils/fast_path.cpp +119 -0
- httpp-0.10.0/tests/utils/one_registry.cpp +32 -0
- httpp-0.10.0/tests/utils/registry_probe.cpp +12 -0
- httpp-0.10.0/tests/utils/utils_consumer.cpp +41 -0
- httpp-0.9.0/.github/workflows/cmake.yml +0 -103
- httpp-0.9.0/.github/workflows/docs.yml +0 -47
- httpp-0.9.0/.github/workflows/orchestrator.yml +0 -113
- httpp-0.9.0/.github/workflows/pages.yml +0 -61
- httpp-0.9.0/CHANGELOG.md +0 -501
- httpp-0.9.0/CMakeLists.txt +0 -321
- httpp-0.9.0/HANDOFF.md +0 -180
- httpp-0.9.0/PKG-INFO +0 -645
- httpp-0.9.0/README.md +0 -618
- httpp-0.9.0/benchmarks/CMakeLists.txt +0 -166
- httpp-0.9.0/benchmarks/README.md +0 -58
- httpp-0.9.0/benchmarks/cpp/cpp_bench.cpp +0 -49
- httpp-0.9.0/benchmarks/fastapi_app.py +0 -27
- httpp-0.9.0/benchmarks/results/full/cpp.json +0 -1312
- httpp-0.9.0/benchmarks/results/full/py314.json +0 -2864
- httpp-0.9.0/benchmarks/results/full/py314t.json +0 -2644
- httpp-0.9.0/benchmarks/results/full/system.json +0 -73
- httpp-0.9.0/benchmarks/suite.py +0 -729
- httpp-0.9.0/benchmarks/suite_app.py +0 -64
- httpp-0.9.0/benchmarks/suite_asgi.py +0 -28
- httpp-0.9.0/checklist.md +0 -102
- httpp-0.9.0/cmake/httppConfig.cmake.in +0 -8
- httpp-0.9.0/docs/Architecture.md +0 -410
- httpp-0.9.0/docs/adr/0001-own-both-layers.md +0 -33
- httpp-0.9.0/docs/adr/0002-standard-asyncio-loop.md +0 -33
- httpp-0.9.0/docs/adr/0003-engine-and-third-party.md +0 -38
- httpp-0.9.0/docs/adr/0004-zero-system-dependencies.md +0 -22
- httpp-0.9.0/docs/adr/0005-multiprocess-workers.md +0 -31
- httpp-0.9.0/docs/adr/0006-own-model-layer.md +0 -32
- httpp-0.9.0/docs/adr/0007-openapi-from-one-plan.md +0 -28
- httpp-0.9.0/docs/adr/0008-swagger-ui-compiled-in.md +0 -35
- httpp-0.9.0/docs/adr/0009-hot-path.md +0 -29
- httpp-0.9.0/docs/adr/0011-logging.md +0 -41
- httpp-0.9.0/docs/adr/0012-run-wins-over-listen.md +0 -35
- httpp-0.9.0/docs/adr/0013-packaging.md +0 -25
- httpp-0.9.0/docs/adr/0015-testing-and-ci.md +0 -52
- httpp-0.9.0/docs/adr/0016-hybrid-api-parity.md +0 -49
- httpp-0.9.0/docs/adr/0017-python-binding-policy.md +0 -44
- httpp-0.9.0/docs/adr/0018-python-logging-bridge.md +0 -50
- httpp-0.9.0/docs/adr/0020-http-exception-and-response-classes.md +0 -33
- httpp-0.9.0/docs/adr/0022-dual-api-rule-and-delegated-decisions.md +0 -109
- httpp-0.9.0/docs/adr/0023-inline-async-handlers.md +0 -79
- httpp-0.9.0/docs/adr/0024-io-threads-and-lanes.md +0 -50
- httpp-0.9.0/docs/adr/0025-measured-defaults-on-16-threads.md +0 -155
- httpp-0.9.0/docs/adr/0026-websocket.md +0 -111
- httpp-0.9.0/docs/adr/0027-websocket-python-and-async-handshake.md +0 -79
- httpp-0.9.0/docs/adr/0028-autobahn-called-by-the-orchestrator.md +0 -27
- httpp-0.9.0/docs/adr/0029-incremental-utf8-validation.md +0 -30
- httpp-0.9.0/docs/adr/0030-benchmarks-built-by-cmake.md +0 -36
- httpp-0.9.0/docs/adr/0031-compressed-embedded-files.md +0 -50
- httpp-0.9.0/docs/adr/0032-read-only-file-browser.md +0 -65
- httpp-0.9.0/docs/adr/0037-middleware-through-use.md +0 -36
- httpp-0.9.0/docs/adr/0041-native-cli-and-py.md +0 -59
- httpp-0.9.0/docs/adr/0042-test-client.md +0 -46
- httpp-0.9.0/docs/adr/0043-websocket-close-1001-on-drain.md +0 -45
- httpp-0.9.0/docs/adr/0046-testclient-websocket-and-files.md +0 -43
- httpp-0.9.0/docs/adr/0048-websocket-on-routers-and-dependencies.md +0 -26
- httpp-0.9.0/docs/adr/0049-split-the-cython-module-into-pxi-files.md +0 -21
- httpp-0.9.0/docs/adr/0050-own-logging-module-replaces-aixlog.md +0 -28
- httpp-0.9.0/docs/adr/0051-sync-client-on-the-async-engine.md +0 -44
- httpp-0.9.0/docs/adr/0052-downloads-stream-through-a-body-sink.md +0 -42
- httpp-0.9.0/docs/adr/0053-cpp-httplib-removed.md +0 -26
- httpp-0.9.0/docs/adr/0054-own-file-system-module.md +0 -37
- httpp-0.9.0/docs/adr/0055-httpp-path-class.md +0 -27
- httpp-0.9.0/docs/adr/0056-operating-system-log-handlers.md +0 -27
- httpp-0.9.0/docs/adr/0057-public-logging-module.md +0 -28
- httpp-0.9.0/docs/adr/0058-fs-merged-into-path.md +0 -25
- httpp-0.9.0/docs/adr/0059-free-threaded-pool-starts-at-two.md +0 -48
- httpp-0.9.0/docs/adr/0060-docs-site.md +0 -32
- httpp-0.9.0/docs/adr/0062-request-names-match-python.md +0 -28
- httpp-0.9.0/docs/adr/0063-benchmark-json-and-docs-page.md +0 -36
- httpp-0.9.0/docs/adr/0064-docs-site-on-github-pages.md +0 -29
- httpp-0.9.0/docs/adr/0065-file-browser-builder.md +0 -29
- httpp-0.9.0/docs/adr/0066-option-structs-become-builders.md +0 -28
- httpp-0.9.0/docs/adr/0067-urls-are-httpp-url-and-proxy-is-a-url.md +0 -28
- httpp-0.9.0/docs/adr/0070-file-browser-safe-mode.md +0 -42
- httpp-0.9.0/docs/adr/0071-client-pool-keeps-every-connection-of-a-burst.md +0 -42
- httpp-0.9.0/docs/adr/README.md +0 -88
- httpp-0.9.0/docs/site/README.md +0 -47
- httpp-0.9.0/docs/site/docs/benchmarks.mdx +0 -48
- httpp-0.9.0/docs/site/docs/client/download.mdx +0 -87
- httpp-0.9.0/docs/site/docs/client/get-request.mdx +0 -38
- httpp-0.9.0/docs/site/docs/client/post-request.mdx +0 -47
- httpp-0.9.0/docs/site/docs/intro.mdx +0 -23
- httpp-0.9.0/docs/site/docs/server/file-browser.mdx +0 -76
- httpp-0.9.0/docs/site/docs/server/get-route.mdx +0 -46
- httpp-0.9.0/docs/site/docs/server/hooks.mdx +0 -46
- httpp-0.9.0/docs/site/docs/server/request-data.mdx +0 -47
- httpp-0.9.0/docs/site/docs/server/responses.mdx +0 -55
- httpp-0.9.0/docs/site/docs/server/send-file.mdx +0 -46
- httpp-0.9.0/docs/site/docs/server/serve-directory.mdx +0 -60
- httpp-0.9.0/docs/site/docusaurus.config.ts +0 -42
- httpp-0.9.0/docs/site/scripts/prepare.py +0 -123
- httpp-0.9.0/docs/site/scripts/test_snippets.py +0 -322
- httpp-0.9.0/docs/site/sidebars.ts +0 -21
- httpp-0.9.0/docs/site/snippets/cpp/client_get.cpp +0 -12
- httpp-0.9.0/docs/site/snippets/cpp/client_post.cpp +0 -13
- httpp-0.9.0/docs/site/snippets/cpp/download_async.cpp +0 -13
- httpp-0.9.0/docs/site/snippets/cpp/download_file.cpp +0 -8
- httpp-0.9.0/docs/site/snippets/cpp/download_verified.cpp +0 -15
- httpp-0.9.0/docs/site/snippets/cpp/file_browser.cpp +0 -10
- httpp-0.9.0/docs/site/snippets/cpp/get_route.cpp +0 -11
- httpp-0.9.0/docs/site/snippets/cpp/hooks.cpp +0 -22
- httpp-0.9.0/docs/site/snippets/cpp/request_info.cpp +0 -14
- httpp-0.9.0/docs/site/snippets/cpp/responses.cpp +0 -22
- httpp-0.9.0/docs/site/snippets/python/file_browser.py +0 -7
- httpp-0.9.0/docs/site/snippets/python/request_info.py +0 -17
- httpp-0.9.0/docs/site/src/components/Lang.module.css +0 -40
- httpp-0.9.0/docs/site/src/components/Lang.tsx +0 -45
- httpp-0.9.0/docs/site/src/components/LangSwitch.module.css +0 -34
- httpp-0.9.0/docs/site/src/css/custom.css +0 -46
- httpp-0.9.0/docs/site/static/img/favicon.svg +0 -1
- httpp-0.9.0/examples/find_httpp_via_python/main.cpp +0 -8
- httpp-0.9.0/examples/python/01_hello_server.py +0 -17
- httpp-0.9.0/examples/python/02_path_params.py +0 -24
- httpp-0.9.0/examples/python/03_request_object.py +0 -28
- httpp-0.9.0/examples/python/04_responses.py +0 -45
- httpp-0.9.0/examples/python/05_http_methods.py +0 -49
- httpp-0.9.0/examples/python/06_async_handlers.py +0 -38
- httpp-0.9.0/examples/python/07_serve_directory.py +0 -23
- httpp-0.9.0/examples/python/08_error_handling.py +0 -30
- httpp-0.9.0/examples/python/09_client.py +0 -37
- httpp-0.9.0/examples/python/10_request_builder.py +0 -44
- httpp-0.9.0/examples/python/11_download.py +0 -35
- httpp-0.9.0/examples/python/12_hooks_and_settings.py +0 -81
- httpp-0.9.0/examples/python/13_streaming_and_files.py +0 -84
- httpp-0.9.0/examples/python/14_async_client.py +0 -66
- httpp-0.9.0/examples/python/15_progress_and_url.py +0 -31
- httpp-0.9.0/include/httpp/client.hpp +0 -306
- httpp-0.9.0/include/httpp/curl.hpp +0 -51
- httpp-0.9.0/include/httpp/curl_compat.h +0 -102
- httpp-0.9.0/include/httpp/download.hpp +0 -131
- httpp-0.9.0/include/httpp/export.hpp +0 -30
- httpp-0.9.0/include/httpp/file_browser.hpp +0 -70
- httpp-0.9.0/include/httpp/log.hpp +0 -51
- httpp-0.9.0/include/httpp/logging.hpp +0 -334
- httpp-0.9.0/include/httpp/middleware.hpp +0 -104
- httpp-0.9.0/include/httpp/path.hpp +0 -152
- httpp-0.9.0/include/httpp/progress.hpp +0 -86
- httpp-0.9.0/include/httpp/router.hpp +0 -77
- httpp-0.9.0/include/httpp/server.hpp +0 -321
- httpp-0.9.0/include/httpp/sha256.hpp +0 -25
- httpp-0.9.0/include/httpp/swagger_ui.hpp +0 -50
- httpp-0.9.0/include/httpp/url.hpp +0 -58
- httpp-0.9.0/include/httpp/websocket.hpp +0 -107
- httpp-0.9.0/include/httpp.h +0 -58
- httpp-0.9.0/pyproject.toml +0 -132
- httpp-0.9.0/src/assets/file_browser.html +0 -376
- httpp-0.9.0/src/bindings/python/CMakeLists.txt +0 -152
- httpp-0.9.0/src/bindings/python/cy/async_routes.pxi +0 -509
- httpp-0.9.0/src/bindings/python/cy/client.pxi +0 -308
- httpp-0.9.0/src/bindings/python/cy/declarations.pxi +0 -346
- httpp-0.9.0/src/bindings/python/cy/directory.pxi +0 -53
- httpp-0.9.0/src/bindings/python/cy/file_browser.pxi +0 -116
- httpp-0.9.0/src/bindings/python/cy/request.pxi +0 -280
- httpp-0.9.0/src/bindings/python/cy/server.pxi +0 -269
- httpp-0.9.0/src/bindings/python/cy/support.pxi +0 -222
- httpp-0.9.0/src/bindings/python/cy/swagger_ui.pxi +0 -41
- httpp-0.9.0/src/bindings/python/cy/transfer.pxi +0 -509
- httpp-0.9.0/src/bindings/python/httpp/__init__.py +0 -78
- httpp-0.9.0/src/bindings/python/httpp/_http.py +0 -132
- httpp-0.9.0/src/bindings/python/httpp/_log.py +0 -86
- httpp-0.9.0/src/bindings/python/httpp/_params.py +0 -542
- httpp-0.9.0/src/bindings/python/httpp/_router.py +0 -130
- httpp-0.9.0/src/bindings/python/httpp/_run.py +0 -321
- httpp-0.9.0/src/bindings/python/httpp/_schema.py +0 -429
- httpp-0.9.0/src/bindings/python/httpp/_websocket.py +0 -187
- httpp-0.9.0/src/bindings/python/httpp/middleware.py +0 -116
- httpp-0.9.0/src/bindings/python/httpp/progress.py +0 -34
- httpp-0.9.0/src/bindings/python/httpp/server.py +0 -1439
- httpp-0.9.0/src/bindings/python/httpp/testclient.py +0 -656
- httpp-0.9.0/src/bindings/python/httpp/utils.py +0 -14
- httpp-0.9.0/src/bindings/python/httpp_cli.py +0 -79
- httpp-0.9.0/src/bindings/python/httpp_cy.pyx +0 -34
- httpp-0.9.0/src/cli/httpp_cli.cpp +0 -426
- httpp-0.9.0/src/core/async_http.cpp +0 -804
- httpp-0.9.0/src/core/async_server.cpp +0 -1272
- httpp-0.9.0/src/core/client.cpp +0 -363
- httpp-0.9.0/src/core/curl.cpp +0 -51
- httpp-0.9.0/src/core/curl_compat.cpp +0 -246
- httpp-0.9.0/src/core/download.cpp +0 -520
- httpp-0.9.0/src/core/file_browser.cpp +0 -297
- httpp-0.9.0/src/core/form.cpp +0 -205
- httpp-0.9.0/src/core/http_exchange.cpp +0 -314
- httpp-0.9.0/src/core/internal/async_http.hpp +0 -107
- httpp-0.9.0/src/core/internal/async_server.hpp +0 -157
- httpp-0.9.0/src/core/internal/blocking_pool.hpp +0 -73
- httpp-0.9.0/src/core/internal/checksums.hpp +0 -45
- httpp-0.9.0/src/core/internal/http_exchange.hpp +0 -143
- httpp-0.9.0/src/core/internal/log.hpp +0 -45
- httpp-0.9.0/src/core/internal/logging_os.hpp +0 -196
- httpp-0.9.0/src/core/internal/response_compression.hpp +0 -31
- httpp-0.9.0/src/core/internal/urlencoded.hpp +0 -17
- httpp-0.9.0/src/core/internal/websocket.hpp +0 -135
- httpp-0.9.0/src/core/internal/worker_pool.hpp +0 -179
- httpp-0.9.0/src/core/log.cpp +0 -151
- httpp-0.9.0/src/core/logging.cpp +0 -569
- httpp-0.9.0/src/core/logging_os.cpp +0 -244
- httpp-0.9.0/src/core/middleware.cpp +0 -414
- httpp-0.9.0/src/core/path.cpp +0 -247
- httpp-0.9.0/src/core/progress.cpp +0 -62
- httpp-0.9.0/src/core/router.cpp +0 -100
- httpp-0.9.0/src/core/server.cpp +0 -1462
- httpp-0.9.0/src/core/sha256.cpp +0 -110
- httpp-0.9.0/src/core/swagger_ui.cpp +0 -160
- httpp-0.9.0/src/core/tls_session.cpp +0 -283
- httpp-0.9.0/src/core/url.cpp +0 -107
- httpp-0.9.0/src/core/websocket.cpp +0 -437
- httpp-0.9.0/src/third_party/swagger-ui/VENDORED.md +0 -10
- httpp-0.9.0/tests/CMakeLists.txt +0 -22
- httpp-0.9.0/tests/cmake/consumer_project/main.cpp +0 -134
- httpp-0.9.0/tests/cpp/CMakeLists.txt +0 -59
- httpp-0.9.0/tests/cpp/swagger_original.hpp +0 -16
- httpp-0.9.0/tests/cpp/test_async_https.cpp +0 -262
- httpp-0.9.0/tests/cpp/test_async_pool_proxy.cpp +0 -688
- httpp-0.9.0/tests/cpp/test_async_server.cpp +0 -605
- httpp-0.9.0/tests/cpp/test_async_stream.cpp +0 -155
- httpp-0.9.0/tests/cpp/test_certs.hpp +0 -42
- httpp-0.9.0/tests/cpp/test_client.cpp +0 -67
- httpp-0.9.0/tests/cpp/test_client_async_engine.cpp +0 -358
- httpp-0.9.0/tests/cpp/test_client_blocking_engine.cpp +0 -123
- httpp-0.9.0/tests/cpp/test_client_encoding.cpp +0 -160
- httpp-0.9.0/tests/cpp/test_client_request.cpp +0 -111
- httpp-0.9.0/tests/cpp/test_client_session.cpp +0 -211
- httpp-0.9.0/tests/cpp/test_curl.cpp +0 -111
- httpp-0.9.0/tests/cpp/test_curl_compat.cpp +0 -116
- httpp-0.9.0/tests/cpp/test_download.cpp +0 -452
- httpp-0.9.0/tests/cpp/test_download_transfer.cpp +0 -182
- httpp-0.9.0/tests/cpp/test_file_browser.cpp +0 -556
- httpp-0.9.0/tests/cpp/test_form.cpp +0 -127
- httpp-0.9.0/tests/cpp/test_log.cpp +0 -194
- httpp-0.9.0/tests/cpp/test_logging_module.cpp +0 -445
- httpp-0.9.0/tests/cpp/test_logging_os.cpp +0 -176
- httpp-0.9.0/tests/cpp/test_path.cpp +0 -266
- httpp-0.9.0/tests/cpp/test_progress.cpp +0 -43
- httpp-0.9.0/tests/cpp/test_router.cpp +0 -123
- httpp-0.9.0/tests/cpp/test_server.cpp +0 -529
- httpp-0.9.0/tests/cpp/test_server_compression.cpp +0 -93
- httpp-0.9.0/tests/cpp/test_server_conditional.cpp +0 -231
- httpp-0.9.0/tests/cpp/test_server_features.cpp +0 -402
- httpp-0.9.0/tests/cpp/test_server_io_routes.cpp +0 -404
- httpp-0.9.0/tests/cpp/test_server_io_threads.cpp +0 -191
- httpp-0.9.0/tests/cpp/test_server_middleware.cpp +0 -340
- httpp-0.9.0/tests/cpp/test_server_routing.cpp +0 -226
- httpp-0.9.0/tests/cpp/test_server_shutdown.cpp +0 -222
- httpp-0.9.0/tests/cpp/test_server_tls.cpp +0 -270
- httpp-0.9.0/tests/cpp/test_server_websocket.cpp +0 -712
- httpp-0.9.0/tests/cpp/test_sha256.cpp +0 -61
- httpp-0.9.0/tests/cpp/test_swagger_ui.cpp +0 -65
- httpp-0.9.0/tests/cpp/test_swagger_ui_route.cpp +0 -123
- httpp-0.9.0/tests/cpp/test_url.cpp +0 -62
- httpp-0.9.0/tests/cpp/test_worker_pool.cpp +0 -153
- httpp-0.9.0/tests/cpp/tls_test_server.hpp +0 -157
- httpp-0.9.0/tests/python/conftest.py +0 -91
- httpp-0.9.0/tests/python/test_async_engine.py +0 -210
- httpp-0.9.0/tests/python/test_builders.py +0 -168
- httpp-0.9.0/tests/python/test_cli.py +0 -472
- httpp-0.9.0/tests/python/test_client.py +0 -305
- httpp-0.9.0/tests/python/test_client_encoding.py +0 -105
- httpp-0.9.0/tests/python/test_client_keep_alive.py +0 -45
- httpp-0.9.0/tests/python/test_cpp_python_parity.py +0 -229
- httpp-0.9.0/tests/python/test_download_progress_url.py +0 -302
- httpp-0.9.0/tests/python/test_download_sha256.py +0 -150
- httpp-0.9.0/tests/python/test_embed_file.py +0 -122
- httpp-0.9.0/tests/python/test_examples.py +0 -37
- httpp-0.9.0/tests/python/test_file_browser.py +0 -234
- httpp-0.9.0/tests/python/test_httpp_basic.py +0 -115
- httpp-0.9.0/tests/python/test_httpp_routes.py +0 -532
- httpp-0.9.0/tests/python/test_inline_async.py +0 -232
- httpp-0.9.0/tests/python/test_io_threads.py +0 -177
- httpp-0.9.0/tests/python/test_log.py +0 -123
- httpp-0.9.0/tests/python/test_log_bridge.py +0 -133
- httpp-0.9.0/tests/python/test_openapi.py +0 -300
- httpp-0.9.0/tests/python/test_params_depends.py +0 -387
- httpp-0.9.0/tests/python/test_path_templates.py +0 -35
- httpp-0.9.0/tests/python/test_pathlib.py +0 -84
- httpp-0.9.0/tests/python/test_pool_thread_state.py +0 -37
- httpp-0.9.0/tests/python/test_portability_sources.py +0 -21
- httpp-0.9.0/tests/python/test_query_encoding.py +0 -48
- httpp-0.9.0/tests/python/test_reload.py +0 -149
- httpp-0.9.0/tests/python/test_responses.py +0 -262
- httpp-0.9.0/tests/python/test_server_features.py +0 -1090
- httpp-0.9.0/tests/python/test_testclient.py +0 -476
- httpp-0.9.0/tests/python/test_tls.py +0 -183
- httpp-0.9.0/tests/python/test_websocket.py +0 -540
- httpp-0.9.0/tests/python/test_websocket_router.py +0 -320
- {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/autobahn.yml +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/release_template.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/.github/workflows/wheels.yml +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/.gitignore +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/.gitmodules +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/LICENSE.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/asgi_app.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench_setup.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/bench_validate.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/client_worker.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpp/drogon_bench.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpp/ws_load.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpu_app.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/cpu_bench.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_async_client.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_io.sh +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/diag_sync_client.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/gzip_app.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/gzip_bench.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/httpp_app.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/io_app.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/io_bench.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/results/.gitignore +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/run.sh +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/stress.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/suite_aiohttp.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/benchmarks/ws_websockets.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/DynamicVersion.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/EmbedFile.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/FindCython.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/Optimize.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/Startup.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/UseCython.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/httpp_mbedtls_config.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/cmake/utils/embedded_files.in.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0010-mbedtls-threading.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0014-coding-conventions.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0019-vendored-deflate-inflate.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0021-pool-thread-state-and-two-core-numbers.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0033-engine-per-request-cost.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0034-balanced-connections-between-io-threads.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0035-hook-path-needs-no-server-pointer.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0036-connection-read-buffer-not-zero-filled.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0038-graceful-shutdown.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0039-reload-supervisor.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0040-server-tls.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0044-worker-respawn.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0045-conditional-static-files.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0047-one-mime-table-and-exchange-leak.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0061-server-gzip-defaults.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0068-socks5-proxy.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/adr/0069-forwarded-headers.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/agent.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/index.rst +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/.gitignore +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/docs/install.mdx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/languages.json +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/package-lock.json +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/package.json +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Bench.module.css +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Bench.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/LangContext.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/LangSwitch.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/components/Only.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/theme/NavbarItem/ComponentTypes.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/src/theme/Root.tsx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/docs/site/tsconfig.json +0 -0
- /httpp-0.9.0/docs/site/snippets/python/download_async.py → /httpp-0.10.0/examples/download/python/async.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/download_file.py → /httpp-0.10.0/examples/download/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/download_verified.py → /httpp-0.10.0/examples/download/python/verified.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/examples/find_httpp_via_python/CMakeLists.txt +0 -0
- /httpp-0.9.0/docs/site/snippets/python/client_get.py → /httpp-0.10.0/examples/get_request/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/get_route.py → /httpp-0.10.0/examples/get_route/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/hooks.py → /httpp-0.10.0/examples/hooks/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/client_post.py → /httpp-0.10.0/examples/post_request/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/python/responses.py → /httpp-0.10.0/examples/responses/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/cpp/send_file.cpp → /httpp-0.10.0/examples/send_file/cpp/main.cpp +0 -0
- /httpp-0.9.0/docs/site/snippets/python/send_file.py → /httpp-0.10.0/examples/send_file/python/main.py +0 -0
- /httpp-0.9.0/docs/site/snippets/cpp/serve_folder.cpp → /httpp-0.10.0/examples/serve_directory/cpp/main.cpp +0 -0
- /httpp-0.9.0/docs/site/snippets/python/serve_folder.py → /httpp-0.10.0/examples/serve_directory/python/main.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/requirements-dev.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/_validate_cy.pyx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/__main__.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_background.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_forms.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_reload.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/_validate.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/errors.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/models.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/responses.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/bindings/python/httpp/status.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/content_decode.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/deflate.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/inflate.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/content_decode.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/deflate.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/inflate.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/internal/tls_session.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/mbedtls_alt/threading_alt.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/mbedtls_threading.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/response_compression.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/core/websocket_api.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/CLI11/CLI11.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/README.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/indicators/indicators.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/LICENSE +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/VENDORED.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/include/llhttp.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/api.c +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/http.c +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/llhttp/src/llhttp.c +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/LICENSE +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/VENDORED.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_deflate/stb_deflate.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/LICENSE +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/VENDORED.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/stb_inflate/stb_inflate.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/LICENSE +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/NOTICE +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-api-icon.svg +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui-bundle.js +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui-bundle.js.LICENSE.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/src/third_party/swagger-ui/swagger-ui.css +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/CMakeLists.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/consumer_project/CMakeLists.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/embed_compress/CMakeLists.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/embed_compress/main.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cmake/run_consumer_test.cmake +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/inflate_fixtures.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/local_server.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_async_http.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_deflate.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_inflate.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_mime.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_server_after_send.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/test_websocket_session.cpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/cpp/ws_test_client.hpp +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/CMakeLists.txt +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_abi3_safe.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_cli_path.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_forms.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_middleware.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_models_vs_pydantic.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_response_injection.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_router.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_run.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_server_raw_request.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_shutdown.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/python/test_validate_vs_pydantic.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/utest/utest.h +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tests/utest/utest_main.cxx +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/README.md +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/check_report.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/echo_server.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/autobahn/fuzzingclient.json +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_fastapi_deps_responses.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_fastapi_params.py +0 -0
- {httpp-0.9.0 → httpp-0.10.0}/tools/fastapi_probes/probe_pydantic_types.py +0 -0
- {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
|