foghttp 0.3.9__tar.gz → 0.4.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.
- {foghttp-0.3.9 → foghttp-0.4.0}/.flake8 +4 -0
- foghttp-0.4.0/.github/dependabot.yml +14 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/.github/workflows/ci.yml +24 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/.github/workflows/release.yml +3 -3
- {foghttp-0.3.9 → foghttp-0.4.0}/.pre-commit-config.yaml +6 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/CONTRIBUTING.md +23 -7
- {foghttp-0.3.9 → foghttp-0.4.0}/Cargo.lock +1 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/Cargo.toml +1 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/PKG-INFO +28 -7
- {foghttp-0.3.9 → foghttp-0.4.0}/README.md +24 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/SECURITY.md +20 -3
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/benchmarks.md +100 -4
- foghttp-0.4.0/docs/httpx-migration.md +663 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/index.md +17 -4
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/lifecycle.md +104 -10
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/limitations.md +12 -4
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/packaging.md +7 -1
- foghttp-0.4.0/docs/prometheus.md +220 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/quickstart.md +20 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/request-builder.md +20 -0
- foghttp-0.4.0/docs/telemetry.md +321 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/timeouts.md +4 -4
- foghttp-0.4.0/docs/typing.md +80 -0
- foghttp-0.4.0/docs/upload-types.md +117 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/README.md +16 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/http_proxy.py +5 -4
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/__init__.py +8 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/core.py +51 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/lifecycle.py +7 -3
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/requests.py +8 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/retry.py +9 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/stream_context.py +5 -5
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/__init__.py +5 -1
- foghttp-0.4.0/foghttp/_client/telemetry/dispatcher.py +271 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/emission.py +25 -0
- foghttp-0.4.0/foghttp/_client/telemetry/hook_errors.py +44 -0
- foghttp-0.4.0/foghttp/_client/telemetry/native.py +147 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/request_context.py +13 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/request_events.py +4 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/responses.py +15 -11
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/transport.py +35 -11
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_foghttp.pyi +30 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/stream.py +24 -15
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_telemetry.py +1 -1
- foghttp-0.4.0/foghttp/_upload_body/cleanup.py +110 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/feeders.py +14 -33
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/runtime.py +59 -50
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/thread_bridge.py +18 -3
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/async_client.py +61 -7
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/client.py +89 -35
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/__init__.py +2 -0
- foghttp-0.4.0/foghttp/errors/configuration.py +7 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/messages.py +1 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/policy.py +9 -3
- foghttp-0.4.0/foghttp/prometheus/__init__.py +9 -0
- foghttp-0.4.0/foghttp/prometheus/labels.py +157 -0
- foghttp-0.4.0/foghttp/prometheus/stats.py +122 -0
- foghttp-0.4.0/foghttp/prometheus/telemetry.py +364 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/async_response.py +6 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/base.py +14 -4
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/bindings.py +5 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/sync_response.py +6 -2
- foghttp-0.4.0/foghttp/stream_response/telemetry.py +90 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/telemetry/__init__.py +2 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/telemetry/events.py +7 -5
- foghttp-0.4.0/foghttp/telemetry/logging.py +88 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/types/__init__.py +12 -0
- foghttp-0.4.0/foghttp/types/protocols.py +144 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/pyproject.toml +5 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/ruff.toml +2 -2
- foghttp-0.4.0/scripts/install_wheel_smoke.py +89 -0
- foghttp-0.4.0/scripts/wheel_smoke_runtime.py +161 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/mod.rs +16 -3
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/telemetry/mod.rs +200 -15
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/telemetry/tests.rs +146 -24
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/write_timeout.rs +7 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/mod.rs +1 -0
- foghttp-0.4.0/src/core/telemetry.rs +1262 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/active.rs +12 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/spawn.rs +14 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/stream_spawn.rs +18 -10
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/mod.rs +79 -9
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/callback.rs +1 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/registry.rs +1 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/response.rs +20 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/state.rs +49 -14
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/state_tests.rs +64 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/buffered.rs +3 -2
- foghttp-0.4.0/src/py/client/transport/errors.rs +115 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/request.rs +232 -18
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/response.rs +50 -7
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/streaming.rs +3 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/mod.rs +3 -0
- foghttp-0.4.0/src/py/telemetry.rs +86 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_data.py +2 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_telemetry.py +14 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_async_client_lifecycle.py +6 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_client_lifecycle.py +11 -12
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_close_race.py +2 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/sources.py +54 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/test_async_multipart.py +54 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/test_multipart_internals.py +73 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/test_sync_multipart.py +81 -12
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/raw_options.py +1 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/test_async_query.py +2 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/test_sync_query.py +2 -1
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/test_async_retry.py +14 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/test_attempt_trace.py +5 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/test_sync_retry.py +21 -5
- foghttp-0.4.0/tests/client_telemetry/assertions.py +181 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/constants.py +13 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/models.py +13 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/test_async_stream_hooks.py +54 -1
- foghttp-0.4.0/tests/client_telemetry/test_async_stream_telemetry.py +369 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/test_async_telemetry.py +6 -1
- foghttp-0.4.0/tests/client_telemetry/test_concurrent_delivery.py +123 -0
- foghttp-0.4.0/tests/client_telemetry/test_event_contract.py +361 -0
- foghttp-0.4.0/tests/client_telemetry/test_native_lifecycle_events.py +586 -0
- foghttp-0.4.0/tests/client_telemetry/test_structured_logging.py +255 -0
- foghttp-0.4.0/tests/client_telemetry/test_sync_stream_telemetry.py +315 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/test_tls_config.py +18 -2
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_upload/test_streaming_upload.py +148 -32
- foghttp-0.4.0/tests/client_upload/test_upload_helpers.py +430 -0
- foghttp-0.4.0/tests/examples/test_imports.py +294 -0
- foghttp-0.4.0/tests/prometheus/test_integration.py +145 -0
- foghttp-0.4.0/tests/prometheus/test_optional_dependency.py +30 -0
- foghttp-0.4.0/tests/prometheus/test_stats_collector.py +115 -0
- foghttp-0.4.0/tests/prometheus/test_telemetry_sink.py +860 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/test_raw_client_signatures.py +2 -0
- foghttp-0.4.0/tests/redirect_helpers.py +57 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_body.py +34 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_shortcuts.py +28 -14
- foghttp-0.4.0/tests/response_decompression/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/server.py +9 -6
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/sync_http_server.py +12 -11
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_client_options.py +1 -1
- foghttp-0.4.0/tests/test_public_api.py +91 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_raw_client.py +4 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_raw_client_errors.py +50 -8
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_runtime_workers.py +1 -1
- foghttp-0.4.0/tests/test_transport_stats.py +72 -0
- foghttp-0.4.0/tests/types/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/types/test_policy_contracts.py +11 -15
- foghttp-0.4.0/tests/types/test_prometheus_contracts.py +21 -0
- foghttp-0.4.0/tests/types/test_request_response_protocols.py +72 -0
- foghttp-0.4.0/tests/types/test_structured_logging_contracts.py +11 -0
- foghttp-0.4.0/tests/types/test_telemetry_contracts.py +23 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/uv.lock +17 -2
- foghttp-0.3.9/docs/telemetry.md +0 -186
- foghttp-0.3.9/docs/upload-types.md +0 -92
- foghttp-0.3.9/foghttp/_client/telemetry/dispatcher.py +0 -152
- foghttp-0.3.9/foghttp/stream_response/telemetry.py +0 -44
- foghttp-0.3.9/scripts/install_wheel_smoke.py +0 -120
- foghttp-0.3.9/src/py/client/transport/errors.rs +0 -81
- foghttp-0.3.9/tests/client_telemetry/assertions.py +0 -103
- foghttp-0.3.9/tests/client_telemetry/test_async_stream_telemetry.py +0 -115
- foghttp-0.3.9/tests/client_telemetry/test_concurrent_delivery.py +0 -49
- foghttp-0.3.9/tests/client_telemetry/test_event_contract.py +0 -66
- foghttp-0.3.9/tests/client_telemetry/test_sync_stream_telemetry.py +0 -148
- foghttp-0.3.9/tests/client_upload/test_upload_helpers.py +0 -174
- foghttp-0.3.9/tests/redirect_helpers.py +0 -50
- foghttp-0.3.9/tests/test_public_api.py +0 -64
- foghttp-0.3.9/tests/test_transport_stats.py +0 -70
- {foghttp-0.3.9 → foghttp-0.4.0}/.gitignore +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/CODE_OF_CONDUCT.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/LICENSE +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/auth.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/cookies.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/policy-hooks.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/proxies.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/pyo3-boundary.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/redirects.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/retries.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/ssrf.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/streaming.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/tls.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/docs/use-cases.md +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/async_json_fanout.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/async_lifecycle_debug.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/async_resource_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/async_streaming.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/authentication.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/compressed_response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/cookies.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/multipart_uploads.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/prepared_requests.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/request_builder_compatibility.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/retry_policy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/ssrf_policy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/sync_json_api.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/sync_streaming.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/examples/telemetry_hooks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_auth_headers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/asyncio_futures.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/auth.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/config.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/lifecycle_debug.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/options.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/process.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/auth.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/environment.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy_rule.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy_tokens.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/resolver.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/transport_policy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/proxy/url_parsing.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/errors.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/ssrf_errors.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/raw/timeout_errors.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/builder.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/defaults.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/header_policy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/merge.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/request_builder/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/retry_trace_mapping.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/runtime/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/runtime/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/runtime/mode.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/runtime/validation.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/runtime/workers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/stats.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/clock.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/retries.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/telemetry/url.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/tls.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/transport_requests.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_client/transport_snapshot_mapping.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/content_type.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/encoding.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/fields.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/file_parts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/iterators.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/length.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/normalize.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/parts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_multipart/values.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_redaction.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_request_body.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_response/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_response/encoding.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_response/status.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/text/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/text/async_chunks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/text/iterators.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/text/lines.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_streaming/text/sync_chunks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/async_sending.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/chunks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/file_source.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/normalize.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_upload_body/predicates.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_validation/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_validation/callables.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_validation/numeric.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/_validation/ssrf.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/auth.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/body.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/base.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/lifecycle.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/ssrf.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/errors/timeout.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/headers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/lifecycle_debug.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/methods.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/pool_diagnostics.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/py.typed +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/request.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/request_extensions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/request_info.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/retry.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/retry_trace.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/ssrf.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stats.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/status_codes/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/status_codes/client_error.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/status_codes/redirect.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/status_codes/server_error.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/status_codes/success.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/lifecycle_debug.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/stream_response/status.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/telemetry/config.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/telemetry/errors.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/telemetry/sinks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/timeout_diagnostics.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/timeouts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/tls.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/transport_state.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/transport_stats.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/types/http.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/types/multipart.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/types/request.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/types/streams.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/foghttp/url.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/logo.png +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/scripts/check_all_position.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/body.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/connection_limit.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/authorization.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/endpoint.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/http.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/proxy/tunnel.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/client/ssrf.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/headers/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/headers/request.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/headers/response.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/headers/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/method.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/atomic.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/buffered.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/counters.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/lifecycle.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/blocking.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/metrics.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/registry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/snapshots.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/origin/waiters.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/snapshots.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/telemetry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/metrics/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/numeric/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/numeric/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/cookies.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/error.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/pipeline.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/proxy.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/action.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/headers.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/method.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/policy.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/status.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/redirect/utils.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/request.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/retry/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/retry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/ssrf.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/policy/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/request.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/response/body.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/response/budget.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/response/decompression.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/response/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/tls/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/tls/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/url/constants.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/url/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/url/origin.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/url/scheme.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/core/url/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/errors.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/lib.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/messages.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/diagnostics.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/gate.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/origin.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/pending.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/permit.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/telemetry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/acquire/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/callback.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/async_requests/registry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/auth.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/future.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/lifecycle/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/lifecycle/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/options.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/policy_hooks.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/process.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/runtime/constants.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/runtime/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/runtime/shared.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/runtime/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/runtime/workers.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/constants.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/parts.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/streams/read.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/timeout_diagnostics.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/body.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/client.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/context.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/mod.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/retry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/transport/tests.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/client/upload_body.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/pool_diagnostics.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/response.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/retry.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/stats.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/transport_state.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/src/py/url.rs +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_auth/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_auth/test_async_auth.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_auth/test_contract.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_auth/test_sync_auth.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_actions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_predicates.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_cancellation.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_buffered.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_messages.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_streaming.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_strict.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cancellation/test_asyncio_helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cookies/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cookies/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cookies/test_async_cookies.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_cookies/test_sync_cookies.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/test_async_keepalive.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_keepalive/test_sync_keepalive.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/fork_actions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_close_safety.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_safety.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_stream_safety.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_raw_client_lifecycle.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_close_waits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_multipart/test_request_builder.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/test_numeric_validation.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/test_raw_numeric_boundary.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/test_raw_retry_boundary.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_options/test_raw_ssrf_boundary.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_policy_hooks/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_policy_hooks/requests.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_policy_hooks/test_async_hooks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_policy_hooks/test_contract.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_policy_hooks/test_sync_hooks.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/client_options.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/connect_proxy_server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/environment.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/http_proxy_server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_client_config.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_environment.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_http_proxy_transport.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_https_proxy_connect.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_no_proxy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_proxy/test_proxy_models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/test_async_query_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/test_request_builder.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_query/test_sync_query_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_connection_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_global_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_origin_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_pool_diagnostics.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_response_body_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_async_transport_state.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_diagnostic_snapshot_contract.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_connection_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_global_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_origin_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_pool_diagnostics.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_response_body_limits.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_resources/test_sync_transport_state.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/sources.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/test_auth_refresh.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_retry/test_policy_config.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_ssrf/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_ssrf/test_async_ssrf.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_ssrf/test_policy_config.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_ssrf/test_sync_ssrf.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/stream_readers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/test_async_streaming.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/test_async_streaming_text_lines.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/test_streaming_text_decoding.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/test_sync_streaming.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/test_sync_streaming_text_lines.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_streaming/text_decoding_sources.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_telemetry/test_sync_telemetry.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/test_async_timeouts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_timeouts/test_sync_timeouts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/certificates.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/handshake_server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/test_async_tls.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/test_async_tls_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/test_sync_tls.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_tls/test_sync_tls_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_transport/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_transport/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_transport/test_transport_adapter.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_upload/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_upload/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/client_warning_actions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/conftest.py +0 -0
- {foghttp-0.3.9/tests/fault_injection → foghttp-0.4.0/tests/examples}/__init__.py +0 -0
- {foghttp-0.3.9/tests/network_errors → foghttp-0.4.0/tests/fault_injection}/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/models.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/protocol.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/responses.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/state.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/state_assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/test_async_fault_injection.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/test_async_socket_shutdown.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/test_sync_fault_injection.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/test_sync_socket_shutdown.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/timeout_assertions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/fault_injection/transport_waiters.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/http_body_scenarios.py +0 -0
- {foghttp-0.3.9/tests/request_builder → foghttp-0.4.0/tests/network_errors}/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/network_errors/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/network_errors/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/network_errors/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/network_errors/test_async_network_errors.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/network_errors/test_sync_network_errors.py +0 -0
- {foghttp-0.3.9/tests/response_decompression → foghttp-0.4.0/tests/prometheus}/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/async_future_server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/gil_progress.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/test_async_future_boundary.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/test_sync_gil_boundary.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/pyo3_boundary/thread_worker.py +0 -0
- {foghttp-0.3.9/tests/types → foghttp-0.4.0/tests/request_builder}/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/encoding_property_helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_base_url.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_default_headers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_default_params.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_encoding_properties.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_extensions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_header_policy.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_headers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_merge_contract.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_no_mutation.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_parity.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_builder/test_query_params.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/request_factories.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/conftest.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/constants.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/helpers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/payloads.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/test_async_response_decompression.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/response_decompression/test_sync_response_decompression.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/__init__.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/async_http_server.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/http_routes.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/raw_responses.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/timeout_diagnostics.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/transport_state.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/support/transport_stats.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_async_client.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_async_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_async_response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_headers.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_query_params.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_redaction.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_request_extensions.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_request_model.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_response_encoding.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_response_flags.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_sync_client.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_sync_redirects.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_sync_response.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_transport_stats_waiters.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/test_url.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/types/test_auth_contracts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/types/test_request_extensions_contracts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/types/test_retry_trace_contracts.py +0 -0
- {foghttp-0.3.9 → foghttp-0.4.0}/tests/types/test_upload_contracts.py +0 -0
|
@@ -53,3 +53,7 @@ per-file-ignores =
|
|
|
53
53
|
# Explicit guard/mapping functions are clearer as direct raises than as indirection tables.
|
|
54
54
|
foghttp/_client/options.py: WPS238
|
|
55
55
|
foghttp/_client/raw/errors.py: WPS238
|
|
56
|
+
# Tests require descriptive names, rich scenario setup, repeated fixtures/data,
|
|
57
|
+
# exact-value assertions, local doubles and explicit cleanup. Ruff's ALL profile
|
|
58
|
+
# owns their general correctness checks; Wemake still enforces all other rules.
|
|
59
|
+
tests/**: WPS100, WPS114, WPS118, WPS122, WPS201, WPS202, WPS204, WPS210, WPS211, WPS212, WPS213, WPS214, WPS217, WPS218, WPS219, WPS220, WPS221, WPS222, WPS223, WPS226, WPS228, WPS229, WPS230, WPS231, WPS232, WPS235, WPS237, WPS243, WPS324, WPS328, WPS336, WPS338, WPS342, WPS353, WPS358, WPS362, WPS414, WPS420, WPS430, WPS431, WPS432, WPS435, WPS441, WPS459, WPS476, WPS478, WPS501, WPS504, WPS505, WPS516, WPS520, WPS527
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Zero disables routine version PRs, not repository-level security updates.
|
|
4
|
+
- package-ecosystem: "cargo"
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "weekly"
|
|
8
|
+
open-pull-requests-limit: 0
|
|
9
|
+
|
|
10
|
+
- package-ecosystem: "uv"
|
|
11
|
+
directory: "/"
|
|
12
|
+
schedule:
|
|
13
|
+
interval: "weekly"
|
|
14
|
+
open-pull-requests-limit: 0
|
|
@@ -61,6 +61,29 @@ jobs:
|
|
|
61
61
|
- name: Run Rust tests
|
|
62
62
|
run: cargo test --all-targets
|
|
63
63
|
|
|
64
|
+
rust-msrv:
|
|
65
|
+
name: Rust MSRV (1.88)
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
timeout-minutes: 20
|
|
68
|
+
steps:
|
|
69
|
+
- name: Checkout
|
|
70
|
+
uses: actions/checkout@v4
|
|
71
|
+
|
|
72
|
+
- name: Set up Rust MSRV
|
|
73
|
+
uses: dtolnay/rust-toolchain@1.88.0
|
|
74
|
+
|
|
75
|
+
- name: Cache Rust
|
|
76
|
+
uses: Swatinem/rust-cache@v2
|
|
77
|
+
|
|
78
|
+
- name: Show Rust version
|
|
79
|
+
run: rustc --version
|
|
80
|
+
|
|
81
|
+
- name: Run Rust tests at MSRV
|
|
82
|
+
run: cargo test --locked --all-targets
|
|
83
|
+
|
|
84
|
+
- name: Check release features at MSRV
|
|
85
|
+
run: cargo check --locked --all-targets --all-features
|
|
86
|
+
|
|
64
87
|
abi3-wheel:
|
|
65
88
|
name: Build and audit abi3 wheel
|
|
66
89
|
runs-on: ubuntu-latest
|
|
@@ -121,7 +144,7 @@ jobs:
|
|
|
121
144
|
path: dist
|
|
122
145
|
|
|
123
146
|
- name: Smoke test wheel install
|
|
124
|
-
run: python scripts/install_wheel_smoke.py --dist-dir dist
|
|
147
|
+
run: python -I -S scripts/install_wheel_smoke.py --dist-dir dist
|
|
125
148
|
|
|
126
149
|
tests:
|
|
127
150
|
name: Tests (Python ${{ matrix.python-version }})
|
|
@@ -108,7 +108,7 @@ jobs:
|
|
|
108
108
|
path: dist
|
|
109
109
|
|
|
110
110
|
- name: Smoke test wheel install
|
|
111
|
-
run: python scripts/install_wheel_smoke.py --dist-dir dist
|
|
111
|
+
run: python -I -S scripts/install_wheel_smoke.py --dist-dir dist
|
|
112
112
|
|
|
113
113
|
macos-wheels:
|
|
114
114
|
name: Build macOS wheel (${{ matrix.platform.name }})
|
|
@@ -179,7 +179,7 @@ jobs:
|
|
|
179
179
|
path: dist
|
|
180
180
|
|
|
181
181
|
- name: Smoke test wheel install
|
|
182
|
-
run: python scripts/install_wheel_smoke.py --dist-dir dist
|
|
182
|
+
run: python -I -S scripts/install_wheel_smoke.py --dist-dir dist
|
|
183
183
|
|
|
184
184
|
windows-wheels:
|
|
185
185
|
name: Build Windows wheel (x64)
|
|
@@ -236,7 +236,7 @@ jobs:
|
|
|
236
236
|
path: dist
|
|
237
237
|
|
|
238
238
|
- name: Smoke test wheel install
|
|
239
|
-
run: python scripts/install_wheel_smoke.py --dist-dir dist
|
|
239
|
+
run: python -I -S scripts/install_wheel_smoke.py --dist-dir dist
|
|
240
240
|
|
|
241
241
|
audit-wheels:
|
|
242
242
|
name: Audit stable ABI wheels
|
|
@@ -17,7 +17,7 @@ repos:
|
|
|
17
17
|
- "--autofix"
|
|
18
18
|
- id: check-json
|
|
19
19
|
- id: check-yaml
|
|
20
|
-
exclude: ^\.github/
|
|
20
|
+
exclude: ^\.github/workflows/
|
|
21
21
|
- id: check-toml
|
|
22
22
|
- id: end-of-file-fixer
|
|
23
23
|
- id: trailing-whitespace
|
|
@@ -53,9 +53,12 @@ repos:
|
|
|
53
53
|
rev: "7.3.0"
|
|
54
54
|
hooks:
|
|
55
55
|
- id: flake8
|
|
56
|
+
name: wemake
|
|
56
57
|
additional_dependencies:
|
|
57
58
|
- wemake-python-styleguide==1.6.2
|
|
58
|
-
|
|
59
|
+
args: [foghttp, tests]
|
|
60
|
+
always_run: true
|
|
61
|
+
pass_filenames: false
|
|
59
62
|
|
|
60
63
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
61
64
|
rev: v2.1.0
|
|
@@ -64,6 +67,7 @@ repos:
|
|
|
64
67
|
additional_dependencies:
|
|
65
68
|
- no_implicit_optional
|
|
66
69
|
- orjson>=3.11,<4
|
|
70
|
+
- prometheus-client>=0.25,<1
|
|
67
71
|
- typing-extensions>=4.3.0,<5
|
|
68
72
|
args: [--config-file=pyproject.toml, --install-types, --non-interactive]
|
|
69
73
|
files: ^(foghttp|tests/types)/.*\.pyi?$
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Thank you for taking the time to improve FogHTTP.
|
|
4
4
|
|
|
5
|
-
FogHTTP is
|
|
6
|
-
project is intentionally focused: it is built for controlled
|
|
7
|
-
HTTP workloads where explicit lifecycle, predictable
|
|
8
|
-
cancellation, redirect safety, TLS trust boundaries, and
|
|
9
|
-
visibility matter more than broad browser-like feature parity.
|
|
5
|
+
FogHTTP is a focused pre-`0.5` HTTP client for Python with a Rust transport
|
|
6
|
+
core. The project is intentionally focused: it is built for controlled
|
|
7
|
+
service-to-service HTTP workloads where explicit lifecycle, predictable
|
|
8
|
+
resource usage, cancellation, redirect safety, TLS trust boundaries, and
|
|
9
|
+
request pressure visibility matter more than broad browser-like feature parity.
|
|
10
10
|
|
|
11
11
|
The project values engineers who are interested in serious implementation work:
|
|
12
12
|
debugging, measurement, API design, resource ownership, security boundaries, and
|
|
@@ -150,8 +150,7 @@ uv run --extra dev --with "maturin>=1.7,<2" maturin develop
|
|
|
150
150
|
Run the Python test suite with coverage:
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
|
-
uv run --extra dev coverage run -m pytest
|
|
154
|
-
uv run --extra dev coverage report -m
|
|
153
|
+
uv run --extra dev coverage run -m pytest && uv run --extra dev coverage report -m
|
|
155
154
|
```
|
|
156
155
|
|
|
157
156
|
Run the project checks:
|
|
@@ -160,6 +159,13 @@ Run the project checks:
|
|
|
160
159
|
uv run --extra dev pre-commit run --all-files --show-diff-on-failure
|
|
161
160
|
```
|
|
162
161
|
|
|
162
|
+
Check that every top-level `examples/*.py` file still imports without running
|
|
163
|
+
its network-dependent `main` block:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
uv run --extra dev pytest -q tests/examples
|
|
167
|
+
```
|
|
168
|
+
|
|
163
169
|
When changing Rust code, also run the relevant Rust checks:
|
|
164
170
|
|
|
165
171
|
```bash
|
|
@@ -210,6 +216,13 @@ Tests should prove observable behavior. For lifecycle, cancellation, metrics,
|
|
|
210
216
|
redirects, TLS, and resource-limit changes, assert on public state, errors, or
|
|
211
217
|
diagnostics where possible.
|
|
212
218
|
|
|
219
|
+
Any future convenience helper must satisfy the normative
|
|
220
|
+
[explicit client ownership contract](docs/lifecycle.md#explicit-client-ownership).
|
|
221
|
+
Treat its lifecycle and test matrix as required review gates, including sync
|
|
222
|
+
and async coverage where applicable, runtime isolation, borrowed-client
|
|
223
|
+
usability, streaming cleanup, and terminal quiescence without resource leaks.
|
|
224
|
+
Do not introduce a hidden global client or shared connection pool.
|
|
225
|
+
|
|
213
226
|
## Commit Messages
|
|
214
227
|
|
|
215
228
|
Use Conventional Commits:
|
|
@@ -240,10 +253,13 @@ Before requesting review, please check:
|
|
|
240
253
|
- Python tests pass
|
|
241
254
|
- Rust tests pass when Rust code changed
|
|
242
255
|
- pre-commit passes
|
|
256
|
+
- every top-level `examples/*.py` file passes the import smoke check
|
|
243
257
|
- public API changes update types, docs, and examples
|
|
244
258
|
- security-sensitive behavior has regression tests
|
|
245
259
|
- new errors and diagnostics avoid leaking secrets
|
|
246
260
|
- limitations are documented honestly if the feature is partial
|
|
261
|
+
- release pull requests complete every evidence field for the example and
|
|
262
|
+
benchmark smoke gates in [docs/benchmarks.md](./docs/benchmarks.md)
|
|
247
263
|
|
|
248
264
|
The project is small on purpose. A contribution that preserves that clarity is
|
|
249
265
|
usually easier to merge than a broad change that tries to solve several future
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foghttp
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Framework :: AsyncIO
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -18,12 +18,15 @@ Requires-Dist: faker>=33 ; extra == 'dev'
|
|
|
18
18
|
Requires-Dist: hypothesis>=6,<7 ; extra == 'dev'
|
|
19
19
|
Requires-Dist: mypy>=2.1,<3 ; extra == 'dev'
|
|
20
20
|
Requires-Dist: pre-commit>=4,<5 ; extra == 'dev'
|
|
21
|
+
Requires-Dist: prometheus-client>=0.25,<1 ; extra == 'dev'
|
|
21
22
|
Requires-Dist: pytest>=8 ; extra == 'dev'
|
|
22
23
|
Requires-Dist: pytest-asyncio>=0.23 ; extra == 'dev'
|
|
23
24
|
Requires-Dist: pytest-timeout>=2,<3 ; extra == 'dev'
|
|
24
25
|
Requires-Dist: ruff>=0.15,<0.16 ; extra == 'dev'
|
|
25
26
|
Requires-Dist: trustme>=1.2 ; extra == 'dev'
|
|
27
|
+
Requires-Dist: prometheus-client>=0.25,<1 ; extra == 'prometheus'
|
|
26
28
|
Provides-Extra: dev
|
|
29
|
+
Provides-Extra: prometheus
|
|
27
30
|
License-File: LICENSE
|
|
28
31
|
Summary: Observable Rust-powered HTTP client for Python services.
|
|
29
32
|
Keywords: asyncio,http,http-client,hyper,rust
|
|
@@ -51,8 +54,8 @@ Project-URL: Security, https://github.com/AmberFog/foghttp/blob/main/SECURITY.md
|
|
|
51
54
|
Rust-powered HTTP client for Python with sync and asyncio APIs.
|
|
52
55
|
</p>
|
|
53
56
|
|
|
54
|
-
FogHTTP is
|
|
55
|
-
transport core is implemented in Rust on top of `hyper`.
|
|
57
|
+
FogHTTP is a focused pre-`0.5` HTTP client. The public API is Python-first,
|
|
58
|
+
while the transport core is implemented in Rust on top of `hyper`.
|
|
56
59
|
|
|
57
60
|
FogHTTP is positioned as an observable, high-concurrency Rust-powered transport
|
|
58
61
|
for Python services. It is built for controlled service-to-service HTTP
|
|
@@ -60,6 +63,13 @@ workloads where explicit lifecycle, predictable resource usage, cancellation,
|
|
|
60
63
|
redirect history, and request backpressure visibility matter more than
|
|
61
64
|
browser-like feature parity.
|
|
62
65
|
|
|
66
|
+
The supported production path is an explicitly owned `Client` or
|
|
67
|
+
`AsyncClient`, normally reused for one application lifecycle. FogHTTP does not
|
|
68
|
+
create a hidden module-level HTTP client or shared connection pool. See
|
|
69
|
+
[Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md#explicit-client-ownership)
|
|
70
|
+
for the ownership contract and the limits any future convenience helpers must
|
|
71
|
+
preserve.
|
|
72
|
+
|
|
63
73
|
Until version `0.5.0`, backward compatibility is not guaranteed. I will still
|
|
64
74
|
try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
65
75
|
|
|
@@ -72,8 +82,11 @@ try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
|
72
82
|
- bounded global/per-origin request backpressure, FIFO pending-acquire limits,
|
|
73
83
|
explicit HTTP/1.1 connection caps, and per-origin pressure diagnostics
|
|
74
84
|
- typed telemetry event hooks with redacted request/response lifecycle events
|
|
85
|
+
- opt-in structured lifecycle debug logging through standard Python `logging`
|
|
75
86
|
- versioned telemetry snapshots that separate alert-oriented stats from
|
|
76
87
|
diagnostic dump APIs
|
|
88
|
+
- optional Prometheus/OpenMetrics adapters with bounded labels and no
|
|
89
|
+
diagnostic-dump alert series
|
|
77
90
|
- opt-in Rust-owned retries with replayability gates and immutable attempt
|
|
78
91
|
traces, plus opt-in per-hop and post-DNS SSRF destination controls
|
|
79
92
|
- opt-in async lifecycle debug snapshots for staging and tests
|
|
@@ -88,6 +101,12 @@ try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
|
88
101
|
pip install foghttp
|
|
89
102
|
```
|
|
90
103
|
|
|
104
|
+
Prometheus/OpenMetrics integration is an optional extra:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pip install "foghttp[prometheus]"
|
|
108
|
+
```
|
|
109
|
+
|
|
91
110
|
Runtime requirements:
|
|
92
111
|
|
|
93
112
|
- Python `>=3.11`
|
|
@@ -168,8 +187,9 @@ async with foghttp.AsyncClient() as client:
|
|
|
168
187
|
- bounded global and per-origin request slots with a bounded FIFO pending queue
|
|
169
188
|
- opt-in global/per-origin HTTP/1.1 connection caps with separate connection
|
|
170
189
|
acquire pressure and idle lifecycle diagnostics
|
|
171
|
-
- opt-in typed telemetry event hooks for
|
|
172
|
-
response body, and request completion
|
|
190
|
+
- opt-in typed telemetry event hooks for pool acquire, HTTP/1 connection,
|
|
191
|
+
request, redirect, response headers, response body, and request completion
|
|
192
|
+
lifecycle
|
|
173
193
|
- opt-in typed transport policy hooks for lightweight request admission and
|
|
174
194
|
response-head checks without default-path Python callbacks
|
|
175
195
|
- opt-in Rust-owned retry policy for selected statuses and pre-header network
|
|
@@ -199,11 +219,13 @@ async with foghttp.AsyncClient() as client:
|
|
|
199
219
|
- [Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md)
|
|
200
220
|
- [Packaging and Python compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/packaging.md)
|
|
201
221
|
- [Timeout model](https://github.com/AmberFog/foghttp/blob/main/docs/timeouts.md)
|
|
222
|
+
- [Public typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/typing.md)
|
|
202
223
|
- [Upload typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/upload-types.md)
|
|
203
224
|
- [Transport policy hooks](https://github.com/AmberFog/foghttp/blob/main/docs/policy-hooks.md)
|
|
204
225
|
- [Retry policy](https://github.com/AmberFog/foghttp/blob/main/docs/retries.md)
|
|
205
226
|
- [SSRF protection](https://github.com/AmberFog/foghttp/blob/main/docs/ssrf.md)
|
|
206
227
|
- [Telemetry contract](https://github.com/AmberFog/foghttp/blob/main/docs/telemetry.md)
|
|
228
|
+
- [Prometheus and OpenMetrics](https://github.com/AmberFog/foghttp/blob/main/docs/prometheus.md)
|
|
207
229
|
- [Response streaming](https://github.com/AmberFog/foghttp/blob/main/docs/streaming.md)
|
|
208
230
|
- [Proxy and trust_env](https://github.com/AmberFog/foghttp/blob/main/docs/proxies.md)
|
|
209
231
|
- [TLS trust](https://github.com/AmberFog/foghttp/blob/main/docs/tls.md)
|
|
@@ -239,8 +261,7 @@ Development requires a Rust toolchain with `cargo` available in `PATH`.
|
|
|
239
261
|
|
|
240
262
|
```bash
|
|
241
263
|
uv run --extra dev --with "maturin>=1.7,<2" maturin develop --locked --skip-install
|
|
242
|
-
uv run --extra dev coverage run -m pytest
|
|
243
|
-
uv run --extra dev coverage report -m
|
|
264
|
+
uv run --extra dev coverage run -m pytest && uv run --extra dev coverage report -m
|
|
244
265
|
uv run --extra dev pre-commit run --all-files --show-diff-on-failure
|
|
245
266
|
```
|
|
246
267
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
Rust-powered HTTP client for Python with sync and asyncio APIs.
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
|
-
FogHTTP is
|
|
12
|
-
transport core is implemented in Rust on top of `hyper`.
|
|
11
|
+
FogHTTP is a focused pre-`0.5` HTTP client. The public API is Python-first,
|
|
12
|
+
while the transport core is implemented in Rust on top of `hyper`.
|
|
13
13
|
|
|
14
14
|
FogHTTP is positioned as an observable, high-concurrency Rust-powered transport
|
|
15
15
|
for Python services. It is built for controlled service-to-service HTTP
|
|
@@ -17,6 +17,13 @@ workloads where explicit lifecycle, predictable resource usage, cancellation,
|
|
|
17
17
|
redirect history, and request backpressure visibility matter more than
|
|
18
18
|
browser-like feature parity.
|
|
19
19
|
|
|
20
|
+
The supported production path is an explicitly owned `Client` or
|
|
21
|
+
`AsyncClient`, normally reused for one application lifecycle. FogHTTP does not
|
|
22
|
+
create a hidden module-level HTTP client or shared connection pool. See
|
|
23
|
+
[Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md#explicit-client-ownership)
|
|
24
|
+
for the ownership contract and the limits any future convenience helpers must
|
|
25
|
+
preserve.
|
|
26
|
+
|
|
20
27
|
Until version `0.5.0`, backward compatibility is not guaranteed. I will still
|
|
21
28
|
try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
22
29
|
|
|
@@ -29,8 +36,11 @@ try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
|
29
36
|
- bounded global/per-origin request backpressure, FIFO pending-acquire limits,
|
|
30
37
|
explicit HTTP/1.1 connection caps, and per-origin pressure diagnostics
|
|
31
38
|
- typed telemetry event hooks with redacted request/response lifecycle events
|
|
39
|
+
- opt-in structured lifecycle debug logging through standard Python `logging`
|
|
32
40
|
- versioned telemetry snapshots that separate alert-oriented stats from
|
|
33
41
|
diagnostic dump APIs
|
|
42
|
+
- optional Prometheus/OpenMetrics adapters with bounded labels and no
|
|
43
|
+
diagnostic-dump alert series
|
|
34
44
|
- opt-in Rust-owned retries with replayability gates and immutable attempt
|
|
35
45
|
traces, plus opt-in per-hop and post-DNS SSRF destination controls
|
|
36
46
|
- opt-in async lifecycle debug snapshots for staging and tests
|
|
@@ -45,6 +55,12 @@ try to keep public interfaces stable and avoid unnecessary breaking changes.
|
|
|
45
55
|
pip install foghttp
|
|
46
56
|
```
|
|
47
57
|
|
|
58
|
+
Prometheus/OpenMetrics integration is an optional extra:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install "foghttp[prometheus]"
|
|
62
|
+
```
|
|
63
|
+
|
|
48
64
|
Runtime requirements:
|
|
49
65
|
|
|
50
66
|
- Python `>=3.11`
|
|
@@ -125,8 +141,9 @@ async with foghttp.AsyncClient() as client:
|
|
|
125
141
|
- bounded global and per-origin request slots with a bounded FIFO pending queue
|
|
126
142
|
- opt-in global/per-origin HTTP/1.1 connection caps with separate connection
|
|
127
143
|
acquire pressure and idle lifecycle diagnostics
|
|
128
|
-
- opt-in typed telemetry event hooks for
|
|
129
|
-
response body, and request completion
|
|
144
|
+
- opt-in typed telemetry event hooks for pool acquire, HTTP/1 connection,
|
|
145
|
+
request, redirect, response headers, response body, and request completion
|
|
146
|
+
lifecycle
|
|
130
147
|
- opt-in typed transport policy hooks for lightweight request admission and
|
|
131
148
|
response-head checks without default-path Python callbacks
|
|
132
149
|
- opt-in Rust-owned retry policy for selected statuses and pre-header network
|
|
@@ -156,11 +173,13 @@ async with foghttp.AsyncClient() as client:
|
|
|
156
173
|
- [Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md)
|
|
157
174
|
- [Packaging and Python compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/packaging.md)
|
|
158
175
|
- [Timeout model](https://github.com/AmberFog/foghttp/blob/main/docs/timeouts.md)
|
|
176
|
+
- [Public typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/typing.md)
|
|
159
177
|
- [Upload typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/upload-types.md)
|
|
160
178
|
- [Transport policy hooks](https://github.com/AmberFog/foghttp/blob/main/docs/policy-hooks.md)
|
|
161
179
|
- [Retry policy](https://github.com/AmberFog/foghttp/blob/main/docs/retries.md)
|
|
162
180
|
- [SSRF protection](https://github.com/AmberFog/foghttp/blob/main/docs/ssrf.md)
|
|
163
181
|
- [Telemetry contract](https://github.com/AmberFog/foghttp/blob/main/docs/telemetry.md)
|
|
182
|
+
- [Prometheus and OpenMetrics](https://github.com/AmberFog/foghttp/blob/main/docs/prometheus.md)
|
|
164
183
|
- [Response streaming](https://github.com/AmberFog/foghttp/blob/main/docs/streaming.md)
|
|
165
184
|
- [Proxy and trust_env](https://github.com/AmberFog/foghttp/blob/main/docs/proxies.md)
|
|
166
185
|
- [TLS trust](https://github.com/AmberFog/foghttp/blob/main/docs/tls.md)
|
|
@@ -196,7 +215,6 @@ Development requires a Rust toolchain with `cargo` available in `PATH`.
|
|
|
196
215
|
|
|
197
216
|
```bash
|
|
198
217
|
uv run --extra dev --with "maturin>=1.7,<2" maturin develop --locked --skip-install
|
|
199
|
-
uv run --extra dev coverage run -m pytest
|
|
200
|
-
uv run --extra dev coverage report -m
|
|
218
|
+
uv run --extra dev coverage run -m pytest && uv run --extra dev coverage report -m
|
|
201
219
|
uv run --extra dev pre-commit run --all-files --show-diff-on-failure
|
|
202
220
|
```
|
|
@@ -99,6 +99,23 @@ FogHTTP currently makes several conservative choices:
|
|
|
99
99
|
|
|
100
100
|
Security reports that weaken any of these guarantees are high priority.
|
|
101
101
|
|
|
102
|
+
## Dependency Monitoring
|
|
103
|
+
|
|
104
|
+
GitHub's dependency graph and Dependabot alerts monitor the Cargo and Python
|
|
105
|
+
dependencies on `main`. Dependabot security updates are enabled for both
|
|
106
|
+
ecosystems. The repository configuration uses `cargo` for `Cargo.toml` and
|
|
107
|
+
`Cargo.lock`, and `uv` for `pyproject.toml` and `uv.lock`.
|
|
108
|
+
|
|
109
|
+
Routine Dependabot version-update pull requests are intentionally disabled by
|
|
110
|
+
setting `open-pull-requests-limit: 0` in `.github/dependabot.yml`. This does not
|
|
111
|
+
disable security updates. A separate maintenance decision must define the
|
|
112
|
+
cadence and triage policy before routine version updates are enabled.
|
|
113
|
+
|
|
114
|
+
The project does not run `cargo audit` or `pip-audit` as mandatory pull-request
|
|
115
|
+
checks. Any future repository audit starts as a scheduled or manually triggered
|
|
116
|
+
workflow, with a triage and allowlist policy defined before it can block pull
|
|
117
|
+
requests.
|
|
118
|
+
|
|
102
119
|
## Coordinated Disclosure
|
|
103
120
|
|
|
104
121
|
The maintainer will make a best-effort attempt to:
|
|
@@ -118,9 +135,9 @@ The following are usually out of scope unless they demonstrate a concrete
|
|
|
118
135
|
FogHTTP vulnerability:
|
|
119
136
|
|
|
120
137
|
- attacks that require arbitrary code execution in the caller process
|
|
121
|
-
- reports about unsupported features such as proxy
|
|
122
|
-
|
|
123
|
-
unsafe behavior
|
|
138
|
+
- reports about unsupported features such as HTTP/2, SOCKS/PAC proxy routing,
|
|
139
|
+
TLS-to-proxy endpoints, browser-grade cookie policy, or streaming response
|
|
140
|
+
decompression unless the current code exposes unsafe behavior
|
|
124
141
|
- denial-of-service reports that ignore documented response and request limits
|
|
125
142
|
- issues caused only by intentionally disabling security in user application
|
|
126
143
|
code outside FogHTTP
|
|
@@ -2,12 +2,102 @@
|
|
|
2
2
|
|
|
3
3
|
Benchmark harness and full benchmark reports live in a separate repository:
|
|
4
4
|
[github.com/AmberFog/FogHttpBenchmark](https://github.com/AmberFog/FogHttpBenchmark).
|
|
5
|
+
Use the `README.md` from the exact recorded benchmark checkout as the canonical
|
|
6
|
+
workflow for full-suite setup, execution, and report review.
|
|
5
7
|
|
|
6
8
|
This page is a benchmark status snapshot, not a marketing scoreboard. Invalid
|
|
7
9
|
rows, compatibility gaps, resource-limit errors, and weak spots stay visible
|
|
8
10
|
because they are the inputs we use to improve FogHTTP.
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
Benchmark snapshot last updated: `2026-07-02`.
|
|
13
|
+
|
|
14
|
+
## Release Smoke Gate
|
|
15
|
+
|
|
16
|
+
Normal pull-request CI does not use wall-clock benchmark thresholds. Shared CI
|
|
17
|
+
hosts are too variable for a small timing delta to be a reliable pass/fail
|
|
18
|
+
signal, and the full benchmark matrix is intentionally kept out of every PR.
|
|
19
|
+
|
|
20
|
+
Before a release, start from a clean checkout of the separate benchmark
|
|
21
|
+
repository at a recorded full commit SHA. Pin the exact FogHTTP release candidate
|
|
22
|
+
by its full commit SHA and run this bounded local-server smoke from that checkout.
|
|
23
|
+
For an unpublished candidate, update the benchmark checkout and verify its lock
|
|
24
|
+
before running the smoke:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
candidate_sha="<full-candidate-commit-sha>"
|
|
28
|
+
uv add "foghttp @ git+https://github.com/AmberFog/foghttp.git" \
|
|
29
|
+
--rev "$candidate_sha"
|
|
30
|
+
uv lock --check
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
After pinning, only the benchmark project manifest and lockfile may differ from
|
|
34
|
+
the recorded clean checkout. Record SHA-256 digests of both exact files; any
|
|
35
|
+
other harness change must be committed and become the new recorded benchmark
|
|
36
|
+
repository SHA before the smoke runs.
|
|
37
|
+
|
|
38
|
+
Then run:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
candidate_sha="<full-candidate-commit-sha>"
|
|
42
|
+
uv run --locked foghttp-benchmark \
|
|
43
|
+
--suite request-builder \
|
|
44
|
+
--clients foghttp \
|
|
45
|
+
--modes async,sync \
|
|
46
|
+
--iterations 100 \
|
|
47
|
+
--warmup 10 \
|
|
48
|
+
--repeats 3 \
|
|
49
|
+
--scenarios absolute-url,json-body,send-prepared-get \
|
|
50
|
+
--no-progress \
|
|
51
|
+
--output-dir "results/release-smoke-${candidate_sha}"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The smoke passes when the command exits successfully, the release tag, candidate,
|
|
55
|
+
and FogHTTP lock entry all resolve to the same full commit SHA, the report's
|
|
56
|
+
`metadata.package_versions.foghttp` value matches the candidate version, all
|
|
57
|
+
FogHTTP rows are valid with no unexpected measured or warmup errors, and the
|
|
58
|
+
report has no obvious regression against a same-host, same-Python, same-harness
|
|
59
|
+
baseline produced with the same suite, clients, modes, iterations, warmup,
|
|
60
|
+
repeats, scenarios, and progress settings. A timing change is reviewed as
|
|
61
|
+
evidence, not rejected by a fixed percentage; a maintainer records the timing-
|
|
62
|
+
review decision and rationale. Dependency-graph differences outside the
|
|
63
|
+
intended FogHTTP baseline/candidate change must be explained there.
|
|
64
|
+
Classify or rerun `warning`, `invalid`, and `needs-rerun` output before release.
|
|
65
|
+
For changes to a specific hot path or resource lifecycle, run the corresponding
|
|
66
|
+
full benchmark suite as described in the benchmark repository instead of
|
|
67
|
+
expanding this smoke into the normal PR matrix.
|
|
68
|
+
|
|
69
|
+
Record this evidence in the release-readiness issue or pull request before
|
|
70
|
+
publishing:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
Candidate version and release-tag full commit SHA:
|
|
74
|
+
Source examples smoke CI run URL and CPython 3.11-3.14 statuses:
|
|
75
|
+
Installed-wheel smoke CI run URL and CPython 3.11-3.14 statuses:
|
|
76
|
+
Benchmark smoke status:
|
|
77
|
+
Benchmark repository full commit SHA and clean-start status:
|
|
78
|
+
Benchmark project manifest and lockfile SHA-256:
|
|
79
|
+
Candidate manifest/lock artifact URI or reproducible patch:
|
|
80
|
+
Resolved FogHTTP lock full SHA:
|
|
81
|
+
Report metadata FogHTTP version:
|
|
82
|
+
Benchmark host, Python, and exact command:
|
|
83
|
+
Candidate-specific report artifact URI and SHA-256:
|
|
84
|
+
Baseline FogHTTP version and full commit SHA:
|
|
85
|
+
Baseline benchmark repository full commit SHA and manifest/lockfile SHA-256:
|
|
86
|
+
Baseline manifest/lock artifact URI or reproducible patch:
|
|
87
|
+
Baseline host, Python, exact command, report artifact URI, and SHA-256:
|
|
88
|
+
Timing-review decision, maintainer, and rationale:
|
|
89
|
+
Warnings, reruns, or approved waiver with approver and rationale:
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Release readiness requires both example smoke paths and either a valid benchmark
|
|
93
|
+
report or a waiver approved by a maintainer. A waiver must identify why the
|
|
94
|
+
benchmark is not applicable and record the approver; a missing or unknown status
|
|
95
|
+
is not release-ready. Any candidate code change or release-tag move invalidates
|
|
96
|
+
the record and requires evidence for the new full SHA. An unrecorded harness
|
|
97
|
+
delta or manifest, lockfile, report, or baseline digest mismatch also invalidates
|
|
98
|
+
the record. A baseline produced with a different harness identity or workload
|
|
99
|
+
command is not comparable and cannot satisfy the gate. Local-only files that
|
|
100
|
+
are not retained with the release evidence do not satisfy the artifact fields.
|
|
11
101
|
|
|
12
102
|
## Methodology
|
|
13
103
|
|
|
@@ -32,7 +122,7 @@ Last updated: `2026-07-02`.
|
|
|
32
122
|
used as strong all-client performance baselines until the reason is
|
|
33
123
|
classified or rerun.
|
|
34
124
|
|
|
35
|
-
##
|
|
125
|
+
## Latest Retained Source Snapshots
|
|
36
126
|
|
|
37
127
|
Primary benchmark data source for this page:
|
|
38
128
|
|
|
@@ -42,13 +132,19 @@ Primary benchmark data source for this page:
|
|
|
42
132
|
httpxyz `0.31.2`, zapros `0.13.0`.
|
|
43
133
|
- Platform: `macOS-26.5.1-arm64-arm-64bit-Mach-O`.
|
|
44
134
|
- Python: `3.14.0`.
|
|
135
|
+
- Benchmark repository revision:
|
|
136
|
+
[`861e7cddf9134003c7079cb521def6892235c8d2`](https://github.com/AmberFog/FogHttpBenchmark/tree/861e7cddf9134003c7079cb521def6892235c8d2).
|
|
137
|
+
|
|
138
|
+
This `0.3.5` snapshot is the latest retained full baseline, not evidence for a
|
|
139
|
+
`0.4.0` release candidate. A `0.4.0` candidate must still satisfy the release
|
|
140
|
+
smoke gate above at its own full commit SHA before publication.
|
|
45
141
|
|
|
46
142
|
Historical comparison sources:
|
|
47
143
|
|
|
48
144
|
| Role | Result directory | Use |
|
|
49
145
|
| --- | --- | --- |
|
|
50
|
-
|
|
|
51
|
-
|
|
|
146
|
+
| Latest retained full run | `results/full-pypi-foghttp-0.3.5-settled-20260702-200414` | Primary FogHTTP `0.3.5` evidence after run-settling. |
|
|
147
|
+
| Matching comparison baseline | `results/full-current-deps-foghttp-0.3.4-20260607-121844` | Matching-row comparison against FogHTTP `0.3.4` on the same primary host lineage. |
|
|
52
148
|
| Valid proxy/CONNECT baseline | `results/proxy-connect-0.3.4-isolated-full-20260607-213445` | Previous proxy/CONNECT baseline for stability comparison. |
|
|
53
149
|
| Earlier 0.3.5 attempts | `results/full-pypi-foghttp-0.3.5-20260702-162612`, `results/full-pypi-foghttp-0.3.5-rerun-20260702-172113`, `results/full-pypi-foghttp-0.3.5-settled-20260702-183136` | Diagnostic evidence that run settling removed false FogHTTP error contamination in request-style suites. |
|
|
54
150
|
|