foghttp 0.3.8__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.
Files changed (643) hide show
  1. {foghttp-0.3.8 → foghttp-0.4.0}/.flake8 +4 -0
  2. foghttp-0.4.0/.github/dependabot.yml +14 -0
  3. {foghttp-0.3.8 → foghttp-0.4.0}/.github/workflows/ci.yml +24 -1
  4. {foghttp-0.3.8 → foghttp-0.4.0}/.github/workflows/release.yml +3 -3
  5. {foghttp-0.3.8 → foghttp-0.4.0}/.pre-commit-config.yaml +6 -2
  6. {foghttp-0.3.8 → foghttp-0.4.0}/CONTRIBUTING.md +23 -7
  7. {foghttp-0.3.8 → foghttp-0.4.0}/Cargo.lock +61 -1
  8. {foghttp-0.3.8 → foghttp-0.4.0}/Cargo.toml +4 -1
  9. {foghttp-0.3.8 → foghttp-0.4.0}/PKG-INFO +39 -11
  10. {foghttp-0.3.8 → foghttp-0.4.0}/README.md +35 -10
  11. {foghttp-0.3.8 → foghttp-0.4.0}/SECURITY.md +20 -3
  12. foghttp-0.4.0/docs/auth.md +128 -0
  13. {foghttp-0.3.8 → foghttp-0.4.0}/docs/benchmarks.md +100 -4
  14. foghttp-0.4.0/docs/cookies.md +112 -0
  15. foghttp-0.4.0/docs/httpx-migration.md +663 -0
  16. {foghttp-0.3.8 → foghttp-0.4.0}/docs/index.md +29 -7
  17. {foghttp-0.3.8 → foghttp-0.4.0}/docs/lifecycle.md +110 -8
  18. {foghttp-0.3.8 → foghttp-0.4.0}/docs/limitations.md +19 -9
  19. {foghttp-0.3.8 → foghttp-0.4.0}/docs/packaging.md +7 -1
  20. foghttp-0.4.0/docs/prometheus.md +220 -0
  21. {foghttp-0.3.8 → foghttp-0.4.0}/docs/quickstart.md +24 -2
  22. {foghttp-0.3.8 → foghttp-0.4.0}/docs/redirects.md +13 -5
  23. {foghttp-0.3.8 → foghttp-0.4.0}/docs/request-builder.md +29 -7
  24. foghttp-0.4.0/docs/telemetry.md +321 -0
  25. {foghttp-0.3.8 → foghttp-0.4.0}/docs/timeouts.md +4 -4
  26. foghttp-0.4.0/docs/typing.md +80 -0
  27. foghttp-0.4.0/docs/upload-types.md +117 -0
  28. {foghttp-0.3.8 → foghttp-0.4.0}/docs/use-cases.md +22 -12
  29. {foghttp-0.3.8 → foghttp-0.4.0}/examples/README.md +26 -2
  30. foghttp-0.4.0/examples/authentication.py +27 -0
  31. foghttp-0.4.0/examples/cookies.py +24 -0
  32. {foghttp-0.3.8 → foghttp-0.4.0}/examples/http_proxy.py +5 -4
  33. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/__init__.py +12 -0
  34. foghttp-0.4.0/foghttp/_auth_headers.py +61 -0
  35. foghttp-0.4.0/foghttp/_client/auth.py +70 -0
  36. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/config.py +10 -6
  37. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/core.py +53 -2
  38. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/options.py +6 -8
  39. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/lifecycle.py +10 -3
  40. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/requests.py +18 -0
  41. foghttp-0.4.0/foghttp/_client/request_builder/builder.py +60 -0
  42. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/request_builder/merge.py +3 -3
  43. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/response.py +3 -1
  44. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/retry.py +9 -0
  45. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/stream_context.py +5 -5
  46. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/__init__.py +5 -1
  47. foghttp-0.4.0/foghttp/_client/telemetry/dispatcher.py +271 -0
  48. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/emission.py +25 -0
  49. foghttp-0.4.0/foghttp/_client/telemetry/hook_errors.py +44 -0
  50. foghttp-0.4.0/foghttp/_client/telemetry/native.py +147 -0
  51. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/request_context.py +13 -1
  52. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/request_events.py +4 -1
  53. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/responses.py +15 -11
  54. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/transport.py +35 -11
  55. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/transport_requests.py +6 -2
  56. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_foghttp.pyi +43 -0
  57. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/stream.py +24 -15
  58. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_telemetry.py +1 -1
  59. foghttp-0.4.0/foghttp/_upload_body/cleanup.py +110 -0
  60. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/feeders.py +14 -33
  61. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/runtime.py +59 -50
  62. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/thread_bridge.py +18 -3
  63. foghttp-0.4.0/foghttp/_validation/callables.py +11 -0
  64. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/async_client.py +64 -7
  65. foghttp-0.4.0/foghttp/auth.py +43 -0
  66. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/client.py +92 -35
  67. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/__init__.py +2 -0
  68. foghttp-0.4.0/foghttp/errors/configuration.py +7 -0
  69. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/headers.py +38 -4
  70. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/messages.py +1 -3
  71. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/policy.py +11 -11
  72. foghttp-0.4.0/foghttp/prometheus/__init__.py +9 -0
  73. foghttp-0.4.0/foghttp/prometheus/labels.py +157 -0
  74. foghttp-0.4.0/foghttp/prometheus/stats.py +122 -0
  75. foghttp-0.4.0/foghttp/prometheus/telemetry.py +364 -0
  76. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/request.py +26 -17
  77. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/async_response.py +6 -2
  78. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/base.py +14 -4
  79. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/bindings.py +5 -1
  80. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/sync_response.py +6 -2
  81. foghttp-0.4.0/foghttp/stream_response/telemetry.py +90 -0
  82. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/telemetry/__init__.py +2 -0
  83. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/telemetry/events.py +7 -5
  84. foghttp-0.4.0/foghttp/telemetry/logging.py +88 -0
  85. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/types/__init__.py +12 -0
  86. foghttp-0.4.0/foghttp/types/protocols.py +144 -0
  87. {foghttp-0.3.8 → foghttp-0.4.0}/pyproject.toml +5 -1
  88. {foghttp-0.3.8 → foghttp-0.4.0}/ruff.toml +2 -2
  89. foghttp-0.4.0/scripts/install_wheel_smoke.py +89 -0
  90. foghttp-0.4.0/scripts/wheel_smoke_runtime.py +161 -0
  91. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/mod.rs +16 -3
  92. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/telemetry/mod.rs +200 -15
  93. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/telemetry/tests.rs +146 -24
  94. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/write_timeout.rs +7 -2
  95. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/mod.rs +1 -0
  96. foghttp-0.4.0/src/core/policy/cookies.rs +1065 -0
  97. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/mod.rs +3 -1
  98. foghttp-0.4.0/src/core/telemetry.rs +1262 -0
  99. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/active.rs +12 -0
  100. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/spawn.rs +14 -6
  101. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/stream_spawn.rs +18 -10
  102. foghttp-0.4.0/src/py/client/auth.rs +115 -0
  103. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/mod.rs +145 -14
  104. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/callback.rs +1 -1
  105. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/registry.rs +1 -1
  106. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/response.rs +20 -6
  107. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/state.rs +49 -14
  108. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/state_tests.rs +64 -0
  109. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/buffered.rs +4 -3
  110. foghttp-0.4.0/src/py/client/transport/errors.rs +115 -0
  111. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/request.rs +447 -23
  112. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/response.rs +50 -7
  113. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/streaming.rs +4 -3
  114. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/tests.rs +11 -2
  115. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/mod.rs +3 -0
  116. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/response.rs +3 -0
  117. foghttp-0.4.0/src/py/telemetry.rs +86 -0
  118. foghttp-0.4.0/tests/client_auth/test_async_auth.py +230 -0
  119. foghttp-0.4.0/tests/client_auth/test_contract.py +128 -0
  120. foghttp-0.4.0/tests/client_auth/test_sync_auth.py +589 -0
  121. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_data.py +2 -1
  122. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_telemetry.py +14 -6
  123. foghttp-0.4.0/tests/client_cookies/assertions.py +13 -0
  124. foghttp-0.4.0/tests/client_cookies/test_async_cookies.py +96 -0
  125. foghttp-0.4.0/tests/client_cookies/test_sync_cookies.py +181 -0
  126. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_async_client_lifecycle.py +6 -6
  127. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_client_lifecycle.py +11 -12
  128. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_close_race.py +2 -2
  129. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/sources.py +54 -0
  130. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/test_async_multipart.py +54 -6
  131. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/test_multipart_internals.py +73 -1
  132. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/test_sync_multipart.py +81 -12
  133. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/raw_options.py +4 -0
  134. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/test_raw_numeric_boundary.py +2 -0
  135. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/test_async_query.py +2 -1
  136. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/test_sync_query.py +2 -1
  137. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/models.py +2 -1
  138. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/server.py +2 -0
  139. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/test_async_retry.py +14 -0
  140. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/test_attempt_trace.py +5 -0
  141. foghttp-0.4.0/tests/client_retry/test_auth_refresh.py +137 -0
  142. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/test_sync_retry.py +21 -5
  143. foghttp-0.4.0/tests/client_telemetry/assertions.py +181 -0
  144. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/constants.py +13 -0
  145. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/models.py +13 -0
  146. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/test_async_stream_hooks.py +54 -1
  147. foghttp-0.4.0/tests/client_telemetry/test_async_stream_telemetry.py +369 -0
  148. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/test_async_telemetry.py +6 -1
  149. foghttp-0.4.0/tests/client_telemetry/test_concurrent_delivery.py +123 -0
  150. foghttp-0.4.0/tests/client_telemetry/test_event_contract.py +361 -0
  151. foghttp-0.4.0/tests/client_telemetry/test_native_lifecycle_events.py +586 -0
  152. foghttp-0.4.0/tests/client_telemetry/test_structured_logging.py +255 -0
  153. foghttp-0.4.0/tests/client_telemetry/test_sync_stream_telemetry.py +315 -0
  154. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/test_tls_config.py +18 -2
  155. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_upload/test_streaming_upload.py +148 -32
  156. foghttp-0.4.0/tests/client_upload/test_upload_helpers.py +430 -0
  157. foghttp-0.4.0/tests/examples/test_imports.py +294 -0
  158. {foghttp-0.3.8 → foghttp-0.4.0}/tests/http_body_scenarios.py +3 -0
  159. foghttp-0.4.0/tests/prometheus/__init__.py +0 -0
  160. foghttp-0.4.0/tests/prometheus/test_integration.py +145 -0
  161. foghttp-0.4.0/tests/prometheus/test_optional_dependency.py +30 -0
  162. foghttp-0.4.0/tests/prometheus/test_stats_collector.py +115 -0
  163. foghttp-0.4.0/tests/prometheus/test_telemetry_sink.py +860 -0
  164. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/test_raw_client_signatures.py +7 -0
  165. foghttp-0.4.0/tests/redirect_helpers.py +57 -0
  166. foghttp-0.4.0/tests/request_builder/__init__.py +0 -0
  167. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_body.py +34 -0
  168. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_parity.py +5 -0
  169. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_shortcuts.py +28 -14
  170. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_factories.py +3 -7
  171. foghttp-0.4.0/tests/response_decompression/__init__.py +0 -0
  172. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/server.py +9 -6
  173. foghttp-0.4.0/tests/support/http_routes.py +158 -0
  174. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/raw_responses.py +23 -2
  175. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/sync_http_server.py +33 -11
  176. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_client_options.py +4 -4
  177. foghttp-0.4.0/tests/test_public_api.py +91 -0
  178. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_raw_client.py +17 -1
  179. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_raw_client_errors.py +50 -8
  180. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_runtime_workers.py +1 -1
  181. foghttp-0.4.0/tests/test_transport_stats.py +72 -0
  182. foghttp-0.4.0/tests/types/__init__.py +0 -0
  183. foghttp-0.4.0/tests/types/test_auth_contracts.py +33 -0
  184. {foghttp-0.3.8 → foghttp-0.4.0}/tests/types/test_policy_contracts.py +11 -15
  185. foghttp-0.4.0/tests/types/test_prometheus_contracts.py +21 -0
  186. foghttp-0.4.0/tests/types/test_request_response_protocols.py +72 -0
  187. foghttp-0.4.0/tests/types/test_structured_logging_contracts.py +11 -0
  188. foghttp-0.4.0/tests/types/test_telemetry_contracts.py +23 -0
  189. {foghttp-0.3.8 → foghttp-0.4.0}/uv.lock +17 -2
  190. foghttp-0.3.8/docs/telemetry.md +0 -186
  191. foghttp-0.3.8/docs/upload-types.md +0 -92
  192. foghttp-0.3.8/foghttp/_client/request_builder/builder.py +0 -48
  193. foghttp-0.3.8/foghttp/_client/telemetry/dispatcher.py +0 -152
  194. foghttp-0.3.8/foghttp/stream_response/telemetry.py +0 -44
  195. foghttp-0.3.8/scripts/install_wheel_smoke.py +0 -120
  196. foghttp-0.3.8/src/py/client/transport/errors.rs +0 -81
  197. foghttp-0.3.8/tests/client_telemetry/assertions.py +0 -103
  198. foghttp-0.3.8/tests/client_telemetry/test_async_stream_telemetry.py +0 -115
  199. foghttp-0.3.8/tests/client_telemetry/test_concurrent_delivery.py +0 -49
  200. foghttp-0.3.8/tests/client_telemetry/test_event_contract.py +0 -66
  201. foghttp-0.3.8/tests/client_telemetry/test_sync_stream_telemetry.py +0 -148
  202. foghttp-0.3.8/tests/client_upload/test_upload_helpers.py +0 -174
  203. foghttp-0.3.8/tests/redirect_helpers.py +0 -50
  204. foghttp-0.3.8/tests/support/http_routes.py +0 -77
  205. foghttp-0.3.8/tests/test_public_api.py +0 -64
  206. foghttp-0.3.8/tests/test_transport_stats.py +0 -70
  207. {foghttp-0.3.8 → foghttp-0.4.0}/.gitignore +0 -0
  208. {foghttp-0.3.8 → foghttp-0.4.0}/CODE_OF_CONDUCT.md +0 -0
  209. {foghttp-0.3.8 → foghttp-0.4.0}/LICENSE +0 -0
  210. {foghttp-0.3.8 → foghttp-0.4.0}/docs/policy-hooks.md +0 -0
  211. {foghttp-0.3.8 → foghttp-0.4.0}/docs/proxies.md +0 -0
  212. {foghttp-0.3.8 → foghttp-0.4.0}/docs/pyo3-boundary.md +0 -0
  213. {foghttp-0.3.8 → foghttp-0.4.0}/docs/retries.md +0 -0
  214. {foghttp-0.3.8 → foghttp-0.4.0}/docs/ssrf.md +0 -0
  215. {foghttp-0.3.8 → foghttp-0.4.0}/docs/streaming.md +0 -0
  216. {foghttp-0.3.8 → foghttp-0.4.0}/docs/tls.md +0 -0
  217. {foghttp-0.3.8 → foghttp-0.4.0}/examples/async_json_fanout.py +0 -0
  218. {foghttp-0.3.8 → foghttp-0.4.0}/examples/async_lifecycle_debug.py +0 -0
  219. {foghttp-0.3.8 → foghttp-0.4.0}/examples/async_resource_limits.py +0 -0
  220. {foghttp-0.3.8 → foghttp-0.4.0}/examples/async_streaming.py +0 -0
  221. {foghttp-0.3.8 → foghttp-0.4.0}/examples/compressed_response.py +0 -0
  222. {foghttp-0.3.8 → foghttp-0.4.0}/examples/multipart_uploads.py +0 -0
  223. {foghttp-0.3.8 → foghttp-0.4.0}/examples/prepared_requests.py +0 -0
  224. {foghttp-0.3.8 → foghttp-0.4.0}/examples/redirects.py +0 -0
  225. {foghttp-0.3.8 → foghttp-0.4.0}/examples/request_builder_compatibility.py +0 -0
  226. {foghttp-0.3.8 → foghttp-0.4.0}/examples/retry_policy.py +0 -0
  227. {foghttp-0.3.8 → foghttp-0.4.0}/examples/ssrf_policy.py +0 -0
  228. {foghttp-0.3.8 → foghttp-0.4.0}/examples/sync_json_api.py +0 -0
  229. {foghttp-0.3.8 → foghttp-0.4.0}/examples/sync_streaming.py +0 -0
  230. {foghttp-0.3.8 → foghttp-0.4.0}/examples/telemetry_hooks.py +0 -0
  231. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/__init__.py +0 -0
  232. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/asyncio_futures.py +0 -0
  233. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/constants.py +0 -0
  234. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/lifecycle_debug.py +0 -0
  235. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/process.py +0 -0
  236. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/__init__.py +0 -0
  237. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/auth.py +0 -0
  238. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/constants.py +0 -0
  239. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/environment.py +0 -0
  240. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/models.py +0 -0
  241. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy.py +0 -0
  242. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy_rule.py +0 -0
  243. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/no_proxy_tokens.py +0 -0
  244. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/resolver.py +0 -0
  245. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/transport_policy.py +0 -0
  246. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/proxy/url_parsing.py +0 -0
  247. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/__init__.py +0 -0
  248. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/errors.py +0 -0
  249. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/ssrf_errors.py +0 -0
  250. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/raw/timeout_errors.py +0 -0
  251. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/request_builder/__init__.py +0 -0
  252. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/request_builder/defaults.py +0 -0
  253. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/request_builder/header_policy.py +0 -0
  254. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/request_builder/models.py +0 -0
  255. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/retry_trace_mapping.py +0 -0
  256. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/runtime/__init__.py +0 -0
  257. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/runtime/constants.py +0 -0
  258. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/runtime/mode.py +0 -0
  259. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/runtime/validation.py +0 -0
  260. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/runtime/workers.py +0 -0
  261. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/stats.py +0 -0
  262. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/clock.py +0 -0
  263. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/retries.py +0 -0
  264. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/telemetry/url.py +0 -0
  265. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/tls.py +0 -0
  266. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_client/transport_snapshot_mapping.py +0 -0
  267. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/__init__.py +0 -0
  268. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/constants.py +0 -0
  269. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/content_type.py +0 -0
  270. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/encoding.py +0 -0
  271. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/fields.py +0 -0
  272. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/file_parts.py +0 -0
  273. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/iterators.py +0 -0
  274. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/length.py +0 -0
  275. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/models.py +0 -0
  276. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/normalize.py +0 -0
  277. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/parts.py +0 -0
  278. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_multipart/values.py +0 -0
  279. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_redaction.py +0 -0
  280. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_request_body.py +0 -0
  281. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_response/__init__.py +0 -0
  282. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_response/encoding.py +0 -0
  283. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_response/status.py +0 -0
  284. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/__init__.py +0 -0
  285. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/text/__init__.py +0 -0
  286. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/text/async_chunks.py +0 -0
  287. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/text/iterators.py +0 -0
  288. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/text/lines.py +0 -0
  289. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_streaming/text/sync_chunks.py +0 -0
  290. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/__init__.py +0 -0
  291. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/async_sending.py +0 -0
  292. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/chunks.py +0 -0
  293. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/file_source.py +0 -0
  294. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/models.py +0 -0
  295. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/normalize.py +0 -0
  296. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_upload_body/predicates.py +0 -0
  297. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_validation/__init__.py +0 -0
  298. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_validation/numeric.py +0 -0
  299. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/_validation/ssrf.py +0 -0
  300. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/body.py +0 -0
  301. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/base.py +0 -0
  302. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/lifecycle.py +0 -0
  303. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/response.py +0 -0
  304. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/ssrf.py +0 -0
  305. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/errors/timeout.py +0 -0
  306. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/lifecycle_debug.py +0 -0
  307. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/limits.py +0 -0
  308. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/methods.py +0 -0
  309. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/models.py +0 -0
  310. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/pool_diagnostics.py +0 -0
  311. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/py.typed +0 -0
  312. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/request_extensions.py +0 -0
  313. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/request_info.py +0 -0
  314. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/response.py +0 -0
  315. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/retry.py +0 -0
  316. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/retry_trace.py +0 -0
  317. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/ssrf.py +0 -0
  318. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stats.py +0 -0
  319. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/status_codes/__init__.py +0 -0
  320. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/status_codes/client_error.py +0 -0
  321. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/status_codes/redirect.py +0 -0
  322. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/status_codes/server_error.py +0 -0
  323. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/status_codes/success.py +0 -0
  324. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/__init__.py +0 -0
  325. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/constants.py +0 -0
  326. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/lifecycle_debug.py +0 -0
  327. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/stream_response/status.py +0 -0
  328. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/telemetry/config.py +0 -0
  329. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/telemetry/errors.py +0 -0
  330. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/telemetry/sinks.py +0 -0
  331. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/timeout_diagnostics.py +0 -0
  332. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/timeouts.py +0 -0
  333. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/tls.py +0 -0
  334. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/transport_state.py +0 -0
  335. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/transport_stats.py +0 -0
  336. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/types/http.py +0 -0
  337. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/types/multipart.py +0 -0
  338. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/types/request.py +0 -0
  339. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/types/streams.py +0 -0
  340. {foghttp-0.3.8 → foghttp-0.4.0}/foghttp/url.py +0 -0
  341. {foghttp-0.3.8 → foghttp-0.4.0}/logo.png +0 -0
  342. {foghttp-0.3.8 → foghttp-0.4.0}/scripts/check_all_position.py +0 -0
  343. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/body.rs +0 -0
  344. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/connection_limit.rs +0 -0
  345. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/authorization.rs +0 -0
  346. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/endpoint.rs +0 -0
  347. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/http.rs +0 -0
  348. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/mod.rs +0 -0
  349. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/tests.rs +0 -0
  350. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/proxy/tunnel.rs +0 -0
  351. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/client/ssrf.rs +0 -0
  352. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/headers/mod.rs +0 -0
  353. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/headers/request.rs +0 -0
  354. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/headers/response.rs +0 -0
  355. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/headers/tests.rs +0 -0
  356. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/method.rs +0 -0
  357. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/atomic.rs +0 -0
  358. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/buffered.rs +0 -0
  359. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/counters.rs +0 -0
  360. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/lifecycle.rs +0 -0
  361. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/mod.rs +0 -0
  362. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/blocking.rs +0 -0
  363. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/metrics.rs +0 -0
  364. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/mod.rs +0 -0
  365. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/registry.rs +0 -0
  366. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/snapshots.rs +0 -0
  367. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/tests.rs +0 -0
  368. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/origin/waiters.rs +0 -0
  369. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/snapshots.rs +0 -0
  370. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/telemetry.rs +0 -0
  371. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/metrics/tests.rs +0 -0
  372. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/numeric/mod.rs +0 -0
  373. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/numeric/tests.rs +0 -0
  374. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/error.rs +0 -0
  375. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/pipeline.rs +0 -0
  376. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/proxy.rs +0 -0
  377. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/action.rs +0 -0
  378. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/headers.rs +0 -0
  379. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/method.rs +0 -0
  380. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/mod.rs +0 -0
  381. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/policy.rs +0 -0
  382. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/status.rs +0 -0
  383. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/tests.rs +0 -0
  384. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/redirect/utils.rs +0 -0
  385. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/request.rs +0 -0
  386. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/retry/tests.rs +0 -0
  387. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/retry.rs +0 -0
  388. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/ssrf.rs +0 -0
  389. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/policy/tests.rs +0 -0
  390. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/request.rs +0 -0
  391. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/response/body.rs +0 -0
  392. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/response/budget.rs +0 -0
  393. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/response/decompression.rs +0 -0
  394. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/response/mod.rs +0 -0
  395. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/tls/mod.rs +0 -0
  396. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/tls/tests.rs +0 -0
  397. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/url/constants.rs +0 -0
  398. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/url/mod.rs +0 -0
  399. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/url/origin.rs +0 -0
  400. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/url/scheme.rs +0 -0
  401. {foghttp-0.3.8 → foghttp-0.4.0}/src/core/url/tests.rs +0 -0
  402. {foghttp-0.3.8 → foghttp-0.4.0}/src/errors.rs +0 -0
  403. {foghttp-0.3.8 → foghttp-0.4.0}/src/lib.rs +0 -0
  404. {foghttp-0.3.8 → foghttp-0.4.0}/src/messages.rs +0 -0
  405. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/diagnostics.rs +0 -0
  406. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/gate.rs +0 -0
  407. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/mod.rs +0 -0
  408. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/origin.rs +0 -0
  409. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/pending.rs +0 -0
  410. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/permit.rs +0 -0
  411. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/telemetry.rs +0 -0
  412. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/acquire/tests.rs +0 -0
  413. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/callback.rs +0 -0
  414. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/mod.rs +0 -0
  415. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/async_requests/registry.rs +0 -0
  416. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/future.rs +0 -0
  417. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/lifecycle/mod.rs +0 -0
  418. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/lifecycle/tests.rs +0 -0
  419. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/options.rs +0 -0
  420. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/policy_hooks.rs +0 -0
  421. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/process.rs +0 -0
  422. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/runtime/constants.rs +0 -0
  423. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/runtime/mod.rs +0 -0
  424. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/runtime/shared.rs +0 -0
  425. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/runtime/tests.rs +0 -0
  426. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/runtime/workers.rs +0 -0
  427. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/constants.rs +0 -0
  428. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/mod.rs +0 -0
  429. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/parts.rs +0 -0
  430. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/streams/read.rs +0 -0
  431. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/timeout_diagnostics.rs +0 -0
  432. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/body.rs +0 -0
  433. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/client.rs +0 -0
  434. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/context.rs +0 -0
  435. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/mod.rs +0 -0
  436. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/transport/retry.rs +0 -0
  437. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/client/upload_body.rs +0 -0
  438. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/pool_diagnostics.rs +0 -0
  439. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/retry.rs +0 -0
  440. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/stats.rs +0 -0
  441. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/transport_state.rs +0 -0
  442. {foghttp-0.3.8 → foghttp-0.4.0}/src/py/url.rs +0 -0
  443. {foghttp-0.3.8 → foghttp-0.4.0}/tests/__init__.py +0 -0
  444. {foghttp-0.3.8/tests/client_keepalive → foghttp-0.4.0/tests/client_auth}/__init__.py +0 -0
  445. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/__init__.py +0 -0
  446. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/conftest.py +0 -0
  447. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/constants.py +0 -0
  448. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/helpers.py +0 -0
  449. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_actions.py +0 -0
  450. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_assertions.py +0 -0
  451. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/lifecycle_debug_predicates.py +0 -0
  452. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_cancellation.py +0 -0
  453. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_buffered.py +0 -0
  454. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_messages.py +0 -0
  455. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_streaming.py +0 -0
  456. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_async_lifecycle_debug_strict.py +0 -0
  457. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_cancellation/test_asyncio_helpers.py +0 -0
  458. {foghttp-0.3.8/tests/client_multipart → foghttp-0.4.0/tests/client_cookies}/__init__.py +0 -0
  459. {foghttp-0.3.8/tests/client_policy_hooks → foghttp-0.4.0/tests/client_keepalive}/__init__.py +0 -0
  460. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/assertions.py +0 -0
  461. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/conftest.py +0 -0
  462. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/constants.py +0 -0
  463. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/models.py +0 -0
  464. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/server.py +0 -0
  465. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/test_async_keepalive.py +0 -0
  466. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_keepalive/test_sync_keepalive.py +0 -0
  467. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/__init__.py +0 -0
  468. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/conftest.py +0 -0
  469. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/constants.py +0 -0
  470. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/fork_actions.py +0 -0
  471. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/helpers.py +0 -0
  472. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_close_safety.py +0 -0
  473. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_safety.py +0 -0
  474. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_fork_stream_safety.py +0 -0
  475. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_raw_client_lifecycle.py +0 -0
  476. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_lifecycle/test_sync_close_waits.py +0 -0
  477. {foghttp-0.3.8/tests/client_proxy → foghttp-0.4.0/tests/client_multipart}/__init__.py +0 -0
  478. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/assertions.py +0 -0
  479. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/models.py +0 -0
  480. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_multipart/test_request_builder.py +0 -0
  481. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/__init__.py +0 -0
  482. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/test_numeric_validation.py +0 -0
  483. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/test_raw_retry_boundary.py +0 -0
  484. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_options/test_raw_ssrf_boundary.py +0 -0
  485. {foghttp-0.3.8/tests/client_query → foghttp-0.4.0/tests/client_policy_hooks}/__init__.py +0 -0
  486. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_policy_hooks/requests.py +0 -0
  487. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_policy_hooks/test_async_hooks.py +0 -0
  488. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_policy_hooks/test_contract.py +0 -0
  489. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_policy_hooks/test_sync_hooks.py +0 -0
  490. {foghttp-0.3.8/tests/client_resources → foghttp-0.4.0/tests/client_proxy}/__init__.py +0 -0
  491. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/client_options.py +0 -0
  492. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/conftest.py +0 -0
  493. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/connect_proxy_server.py +0 -0
  494. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/environment.py +0 -0
  495. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/http_proxy_server.py +0 -0
  496. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_client_config.py +0 -0
  497. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_environment.py +0 -0
  498. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_http_proxy_transport.py +0 -0
  499. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_https_proxy_connect.py +0 -0
  500. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_no_proxy.py +0 -0
  501. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_proxy/test_proxy_models.py +0 -0
  502. {foghttp-0.3.8/tests/client_retry → foghttp-0.4.0/tests/client_query}/__init__.py +0 -0
  503. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/assertions.py +0 -0
  504. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/constants.py +0 -0
  505. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/test_async_query_redirects.py +0 -0
  506. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/test_request_builder.py +0 -0
  507. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_query/test_sync_query_redirects.py +0 -0
  508. {foghttp-0.3.8/tests/client_telemetry → foghttp-0.4.0/tests/client_resources}/__init__.py +0 -0
  509. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/conftest.py +0 -0
  510. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/constants.py +0 -0
  511. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/helpers.py +0 -0
  512. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_connection_limits.py +0 -0
  513. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_global_limits.py +0 -0
  514. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_origin_limits.py +0 -0
  515. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_pool_diagnostics.py +0 -0
  516. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_response_body_limits.py +0 -0
  517. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_async_transport_state.py +0 -0
  518. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_diagnostic_snapshot_contract.py +0 -0
  519. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_connection_limits.py +0 -0
  520. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_global_limits.py +0 -0
  521. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_origin_limits.py +0 -0
  522. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_pool_diagnostics.py +0 -0
  523. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_response_body_limits.py +0 -0
  524. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_resources/test_sync_transport_state.py +0 -0
  525. {foghttp-0.3.8/tests/client_timeouts → foghttp-0.4.0/tests/client_retry}/__init__.py +0 -0
  526. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/assertions.py +0 -0
  527. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/conftest.py +0 -0
  528. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/constants.py +0 -0
  529. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/sources.py +0 -0
  530. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_retry/test_policy_config.py +0 -0
  531. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_ssrf/__init__.py +0 -0
  532. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_ssrf/test_async_ssrf.py +0 -0
  533. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_ssrf/test_policy_config.py +0 -0
  534. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_ssrf/test_sync_ssrf.py +0 -0
  535. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/__init__.py +0 -0
  536. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/conftest.py +0 -0
  537. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/constants.py +0 -0
  538. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/server.py +0 -0
  539. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/stream_readers.py +0 -0
  540. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/test_async_streaming.py +0 -0
  541. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/test_async_streaming_text_lines.py +0 -0
  542. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/test_streaming_text_decoding.py +0 -0
  543. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/test_sync_streaming.py +0 -0
  544. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/test_sync_streaming_text_lines.py +0 -0
  545. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_streaming/text_decoding_sources.py +0 -0
  546. {foghttp-0.3.8/tests/client_tls → foghttp-0.4.0/tests/client_telemetry}/__init__.py +0 -0
  547. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/conftest.py +0 -0
  548. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_telemetry/test_sync_telemetry.py +0 -0
  549. {foghttp-0.3.8/tests/client_upload → foghttp-0.4.0/tests/client_timeouts}/__init__.py +0 -0
  550. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_timeouts/conftest.py +0 -0
  551. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_timeouts/constants.py +0 -0
  552. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_timeouts/helpers.py +0 -0
  553. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_timeouts/test_async_timeouts.py +0 -0
  554. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_timeouts/test_sync_timeouts.py +0 -0
  555. {foghttp-0.3.8/tests/fault_injection → foghttp-0.4.0/tests/client_tls}/__init__.py +0 -0
  556. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/assertions.py +0 -0
  557. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/certificates.py +0 -0
  558. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/conftest.py +0 -0
  559. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/constants.py +0 -0
  560. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/handshake_server.py +0 -0
  561. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/models.py +0 -0
  562. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/server.py +0 -0
  563. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/test_async_tls.py +0 -0
  564. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/test_async_tls_redirects.py +0 -0
  565. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/test_sync_tls.py +0 -0
  566. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_tls/test_sync_tls_redirects.py +0 -0
  567. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_transport/__init__.py +0 -0
  568. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_transport/models.py +0 -0
  569. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_transport/test_transport_adapter.py +0 -0
  570. {foghttp-0.3.8/tests/network_errors → foghttp-0.4.0/tests/client_upload}/__init__.py +0 -0
  571. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_upload/helpers.py +0 -0
  572. {foghttp-0.3.8 → foghttp-0.4.0}/tests/client_warning_actions.py +0 -0
  573. {foghttp-0.3.8 → foghttp-0.4.0}/tests/conftest.py +0 -0
  574. {foghttp-0.3.8/tests/request_builder → foghttp-0.4.0/tests/examples}/__init__.py +0 -0
  575. {foghttp-0.3.8/tests/response_decompression → foghttp-0.4.0/tests/fault_injection}/__init__.py +0 -0
  576. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/conftest.py +0 -0
  577. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/constants.py +0 -0
  578. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/models.py +0 -0
  579. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/protocol.py +0 -0
  580. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/responses.py +0 -0
  581. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/server.py +0 -0
  582. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/state.py +0 -0
  583. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/state_assertions.py +0 -0
  584. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/test_async_fault_injection.py +0 -0
  585. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/test_async_socket_shutdown.py +0 -0
  586. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/test_sync_fault_injection.py +0 -0
  587. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/test_sync_socket_shutdown.py +0 -0
  588. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/timeout_assertions.py +0 -0
  589. {foghttp-0.3.8 → foghttp-0.4.0}/tests/fault_injection/transport_waiters.py +0 -0
  590. {foghttp-0.3.8/tests/types → foghttp-0.4.0/tests/network_errors}/__init__.py +0 -0
  591. {foghttp-0.3.8 → foghttp-0.4.0}/tests/network_errors/conftest.py +0 -0
  592. {foghttp-0.3.8 → foghttp-0.4.0}/tests/network_errors/constants.py +0 -0
  593. {foghttp-0.3.8 → foghttp-0.4.0}/tests/network_errors/helpers.py +0 -0
  594. {foghttp-0.3.8 → foghttp-0.4.0}/tests/network_errors/test_async_network_errors.py +0 -0
  595. {foghttp-0.3.8 → foghttp-0.4.0}/tests/network_errors/test_sync_network_errors.py +0 -0
  596. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/__init__.py +0 -0
  597. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/async_future_server.py +0 -0
  598. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/conftest.py +0 -0
  599. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/constants.py +0 -0
  600. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/gil_progress.py +0 -0
  601. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/test_async_future_boundary.py +0 -0
  602. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/test_sync_gil_boundary.py +0 -0
  603. {foghttp-0.3.8 → foghttp-0.4.0}/tests/pyo3_boundary/thread_worker.py +0 -0
  604. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/encoding_property_helpers.py +0 -0
  605. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_base_url.py +0 -0
  606. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_default_headers.py +0 -0
  607. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_default_params.py +0 -0
  608. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_encoding_properties.py +0 -0
  609. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_extensions.py +0 -0
  610. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_header_policy.py +0 -0
  611. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_headers.py +0 -0
  612. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_merge_contract.py +0 -0
  613. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_no_mutation.py +0 -0
  614. {foghttp-0.3.8 → foghttp-0.4.0}/tests/request_builder/test_query_params.py +0 -0
  615. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/conftest.py +0 -0
  616. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/constants.py +0 -0
  617. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/helpers.py +0 -0
  618. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/payloads.py +0 -0
  619. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/test_async_response_decompression.py +0 -0
  620. {foghttp-0.3.8 → foghttp-0.4.0}/tests/response_decompression/test_sync_response_decompression.py +0 -0
  621. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/__init__.py +0 -0
  622. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/async_http_server.py +0 -0
  623. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/timeout_diagnostics.py +0 -0
  624. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/transport_state.py +0 -0
  625. {foghttp-0.3.8 → foghttp-0.4.0}/tests/support/transport_stats.py +0 -0
  626. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_async_client.py +0 -0
  627. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_async_redirects.py +0 -0
  628. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_async_response.py +0 -0
  629. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_headers.py +0 -0
  630. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_query_params.py +0 -0
  631. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_redaction.py +0 -0
  632. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_request_extensions.py +0 -0
  633. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_request_model.py +0 -0
  634. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_response_encoding.py +0 -0
  635. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_response_flags.py +0 -0
  636. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_sync_client.py +0 -0
  637. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_sync_redirects.py +0 -0
  638. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_sync_response.py +0 -0
  639. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_transport_stats_waiters.py +0 -0
  640. {foghttp-0.3.8 → foghttp-0.4.0}/tests/test_url.py +0 -0
  641. {foghttp-0.3.8 → foghttp-0.4.0}/tests/types/test_request_extensions_contracts.py +0 -0
  642. {foghttp-0.3.8 → foghttp-0.4.0}/tests/types/test_retry_trace_contracts.py +0 -0
  643. {foghttp-0.3.8 → 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
- files: ^foghttp/.*\.py$
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 an early-stage HTTP client for Python with a Rust transport core. The
6
- project is intentionally focused: it is built for controlled service-to-service
7
- HTTP workloads where explicit lifecycle, predictable resource usage,
8
- cancellation, redirect safety, TLS trust boundaries, and request pressure
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
@@ -81,6 +81,12 @@ dependencies = [
81
81
  "cfg-if",
82
82
  ]
83
83
 
84
+ [[package]]
85
+ name = "deranged"
86
+ version = "0.5.8"
87
+ source = "registry+https://github.com/rust-lang/crates.io-index"
88
+ checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
89
+
84
90
  [[package]]
85
91
  name = "displaydoc"
86
92
  version = "0.2.6"
@@ -116,7 +122,7 @@ dependencies = [
116
122
 
117
123
  [[package]]
118
124
  name = "foghttp"
119
- version = "0.3.8"
125
+ version = "0.4.0"
120
126
  dependencies = [
121
127
  "brotli",
122
128
  "bytes",
@@ -128,7 +134,9 @@ dependencies = [
128
134
  "hyper-rustls",
129
135
  "hyper-util",
130
136
  "pyo3",
137
+ "rfc_6265",
131
138
  "rustls",
139
+ "time",
132
140
  "tokio",
133
141
  "tower-service",
134
142
  "url",
@@ -435,6 +443,12 @@ dependencies = [
435
443
  "windows-sys 0.61.2",
436
444
  ]
437
445
 
446
+ [[package]]
447
+ name = "num-conv"
448
+ version = "0.2.2"
449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
450
+ checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
451
+
438
452
  [[package]]
439
453
  name = "once_cell"
440
454
  version = "1.21.4"
@@ -468,6 +482,12 @@ dependencies = [
468
482
  "zerovec",
469
483
  ]
470
484
 
485
+ [[package]]
486
+ name = "powerfmt"
487
+ version = "0.2.0"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
490
+
471
491
  [[package]]
472
492
  name = "proc-macro2"
473
493
  version = "1.0.106"
@@ -543,6 +563,16 @@ dependencies = [
543
563
  "proc-macro2",
544
564
  ]
545
565
 
566
+ [[package]]
567
+ name = "rfc_6265"
568
+ version = "0.1.1"
569
+ source = "registry+https://github.com/rust-lang/crates.io-index"
570
+ checksum = "c385d4fba1a27dee6cdda85c619e8f714131a1c36da3ee4b67230414c8d7fd84"
571
+ dependencies = [
572
+ "idna",
573
+ "time",
574
+ ]
575
+
546
576
  [[package]]
547
577
  name = "ring"
548
578
  version = "0.17.14"
@@ -688,6 +718,36 @@ version = "0.13.5"
688
718
  source = "registry+https://github.com/rust-lang/crates.io-index"
689
719
  checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
690
720
 
721
+ [[package]]
722
+ name = "time"
723
+ version = "0.3.54"
724
+ source = "registry+https://github.com/rust-lang/crates.io-index"
725
+ checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244"
726
+ dependencies = [
727
+ "deranged",
728
+ "num-conv",
729
+ "powerfmt",
730
+ "serde_core",
731
+ "time-core",
732
+ "time-macros",
733
+ ]
734
+
735
+ [[package]]
736
+ name = "time-core"
737
+ version = "0.1.9"
738
+ source = "registry+https://github.com/rust-lang/crates.io-index"
739
+ checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
740
+
741
+ [[package]]
742
+ name = "time-macros"
743
+ version = "0.2.32"
744
+ source = "registry+https://github.com/rust-lang/crates.io-index"
745
+ checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
746
+ dependencies = [
747
+ "num-conv",
748
+ "time-core",
749
+ ]
750
+
691
751
  [[package]]
692
752
  name = "tinystr"
693
753
  version = "0.8.3"
@@ -1,8 +1,9 @@
1
1
  [package]
2
2
  name = "foghttp"
3
- version = "0.3.8"
3
+ version = "0.4.0"
4
4
  description = "Observable Rust-powered HTTP client for Python services."
5
5
  edition = "2021"
6
+ rust-version = "1.88"
6
7
  homepage = "https://github.com/AmberFog/foghttp"
7
8
  license = "MIT"
8
9
  publish = false
@@ -24,6 +25,8 @@ fastrand = "2.3.0"
24
25
  flate2 = "1.1.9"
25
26
  http-body-util = "0.1.3"
26
27
  httpdate = "1.0.3"
28
+ rfc_6265 = { version = "0.1.1", default-features = false, features = ["date", "idna", "path"] }
29
+ time = { version = "0.3.54", default-features = false, features = ["std"] }
27
30
  url = "2.5.8"
28
31
 
29
32
  [dependencies.hyper]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foghttp
3
- Version: 0.3.8
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 an early MVP HTTP client. The public API is Python-first, while the
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 request, redirect, response headers,
172
- response body, and request completion lifecycle
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
@@ -184,20 +204,28 @@ async with foghttp.AsyncClient() as client:
184
204
  safety
185
205
  - shared Tokio runtime by default, with opt-in dedicated runtime worker tuning
186
206
  - grouped HTTP status constants and reusable HTTP method constants
207
+ - client-level Basic and synchronous callable authentication with retry refresh
208
+ and cross-origin credential stripping
209
+ - opt-in client-owned cookie jar with bounded domain/path/expiry matching,
210
+ redirect/retry coordination, and redacted diagnostics
187
211
 
188
212
  ## Documentation
189
213
 
190
214
  - [Documentation](https://github.com/AmberFog/foghttp/blob/main/docs/index.md)
191
215
  - [Quickstart](https://github.com/AmberFog/foghttp/blob/main/docs/quickstart.md)
192
216
  - [Request builder compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/request-builder.md)
217
+ - [Authentication](https://github.com/AmberFog/foghttp/blob/main/docs/auth.md)
218
+ - [Cookies](https://github.com/AmberFog/foghttp/blob/main/docs/cookies.md)
193
219
  - [Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md)
194
220
  - [Packaging and Python compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/packaging.md)
195
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)
196
223
  - [Upload typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/upload-types.md)
197
224
  - [Transport policy hooks](https://github.com/AmberFog/foghttp/blob/main/docs/policy-hooks.md)
198
225
  - [Retry policy](https://github.com/AmberFog/foghttp/blob/main/docs/retries.md)
199
226
  - [SSRF protection](https://github.com/AmberFog/foghttp/blob/main/docs/ssrf.md)
200
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)
201
229
  - [Response streaming](https://github.com/AmberFog/foghttp/blob/main/docs/streaming.md)
202
230
  - [Proxy and trust_env](https://github.com/AmberFog/foghttp/blob/main/docs/proxies.md)
203
231
  - [TLS trust](https://github.com/AmberFog/foghttp/blob/main/docs/tls.md)
@@ -217,10 +245,11 @@ cleanup rules. HTTP proxy routing and HTTPS proxy `CONNECT` tunnelling are
217
245
  available through `proxy=` and `trust_env=True` when the proxy endpoint itself
218
246
  uses `http://`. Proxy-routed requests fail closed when `SSRFPolicy` is enabled
219
247
  because the client cannot prove which target address a remote proxy resolves.
220
- Cookies, auth helpers, HTTP/2, automatic `Accept-Encoding` negotiation,
221
- streaming decompression, and per-request connect timeout reconfiguration are
222
- planned for later versions. Physical connection caps currently apply to the
223
- HTTP/1.1 connector path; HTTP/2 will require separate stream-level limits.
248
+ Provider-specific OAuth flows, HTTP/2, automatic `Accept-Encoding` negotiation,
249
+ streaming decompression, and per-request connect timeout
250
+ reconfiguration are planned for later versions. Physical connection caps
251
+ currently apply to the HTTP/1.1 connector path; HTTP/2 will require separate
252
+ stream-level limits.
224
253
  Response body read timeout is available for buffered and streaming response
225
254
  bodies; request body write timeout is available for buffered and streaming
226
255
  request bodies. Socket lifecycle telemetry is available for the current HTTP/1
@@ -232,8 +261,7 @@ Development requires a Rust toolchain with `cargo` available in `PATH`.
232
261
 
233
262
  ```bash
234
263
  uv run --extra dev --with "maturin>=1.7,<2" maturin develop --locked --skip-install
235
- uv run --extra dev coverage run -m pytest
236
- uv run --extra dev coverage report -m
264
+ uv run --extra dev coverage run -m pytest && uv run --extra dev coverage report -m
237
265
  uv run --extra dev pre-commit run --all-files --show-diff-on-failure
238
266
  ```
239
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 an early MVP HTTP client. The public API is Python-first, while the
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 request, redirect, response headers,
129
- response body, and request completion lifecycle
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
@@ -141,20 +158,28 @@ async with foghttp.AsyncClient() as client:
141
158
  safety
142
159
  - shared Tokio runtime by default, with opt-in dedicated runtime worker tuning
143
160
  - grouped HTTP status constants and reusable HTTP method constants
161
+ - client-level Basic and synchronous callable authentication with retry refresh
162
+ and cross-origin credential stripping
163
+ - opt-in client-owned cookie jar with bounded domain/path/expiry matching,
164
+ redirect/retry coordination, and redacted diagnostics
144
165
 
145
166
  ## Documentation
146
167
 
147
168
  - [Documentation](https://github.com/AmberFog/foghttp/blob/main/docs/index.md)
148
169
  - [Quickstart](https://github.com/AmberFog/foghttp/blob/main/docs/quickstart.md)
149
170
  - [Request builder compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/request-builder.md)
171
+ - [Authentication](https://github.com/AmberFog/foghttp/blob/main/docs/auth.md)
172
+ - [Cookies](https://github.com/AmberFog/foghttp/blob/main/docs/cookies.md)
150
173
  - [Client lifecycle](https://github.com/AmberFog/foghttp/blob/main/docs/lifecycle.md)
151
174
  - [Packaging and Python compatibility](https://github.com/AmberFog/foghttp/blob/main/docs/packaging.md)
152
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)
153
177
  - [Upload typing contracts](https://github.com/AmberFog/foghttp/blob/main/docs/upload-types.md)
154
178
  - [Transport policy hooks](https://github.com/AmberFog/foghttp/blob/main/docs/policy-hooks.md)
155
179
  - [Retry policy](https://github.com/AmberFog/foghttp/blob/main/docs/retries.md)
156
180
  - [SSRF protection](https://github.com/AmberFog/foghttp/blob/main/docs/ssrf.md)
157
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)
158
183
  - [Response streaming](https://github.com/AmberFog/foghttp/blob/main/docs/streaming.md)
159
184
  - [Proxy and trust_env](https://github.com/AmberFog/foghttp/blob/main/docs/proxies.md)
160
185
  - [TLS trust](https://github.com/AmberFog/foghttp/blob/main/docs/tls.md)
@@ -174,10 +199,11 @@ cleanup rules. HTTP proxy routing and HTTPS proxy `CONNECT` tunnelling are
174
199
  available through `proxy=` and `trust_env=True` when the proxy endpoint itself
175
200
  uses `http://`. Proxy-routed requests fail closed when `SSRFPolicy` is enabled
176
201
  because the client cannot prove which target address a remote proxy resolves.
177
- Cookies, auth helpers, HTTP/2, automatic `Accept-Encoding` negotiation,
178
- streaming decompression, and per-request connect timeout reconfiguration are
179
- planned for later versions. Physical connection caps currently apply to the
180
- HTTP/1.1 connector path; HTTP/2 will require separate stream-level limits.
202
+ Provider-specific OAuth flows, HTTP/2, automatic `Accept-Encoding` negotiation,
203
+ streaming decompression, and per-request connect timeout
204
+ reconfiguration are planned for later versions. Physical connection caps
205
+ currently apply to the HTTP/1.1 connector path; HTTP/2 will require separate
206
+ stream-level limits.
181
207
  Response body read timeout is available for buffered and streaming response
182
208
  bodies; request body write timeout is available for buffered and streaming
183
209
  request bodies. Socket lifecycle telemetry is available for the current HTTP/1
@@ -189,7 +215,6 @@ Development requires a Rust toolchain with `cargo` available in `PATH`.
189
215
 
190
216
  ```bash
191
217
  uv run --extra dev --with "maturin>=1.7,<2" maturin develop --locked --skip-install
192
- uv run --extra dev coverage run -m pytest
193
- uv run --extra dev coverage report -m
218
+ uv run --extra dev coverage run -m pytest && uv run --extra dev coverage report -m
194
219
  uv run --extra dev pre-commit run --all-files --show-diff-on-failure
195
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 transport behavior, cookie
122
- jar behavior, multipart uploads, or HTTP/2 unless the current code exposes
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