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