foghttp 0.4.0__tar.gz → 0.4.2__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 (1101) hide show
  1. foghttp-0.4.2/.flake8 +60 -0
  2. foghttp-0.4.2/.github/workflows/ci.yml +101 -0
  3. foghttp-0.4.2/.github/workflows/full_checks.yml +235 -0
  4. foghttp-0.4.2/.github/workflows/release.yml +620 -0
  5. foghttp-0.4.2/.pre-commit-config.yaml +74 -0
  6. foghttp-0.4.2/CONTRIBUTING.md +104 -0
  7. foghttp-0.4.2/Cargo.lock +1045 -0
  8. foghttp-0.4.2/Cargo.toml +83 -0
  9. foghttp-0.4.2/PKG-INFO +132 -0
  10. foghttp-0.4.2/README.md +78 -0
  11. foghttp-0.4.2/SECURITY.md +130 -0
  12. foghttp-0.4.2/docs/auth.md +82 -0
  13. foghttp-0.4.2/docs/benchmarks.md +64 -0
  14. foghttp-0.4.2/docs/cookies.md +87 -0
  15. foghttp-0.4.2/docs/httpx-migration.md +179 -0
  16. foghttp-0.4.2/docs/index.md +62 -0
  17. foghttp-0.4.2/docs/lifecycle.md +183 -0
  18. foghttp-0.4.2/docs/limitations.md +79 -0
  19. foghttp-0.4.2/docs/packaging.md +147 -0
  20. foghttp-0.4.2/docs/policy-hooks.md +59 -0
  21. foghttp-0.4.2/docs/prometheus.md +114 -0
  22. foghttp-0.4.2/docs/proxies.md +130 -0
  23. foghttp-0.4.2/docs/pyo3-boundary.md +132 -0
  24. foghttp-0.4.2/docs/quickstart.md +110 -0
  25. foghttp-0.4.2/docs/redirects.md +83 -0
  26. foghttp-0.4.2/docs/request-builder.md +176 -0
  27. foghttp-0.4.2/docs/retries.md +161 -0
  28. foghttp-0.4.2/docs/ssrf.md +69 -0
  29. foghttp-0.4.2/docs/streaming-boundary-controls.csv +169 -0
  30. foghttp-0.4.2/docs/streaming-boundary-conversion.csv +37 -0
  31. foghttp-0.4.2/docs/streaming-boundary-measurements.md +219 -0
  32. foghttp-0.4.2/docs/streaming.md +122 -0
  33. foghttp-0.4.2/docs/telemetry.md +269 -0
  34. foghttp-0.4.2/docs/timeouts.md +164 -0
  35. foghttp-0.4.2/docs/tls.md +58 -0
  36. foghttp-0.4.2/docs/typing.md +60 -0
  37. foghttp-0.4.2/docs/upload-types.md +100 -0
  38. foghttp-0.4.2/docs/use-cases.md +90 -0
  39. foghttp-0.4.2/examples/README.md +50 -0
  40. foghttp-0.4.2/examples/opentelemetry_tracing.py +43 -0
  41. foghttp-0.4.2/foghttp/__init__.py +150 -0
  42. foghttp-0.4.2/foghttp/_client/config.py +112 -0
  43. foghttp-0.4.2/foghttp/_client/core.py +307 -0
  44. foghttp-0.4.2/foghttp/_client/options.py +60 -0
  45. foghttp-0.4.2/foghttp/_client/proxy_diagnostics_mapping.py +44 -0
  46. foghttp-0.4.2/foghttp/_client/raw/errors.py +82 -0
  47. foghttp-0.4.2/foghttp/_client/raw/lifecycle.py +119 -0
  48. foghttp-0.4.2/foghttp/_client/raw/requests.py +199 -0
  49. foghttp-0.4.2/foghttp/_client/request_builder/builder.py +61 -0
  50. foghttp-0.4.2/foghttp/_client/request_builder/models.py +24 -0
  51. foghttp-0.4.2/foghttp/_client/response.py +120 -0
  52. foghttp-0.4.2/foghttp/_client/stats.py +48 -0
  53. foghttp-0.4.2/foghttp/_client/stream_context.py +62 -0
  54. foghttp-0.4.2/foghttp/_client/telemetry/dispatcher.py +285 -0
  55. foghttp-0.4.2/foghttp/_client/telemetry/emission.py +93 -0
  56. foghttp-0.4.2/foghttp/_client/telemetry/hook_errors.py +67 -0
  57. foghttp-0.4.2/foghttp/_client/telemetry/native.py +156 -0
  58. foghttp-0.4.2/foghttp/_client/telemetry/request_context.py +134 -0
  59. foghttp-0.4.2/foghttp/_client/tracing.py +42 -0
  60. foghttp-0.4.2/foghttp/_client/transport.py +162 -0
  61. foghttp-0.4.2/foghttp/_client/transport_requests.py +45 -0
  62. foghttp-0.4.2/foghttp/_client/transport_snapshot_mapping.py +87 -0
  63. foghttp-0.4.2/foghttp/_foghttp.pyi +593 -0
  64. foghttp-0.4.2/foghttp/_multipart/cleanup.py +104 -0
  65. foghttp-0.4.2/foghttp/_multipart/factory.py +69 -0
  66. foghttp-0.4.2/foghttp/_multipart/iterators.py +71 -0
  67. foghttp-0.4.2/foghttp/_multipart/models.py +43 -0
  68. foghttp-0.4.2/foghttp/_multipart/stream.py +151 -0
  69. foghttp-0.4.2/foghttp/_multipart/sync_runner.py +109 -0
  70. foghttp-0.4.2/foghttp/_response/encoding.py +61 -0
  71. foghttp-0.4.2/foghttp/_streaming/text/async_chunks.py +27 -0
  72. foghttp-0.4.2/foghttp/_streaming/text/iterators.py +44 -0
  73. foghttp-0.4.2/foghttp/_streaming/text/lines.py +117 -0
  74. foghttp-0.4.2/foghttp/_streaming/text/sync_chunks.py +27 -0
  75. foghttp-0.4.2/foghttp/_upload_body/async_sending.py +113 -0
  76. foghttp-0.4.2/foghttp/_upload_body/attempt.py +68 -0
  77. foghttp-0.4.2/foghttp/_upload_body/chunks.py +71 -0
  78. foghttp-0.4.2/foghttp/_upload_body/cleanup.py +165 -0
  79. foghttp-0.4.2/foghttp/_upload_body/cleanup_callbacks.py +84 -0
  80. foghttp-0.4.2/foghttp/_upload_body/cleanup_execution.py +252 -0
  81. foghttp-0.4.2/foghttp/_upload_body/cleanup_group.py +43 -0
  82. foghttp-0.4.2/foghttp/_upload_body/cleanup_iteration.py +101 -0
  83. foghttp-0.4.2/foghttp/_upload_body/cleanup_owner.py +203 -0
  84. foghttp-0.4.2/foghttp/_upload_body/cleanup_start.py +99 -0
  85. foghttp-0.4.2/foghttp/_upload_body/cleanup_waiters.py +61 -0
  86. foghttp-0.4.2/foghttp/_upload_body/feeders.py +262 -0
  87. foghttp-0.4.2/foghttp/_upload_body/file_source.py +52 -0
  88. foghttp-0.4.2/foghttp/_upload_body/models.py +60 -0
  89. foghttp-0.4.2/foghttp/_upload_body/runtime.py +445 -0
  90. foghttp-0.4.2/foghttp/_upload_body/thread_bridge.py +196 -0
  91. foghttp-0.4.2/foghttp/_validation/boolean.py +7 -0
  92. foghttp-0.4.2/foghttp/_validation/numeric.py +57 -0
  93. foghttp-0.4.2/foghttp/async_client.py +607 -0
  94. foghttp-0.4.2/foghttp/client.py +585 -0
  95. foghttp-0.4.2/foghttp/errors/__init__.py +36 -0
  96. foghttp-0.4.2/foghttp/errors/response.py +46 -0
  97. foghttp-0.4.2/foghttp/limits.py +96 -0
  98. foghttp-0.4.2/foghttp/opentelemetry/__init__.py +5 -0
  99. foghttp-0.4.2/foghttp/opentelemetry/attributes.py +44 -0
  100. foghttp-0.4.2/foghttp/opentelemetry/configuration.py +29 -0
  101. foghttp-0.4.2/foghttp/opentelemetry/integration.py +76 -0
  102. foghttp-0.4.2/foghttp/opentelemetry/span.py +67 -0
  103. foghttp-0.4.2/foghttp/prometheus/labels.py +158 -0
  104. foghttp-0.4.2/foghttp/proxy_diagnostics.py +25 -0
  105. foghttp-0.4.2/foghttp/request.py +87 -0
  106. foghttp-0.4.2/foghttp/stream_response/async_response.py +128 -0
  107. foghttp-0.4.2/foghttp/stream_response/base.py +134 -0
  108. foghttp-0.4.2/foghttp/stream_response/sync_response.py +109 -0
  109. foghttp-0.4.2/foghttp/stream_response/telemetry.py +94 -0
  110. foghttp-0.4.2/foghttp/transport_state.py +74 -0
  111. foghttp-0.4.2/foghttp/transport_stats.py +47 -0
  112. foghttp-0.4.2/pyproject.toml +96 -0
  113. foghttp-0.4.2/scripts/check_release_candidate.py +77 -0
  114. foghttp-0.4.2/scripts/check_release_wheels.py +72 -0
  115. foghttp-0.4.2/scripts/check_sdist.py +161 -0
  116. foghttp-0.4.2/scripts/install_wheel_smoke.py +90 -0
  117. foghttp-0.4.2/scripts/measure_streaming_boundary.py +203 -0
  118. foghttp-0.4.2/scripts/wheel_smoke_runtime.py +168 -0
  119. foghttp-0.4.2/src/core/client/body/tests.rs +247 -0
  120. foghttp-0.4.2/src/core/client/body/upload_budget.rs +261 -0
  121. foghttp-0.4.2/src/core/client/body/upload_budget_tests.rs +323 -0
  122. foghttp-0.4.2/src/core/client/body.rs +819 -0
  123. foghttp-0.4.2/src/core/client/mod.rs +148 -0
  124. foghttp-0.4.2/src/core/client/proxy/endpoint.rs +35 -0
  125. foghttp-0.4.2/src/core/client/proxy/http.rs +140 -0
  126. foghttp-0.4.2/src/core/client/proxy/mod.rs +11 -0
  127. foghttp-0.4.2/src/core/client/proxy/tests.rs +432 -0
  128. foghttp-0.4.2/src/core/client/proxy/tunnel.rs +398 -0
  129. foghttp-0.4.2/src/core/client/ssrf/tests.rs +143 -0
  130. foghttp-0.4.2/src/core/client/ssrf.rs +140 -0
  131. foghttp-0.4.2/src/core/client/telemetry/mod.rs +1018 -0
  132. foghttp-0.4.2/src/core/client/telemetry/tests.rs +1338 -0
  133. foghttp-0.4.2/src/core/client/write_timeout/tests.rs +32 -0
  134. foghttp-0.4.2/src/core/client/write_timeout.rs +123 -0
  135. foghttp-0.4.2/src/core/headers/request.rs +16 -0
  136. foghttp-0.4.2/src/core/headers/tests.rs +67 -0
  137. foghttp-0.4.2/src/core/metrics/counters.rs +209 -0
  138. foghttp-0.4.2/src/core/metrics/mod.rs +70 -0
  139. foghttp-0.4.2/src/core/metrics/proxy.rs +295 -0
  140. foghttp-0.4.2/src/core/metrics/snapshots.rs +241 -0
  141. foghttp-0.4.2/src/core/metrics/streaming.rs +41 -0
  142. foghttp-0.4.2/src/core/metrics/tests.rs +462 -0
  143. foghttp-0.4.2/src/core/policy/cookies/tests.rs +616 -0
  144. foghttp-0.4.2/src/core/policy/cookies.rs +447 -0
  145. foghttp-0.4.2/src/core/policy/ssrf/tests.rs +237 -0
  146. foghttp-0.4.2/src/core/policy/ssrf.rs +510 -0
  147. foghttp-0.4.2/src/core/request/tests.rs +65 -0
  148. foghttp-0.4.2/src/core/request.rs +51 -0
  149. foghttp-0.4.2/src/core/response/body/tests.rs +99 -0
  150. foghttp-0.4.2/src/core/response/body.rs +86 -0
  151. foghttp-0.4.2/src/core/response/budget/tests.rs +96 -0
  152. foghttp-0.4.2/src/core/response/budget.rs +86 -0
  153. foghttp-0.4.2/src/core/response/codec/gzip.rs +108 -0
  154. foghttp-0.4.2/src/core/response/codec.rs +164 -0
  155. foghttp-0.4.2/src/core/response/decompression/tests.rs +600 -0
  156. foghttp-0.4.2/src/core/response/decompression.rs +325 -0
  157. foghttp-0.4.2/src/core/response/error.rs +58 -0
  158. foghttp-0.4.2/src/core/response/mod.rs +17 -0
  159. foghttp-0.4.2/src/core/response/streaming/allocation_tests.rs +487 -0
  160. foghttp-0.4.2/src/core/response/streaming/error.rs +74 -0
  161. foghttp-0.4.2/src/core/response/streaming/fixtures/gzip_starvation.gz +0 -0
  162. foghttp-0.4.2/src/core/response/streaming/mod.rs +351 -0
  163. foghttp-0.4.2/src/core/response/streaming/tests.rs +752 -0
  164. foghttp-0.4.2/src/core/telemetry/tests.rs +382 -0
  165. foghttp-0.4.2/src/core/telemetry.rs +922 -0
  166. foghttp-0.4.2/src/core/tls/tests.rs +31 -0
  167. foghttp-0.4.2/src/core/url/constants.rs +10 -0
  168. foghttp-0.4.2/src/core/url/mod.rs +94 -0
  169. foghttp-0.4.2/src/core/url/origin.rs +16 -0
  170. foghttp-0.4.2/src/core/url/scheme.rs +5 -0
  171. foghttp-0.4.2/src/core/url/tests.rs +82 -0
  172. foghttp-0.4.2/src/errors.rs +83 -0
  173. foghttp-0.4.2/src/lib.rs +17 -0
  174. foghttp-0.4.2/src/py/client/async_requests/mod.rs +13 -0
  175. foghttp-0.4.2/src/py/client/async_requests/stream_spawn.rs +126 -0
  176. foghttp-0.4.2/src/py/client/async_requests/test_support.rs +38 -0
  177. foghttp-0.4.2/src/py/client/future.rs +222 -0
  178. foghttp-0.4.2/src/py/client/mod.rs +895 -0
  179. foghttp-0.4.2/src/py/client/options/tests.rs +70 -0
  180. foghttp-0.4.2/src/py/client/options.rs +119 -0
  181. foghttp-0.4.2/src/py/client/runtime/mod.rs +123 -0
  182. foghttp-0.4.2/src/py/client/runtime/shared.rs +66 -0
  183. foghttp-0.4.2/src/py/client/runtime/tests.rs +170 -0
  184. foghttp-0.4.2/src/py/client/streams/budget.rs +33 -0
  185. foghttp-0.4.2/src/py/client/streams/coalescing/tests.rs +160 -0
  186. foghttp-0.4.2/src/py/client/streams/coalescing.rs +81 -0
  187. foghttp-0.4.2/src/py/client/streams/mod.rs +15 -0
  188. foghttp-0.4.2/src/py/client/streams/parts.rs +39 -0
  189. foghttp-0.4.2/src/py/client/streams/response.rs +288 -0
  190. foghttp-0.4.2/src/py/client/streams/response_tests.rs +176 -0
  191. foghttp-0.4.2/src/py/client/streams/state/decoded/tests.rs +184 -0
  192. foghttp-0.4.2/src/py/client/streams/state/decoded.rs +165 -0
  193. foghttp-0.4.2/src/py/client/streams/state.rs +509 -0
  194. foghttp-0.4.2/src/py/client/streams/state_tests.rs +200 -0
  195. foghttp-0.4.2/src/py/client/timeout_diagnostics.rs +125 -0
  196. foghttp-0.4.2/src/py/client/transport/body.rs +105 -0
  197. foghttp-0.4.2/src/py/client/transport/buffered.rs +166 -0
  198. foghttp-0.4.2/src/py/client/transport/client.rs +26 -0
  199. foghttp-0.4.2/src/py/client/transport/context.rs +38 -0
  200. foghttp-0.4.2/src/py/client/transport/decoding/admission_tests.rs +194 -0
  201. foghttp-0.4.2/src/py/client/transport/decoding/compatibility_tests.rs +90 -0
  202. foghttp-0.4.2/src/py/client/transport/decoding/expired_tests.rs +84 -0
  203. foghttp-0.4.2/src/py/client/transport/decoding/native_cases.rs +168 -0
  204. foghttp-0.4.2/src/py/client/transport/decoding/native_test_support.rs +299 -0
  205. foghttp-0.4.2/src/py/client/transport/decoding/registry_tests.rs +215 -0
  206. foghttp-0.4.2/src/py/client/transport/decoding/test_control.rs +117 -0
  207. foghttp-0.4.2/src/py/client/transport/decoding/test_fixtures.rs +97 -0
  208. foghttp-0.4.2/src/py/client/transport/decoding/tests.rs +190 -0
  209. foghttp-0.4.2/src/py/client/transport/decoding.rs +86 -0
  210. foghttp-0.4.2/src/py/client/transport/errors.rs +135 -0
  211. foghttp-0.4.2/src/py/client/transport/mod.rs +18 -0
  212. foghttp-0.4.2/src/py/client/transport/request/early_response_pool_tests.rs +307 -0
  213. foghttp-0.4.2/src/py/client/transport/request/response_header_timeout_tests.rs +63 -0
  214. foghttp-0.4.2/src/py/client/transport/request.rs +1041 -0
  215. foghttp-0.4.2/src/py/client/transport/response.rs +263 -0
  216. foghttp-0.4.2/src/py/client/transport/streaming.rs +202 -0
  217. foghttp-0.4.2/src/py/client/transport/tests.rs +273 -0
  218. foghttp-0.4.2/src/py/client/upload_body/budget_lifecycle_tests.rs +316 -0
  219. foghttp-0.4.2/src/py/client/upload_body/startup/tests.rs +123 -0
  220. foghttp-0.4.2/src/py/client/upload_body/startup.rs +92 -0
  221. foghttp-0.4.2/src/py/client/upload_body/tests.rs +92 -0
  222. foghttp-0.4.2/src/py/client/upload_body.rs +337 -0
  223. foghttp-0.4.2/src/py/mod.rs +41 -0
  224. foghttp-0.4.2/src/py/proxy_diagnostics.rs +77 -0
  225. foghttp-0.4.2/src/py/retry/tests.rs +125 -0
  226. foghttp-0.4.2/src/py/retry.rs +217 -0
  227. foghttp-0.4.2/src/py/stats.rs +228 -0
  228. foghttp-0.4.2/src/py/telemetry/tests.rs +31 -0
  229. foghttp-0.4.2/src/py/telemetry.rs +54 -0
  230. foghttp-0.4.2/src/py/transport_state.rs +119 -0
  231. foghttp-0.4.2/tests/accept_encoding/conftest.py +5 -0
  232. foghttp-0.4.2/tests/accept_encoding/negotiation_cases.py +36 -0
  233. foghttp-0.4.2/tests/accept_encoding/test_async_negotiation.py +488 -0
  234. foghttp-0.4.2/tests/accept_encoding/test_config.py +80 -0
  235. foghttp-0.4.2/tests/accept_encoding/test_projection.py +47 -0
  236. foghttp-0.4.2/tests/accept_encoding/test_sync_negotiation.py +477 -0
  237. foghttp-0.4.2/tests/client_cancellation/conftest.py +64 -0
  238. foghttp-0.4.2/tests/client_cancellation/test_async_lifecycle_debug_buffered.py +171 -0
  239. foghttp-0.4.2/tests/client_keepalive/assertions.py +196 -0
  240. foghttp-0.4.2/tests/client_keepalive/conftest.py +24 -0
  241. foghttp-0.4.2/tests/client_keepalive/constants.py +28 -0
  242. foghttp-0.4.2/tests/client_keepalive/server.py +376 -0
  243. foghttp-0.4.2/tests/client_keepalive/test_async_keepalive.py +462 -0
  244. foghttp-0.4.2/tests/client_keepalive/test_sync_keepalive.py +434 -0
  245. foghttp-0.4.2/tests/client_lifecycle/conftest.py +189 -0
  246. foghttp-0.4.2/tests/client_lifecycle/helpers.py +109 -0
  247. foghttp-0.4.2/tests/client_lifecycle/reentrant_close_helpers.py +143 -0
  248. foghttp-0.4.2/tests/client_lifecycle/reentrant_close_probe.py +102 -0
  249. foghttp-0.4.2/tests/client_lifecycle/test_async_client_lifecycle.py +302 -0
  250. foghttp-0.4.2/tests/client_lifecycle/test_client_construction.py +68 -0
  251. foghttp-0.4.2/tests/client_lifecycle/test_fork_safety.py +239 -0
  252. foghttp-0.4.2/tests/client_lifecycle/test_sync_client_lifecycle.py +317 -0
  253. foghttp-0.4.2/tests/client_lifecycle/test_sync_reentrant_close.py +163 -0
  254. foghttp-0.4.2/tests/client_multipart/sources.py +249 -0
  255. foghttp-0.4.2/tests/client_multipart/test_async_multipart.py +496 -0
  256. foghttp-0.4.2/tests/client_multipart/test_cleanup_admission.py +157 -0
  257. foghttp-0.4.2/tests/client_multipart/test_multipart_internals.py +1213 -0
  258. foghttp-0.4.2/tests/client_multipart/test_request_builder.py +326 -0
  259. foghttp-0.4.2/tests/client_multipart/test_sync_multipart.py +449 -0
  260. foghttp-0.4.2/tests/client_options/test_numeric_validation.py +170 -0
  261. foghttp-0.4.2/tests/client_options/test_raw_numeric_boundary.py +325 -0
  262. foghttp-0.4.2/tests/client_options/test_raw_upload_budget_boundary.py +201 -0
  263. foghttp-0.4.2/tests/client_options/test_upload_buffer_limits.py +47 -0
  264. foghttp-0.4.2/tests/client_proxy/connect_proxy_server.py +257 -0
  265. foghttp-0.4.2/tests/client_proxy/http_proxy_server.py +281 -0
  266. foghttp-0.4.2/tests/client_proxy/test_http_proxy_transport.py +575 -0
  267. foghttp-0.4.2/tests/client_proxy/test_https_proxy_connect.py +739 -0
  268. foghttp-0.4.2/tests/client_resources/conftest.py +183 -0
  269. foghttp-0.4.2/tests/client_resources/constants.py +42 -0
  270. foghttp-0.4.2/tests/client_resources/gates.py +44 -0
  271. foghttp-0.4.2/tests/client_resources/test_async_connection_limits.py +194 -0
  272. foghttp-0.4.2/tests/client_resources/test_async_origin_limits.py +169 -0
  273. foghttp-0.4.2/tests/client_resources/test_async_pool_diagnostics.py +88 -0
  274. foghttp-0.4.2/tests/client_resources/test_async_response_gate.py +69 -0
  275. foghttp-0.4.2/tests/client_resources/test_async_transport_state.py +65 -0
  276. foghttp-0.4.2/tests/client_resources/test_diagnostic_snapshot_contract.py +173 -0
  277. foghttp-0.4.2/tests/client_resources/test_sync_connection_limits.py +237 -0
  278. foghttp-0.4.2/tests/client_resources/test_sync_origin_limits.py +162 -0
  279. foghttp-0.4.2/tests/client_resources/test_sync_pool_diagnostics.py +122 -0
  280. foghttp-0.4.2/tests/client_resources/test_sync_response_gate.py +38 -0
  281. foghttp-0.4.2/tests/client_resources/test_sync_transport_state.py +61 -0
  282. foghttp-0.4.2/tests/client_retry/conftest.py +77 -0
  283. foghttp-0.4.2/tests/client_retry/constants.py +28 -0
  284. foghttp-0.4.2/tests/client_retry/early_upload_assertions.py +132 -0
  285. foghttp-0.4.2/tests/client_retry/models.py +24 -0
  286. foghttp-0.4.2/tests/client_retry/server.py +418 -0
  287. foghttp-0.4.2/tests/client_retry/sources.py +181 -0
  288. foghttp-0.4.2/tests/client_retry/test_async_retry.py +208 -0
  289. foghttp-0.4.2/tests/client_retry/test_attempt_trace.py +666 -0
  290. foghttp-0.4.2/tests/client_retry/test_early_upload_retry.py +213 -0
  291. foghttp-0.4.2/tests/client_retry/test_sync_retry.py +538 -0
  292. foghttp-0.4.2/tests/client_streaming/conftest.py +78 -0
  293. foghttp-0.4.2/tests/client_streaming/constants.py +53 -0
  294. foghttp-0.4.2/tests/client_streaming/server.py +355 -0
  295. foghttp-0.4.2/tests/client_streaming/streaming_history_assertions.py +83 -0
  296. foghttp-0.4.2/tests/client_streaming/streaming_history_conversion.py +74 -0
  297. foghttp-0.4.2/tests/client_streaming/streaming_history_sources.py +86 -0
  298. foghttp-0.4.2/tests/client_streaming/test_async_streaming.py +282 -0
  299. foghttp-0.4.2/tests/client_streaming/test_async_streaming_codecs.py +93 -0
  300. foghttp-0.4.2/tests/client_streaming/test_streaming_redirect_history_handoff.py +258 -0
  301. foghttp-0.4.2/tests/client_streaming/test_streaming_text_cleanup.py +273 -0
  302. foghttp-0.4.2/tests/client_streaming/test_streaming_text_decoding.py +145 -0
  303. foghttp-0.4.2/tests/client_streaming/test_sync_streaming.py +284 -0
  304. foghttp-0.4.2/tests/client_streaming/test_sync_streaming_codecs.py +93 -0
  305. foghttp-0.4.2/tests/client_streaming/test_text_codec_contract.py +84 -0
  306. foghttp-0.4.2/tests/client_streaming/text_codec_cases.py +5 -0
  307. foghttp-0.4.2/tests/client_streaming/text_decoding_sources.py +75 -0
  308. foghttp-0.4.2/tests/client_telemetry/native_warning_sources.py +133 -0
  309. foghttp-0.4.2/tests/client_telemetry/test_native_deferred_warnings.py +181 -0
  310. foghttp-0.4.2/tests/client_timeouts/conftest.py +260 -0
  311. foghttp-0.4.2/tests/client_timeouts/constants.py +45 -0
  312. foghttp-0.4.2/tests/client_timeouts/helpers.py +57 -0
  313. foghttp-0.4.2/tests/client_timeouts/test_async_timeouts.py +361 -0
  314. foghttp-0.4.2/tests/client_timeouts/test_sync_timeouts.py +316 -0
  315. foghttp-0.4.2/tests/client_tls/handshake_server.py +89 -0
  316. foghttp-0.4.2/tests/client_tls/models.py +28 -0
  317. foghttp-0.4.2/tests/client_tls/server.py +94 -0
  318. foghttp-0.4.2/tests/client_tls/test_server_shutdown.py +48 -0
  319. foghttp-0.4.2/tests/client_transport/models.py +182 -0
  320. foghttp-0.4.2/tests/client_transport/stream_response_conversion_models.py +174 -0
  321. foghttp-0.4.2/tests/client_transport/test_stream_response_conversion.py +133 -0
  322. foghttp-0.4.2/tests/client_transport/test_transport_adapter.py +353 -0
  323. foghttp-0.4.2/tests/client_upload/conftest.py +58 -0
  324. foghttp-0.4.2/tests/client_upload/file_length_allocation_probe.py +44 -0
  325. foghttp-0.4.2/tests/client_upload/file_length_sources.py +89 -0
  326. foghttp-0.4.2/tests/client_upload/helpers.py +220 -0
  327. foghttp-0.4.2/tests/client_upload/raw_callback_probe.py +223 -0
  328. foghttp-0.4.2/tests/client_upload/test_async_upload_segmentation.py +91 -0
  329. foghttp-0.4.2/tests/client_upload/test_async_wrapper_upload_length.py +49 -0
  330. foghttp-0.4.2/tests/client_upload/test_cleanup_admission.py +274 -0
  331. foghttp-0.4.2/tests/client_upload/test_file_content_length.py +169 -0
  332. foghttp-0.4.2/tests/client_upload/test_file_length_allocations.py +26 -0
  333. foghttp-0.4.2/tests/client_upload/test_raw_upload_byte_retention.py +27 -0
  334. foghttp-0.4.2/tests/client_upload/test_raw_upload_callback_admission.py +56 -0
  335. foghttp-0.4.2/tests/client_upload/test_raw_upload_terminal_close.py +56 -0
  336. foghttp-0.4.2/tests/client_upload/test_streaming_upload.py +985 -0
  337. foghttp-0.4.2/tests/client_upload/test_sync_upload_segmentation.py +90 -0
  338. foghttp-0.4.2/tests/client_upload/test_sync_wrapper_upload_length.py +47 -0
  339. foghttp-0.4.2/tests/client_upload/test_upload_helpers.py +3190 -0
  340. foghttp-0.4.2/tests/client_upload/test_upload_send_progress.py +49 -0
  341. foghttp-0.4.2/tests/client_upload/upload_segmentation_cases.py +105 -0
  342. foghttp-0.4.2/tests/client_upload/wrapper_length_cases.py +124 -0
  343. foghttp-0.4.2/tests/conftest.py +18 -0
  344. foghttp-0.4.2/tests/fault_injection/server.py +120 -0
  345. foghttp-0.4.2/tests/network_errors/conftest.py +78 -0
  346. foghttp-0.4.2/tests/opentelemetry/__init__.py +14 -0
  347. foghttp-0.4.2/tests/opentelemetry/actions.py +26 -0
  348. foghttp-0.4.2/tests/opentelemetry/conftest.py +62 -0
  349. foghttp-0.4.2/tests/opentelemetry/faults.py +77 -0
  350. foghttp-0.4.2/tests/opentelemetry/test_configuration.py +142 -0
  351. foghttp-0.4.2/tests/opentelemetry/test_context.py +283 -0
  352. foghttp-0.4.2/tests/opentelemetry/test_failures.py +448 -0
  353. foghttp-0.4.2/tests/opentelemetry/test_optional_dependency.py +163 -0
  354. foghttp-0.4.2/tests/opentelemetry/test_requests.py +530 -0
  355. foghttp-0.4.2/tests/opentelemetry/test_sampling.py +172 -0
  356. foghttp-0.4.2/tests/opentelemetry/test_wire.py +372 -0
  357. foghttp-0.4.2/tests/prometheus/test_telemetry_sink.py +864 -0
  358. foghttp-0.4.2/tests/pyo3_boundary/async_future_server.py +68 -0
  359. foghttp-0.4.2/tests/pyo3_boundary/test_raw_client_signatures.py +102 -0
  360. foghttp-0.4.2/tests/release_validation/candidate_actions.py +16 -0
  361. foghttp-0.4.2/tests/release_validation/conftest.py +39 -0
  362. foghttp-0.4.2/tests/release_validation/constants.py +19 -0
  363. foghttp-0.4.2/tests/release_validation/test_candidate_identity.py +96 -0
  364. foghttp-0.4.2/tests/release_validation/test_release_version.py +45 -0
  365. foghttp-0.4.2/tests/release_validation/test_required_checks.py +115 -0
  366. foghttp-0.4.2/tests/release_validation/test_wheel_inventory.py +113 -0
  367. foghttp-0.4.2/tests/release_validation/test_workflow_gates.py +354 -0
  368. foghttp-0.4.2/tests/release_validation/workflow_assertions.py +32 -0
  369. foghttp-0.4.2/tests/request_builder/models.py +9 -0
  370. foghttp-0.4.2/tests/request_builder/test_body.py +297 -0
  371. foghttp-0.4.2/tests/response_decompression/__init__.py +0 -0
  372. foghttp-0.4.2/tests/response_decompression/integrity_cases.py +67 -0
  373. foghttp-0.4.2/tests/response_decompression/payloads.py +77 -0
  374. foghttp-0.4.2/tests/response_decompression/server.py +169 -0
  375. foghttp-0.4.2/tests/response_decompression/test_async_buffered_integrity.py +76 -0
  376. foghttp-0.4.2/tests/response_decompression/test_async_response_decompression.py +197 -0
  377. foghttp-0.4.2/tests/response_decompression/test_sync_buffered_integrity.py +80 -0
  378. foghttp-0.4.2/tests/response_decompression/test_sync_response_decompression.py +197 -0
  379. foghttp-0.4.2/tests/sdist_validation/__init__.py +0 -0
  380. foghttp-0.4.2/tests/sdist_validation/archives.py +48 -0
  381. foghttp-0.4.2/tests/sdist_validation/conftest.py +28 -0
  382. foghttp-0.4.2/tests/sdist_validation/processes.py +43 -0
  383. foghttp-0.4.2/tests/sdist_validation/test_cli.py +47 -0
  384. foghttp-0.4.2/tests/sdist_validation/test_native_origin.py +28 -0
  385. foghttp-0.4.2/tests/sdist_validation/test_validation.py +227 -0
  386. foghttp-0.4.2/tests/streaming_decompression/__init__.py +0 -0
  387. foghttp-0.4.2/tests/streaming_decompression/cases.py +69 -0
  388. foghttp-0.4.2/tests/streaming_decompression/conftest.py +19 -0
  389. foghttp-0.4.2/tests/streaming_decompression/constants.py +20 -0
  390. foghttp-0.4.2/tests/streaming_decompression/limit_cases.py +27 -0
  391. foghttp-0.4.2/tests/streaming_decompression/payloads.py +34 -0
  392. foghttp-0.4.2/tests/streaming_decompression/read_actions.py +63 -0
  393. foghttp-0.4.2/tests/streaming_decompression/server.py +110 -0
  394. foghttp-0.4.2/tests/streaming_decompression/test_async_content.py +81 -0
  395. foghttp-0.4.2/tests/streaming_decompression/test_async_drain_cancellation.py +49 -0
  396. foghttp-0.4.2/tests/streaming_decompression/test_async_headers.py +119 -0
  397. foghttp-0.4.2/tests/streaming_decompression/test_async_lifecycle.py +186 -0
  398. foghttp-0.4.2/tests/streaming_decompression/test_async_limits.py +100 -0
  399. foghttp-0.4.2/tests/streaming_decompression/test_async_telemetry.py +76 -0
  400. foghttp-0.4.2/tests/streaming_decompression/test_async_text_cleanup.py +358 -0
  401. foghttp-0.4.2/tests/streaming_decompression/test_pending_failure.py +103 -0
  402. foghttp-0.4.2/tests/streaming_decompression/test_sync_content.py +81 -0
  403. foghttp-0.4.2/tests/streaming_decompression/test_sync_headers.py +116 -0
  404. foghttp-0.4.2/tests/streaming_decompression/test_sync_lifecycle.py +151 -0
  405. foghttp-0.4.2/tests/streaming_decompression/test_sync_limits.py +114 -0
  406. foghttp-0.4.2/tests/streaming_decompression/test_sync_telemetry.py +74 -0
  407. foghttp-0.4.2/tests/streaming_decompression/test_sync_text_cleanup.py +297 -0
  408. foghttp-0.4.2/tests/streaming_decompression/test_transport_composition.py +109 -0
  409. foghttp-0.4.2/tests/streaming_decompression/text_cleanup_cases.py +36 -0
  410. foghttp-0.4.2/tests/support/async_http_server.py +74 -0
  411. foghttp-0.4.2/tests/support/async_server.py +183 -0
  412. foghttp-0.4.2/tests/support/sync_http_server.py +323 -0
  413. foghttp-0.4.2/tests/support/sync_server.py +96 -0
  414. foghttp-0.4.2/tests/support/test_async_fixture_shutdown.py +318 -0
  415. foghttp-0.4.2/tests/support/test_async_server_errors.py +189 -0
  416. foghttp-0.4.2/tests/support/test_async_server_handoff.py +111 -0
  417. foghttp-0.4.2/tests/support/test_async_server_startup.py +57 -0
  418. foghttp-0.4.2/tests/support/test_sync_server.py +133 -0
  419. foghttp-0.4.2/tests/support/transport_stats.py +68 -0
  420. foghttp-0.4.2/tests/support/upload_requests.py +18 -0
  421. foghttp-0.4.2/tests/test_async_client.py +243 -0
  422. foghttp-0.4.2/tests/test_public_api.py +93 -0
  423. foghttp-0.4.2/tests/test_raw_client.py +530 -0
  424. foghttp-0.4.2/tests/test_raw_client_errors.py +521 -0
  425. foghttp-0.4.2/tests/test_response_encoding.py +171 -0
  426. foghttp-0.4.2/tests/test_response_json.py +55 -0
  427. foghttp-0.4.2/tests/test_sync_client.py +241 -0
  428. foghttp-0.4.2/tests/test_transport_stats.py +84 -0
  429. foghttp-0.4.2/tests/types/__init__.py +0 -0
  430. foghttp-0.4.2/tests/types/opentelemetry_api.py +26 -0
  431. foghttp-0.4.2/tests/types/test_request_response_protocols.py +98 -0
  432. foghttp-0.4.2/tests/types/test_upload_contracts.py +126 -0
  433. foghttp-0.4.2/tests/upload_cleanup/__init__.py +0 -0
  434. foghttp-0.4.2/tests/upload_cleanup/admission_actions.py +25 -0
  435. foghttp-0.4.2/tests/upload_cleanup/cleanup_actions.py +29 -0
  436. foghttp-0.4.2/tests/upload_cleanup/closed_loop_probe.py +76 -0
  437. foghttp-0.4.2/tests/upload_cleanup/conftest.py +43 -0
  438. foghttp-0.4.2/tests/upload_cleanup/constants.py +5 -0
  439. foghttp-0.4.2/tests/upload_cleanup/iterator_sources.py +65 -0
  440. foghttp-0.4.2/tests/upload_cleanup/lookup_sources.py +22 -0
  441. foghttp-0.4.2/tests/upload_cleanup/notification_actions.py +56 -0
  442. foghttp-0.4.2/tests/upload_cleanup/partial_start_actions.py +112 -0
  443. foghttp-0.4.2/tests/upload_cleanup/reconcile_race.py +76 -0
  444. foghttp-0.4.2/tests/upload_cleanup/sources.py +52 -0
  445. foghttp-0.4.2/tests/upload_cleanup/startup_cleanup.py +31 -0
  446. foghttp-0.4.2/tests/upload_cleanup/startup_sources.py +23 -0
  447. foghttp-0.4.2/tests/upload_cleanup/task_factories.py +18 -0
  448. foghttp-0.4.2/tests/upload_cleanup/test_admission_units.py +231 -0
  449. foghttp-0.4.2/tests/upload_cleanup/test_background_cancellation.py +62 -0
  450. foghttp-0.4.2/tests/upload_cleanup/test_client_churn.py +79 -0
  451. foghttp-0.4.2/tests/upload_cleanup/test_closed_loop_disposition.py +32 -0
  452. foghttp-0.4.2/tests/upload_cleanup/test_closed_loop_retention.py +37 -0
  453. foghttp-0.4.2/tests/upload_cleanup/test_daemon_partial_start.py +48 -0
  454. foghttp-0.4.2/tests/upload_cleanup/test_early_task_cancellation.py +35 -0
  455. foghttp-0.4.2/tests/upload_cleanup/test_factory_and_runtime_boundaries.py +106 -0
  456. foghttp-0.4.2/tests/upload_cleanup/test_feeder_independence.py +31 -0
  457. foghttp-0.4.2/tests/upload_cleanup/test_fork.py +96 -0
  458. foghttp-0.4.2/tests/upload_cleanup/test_late_owned_iterator.py +52 -0
  459. foghttp-0.4.2/tests/upload_cleanup/test_lookup_control_failure.py +118 -0
  460. foghttp-0.4.2/tests/upload_cleanup/test_mixed_multipart_runner.py +52 -0
  461. foghttp-0.4.2/tests/upload_cleanup/test_multipart_creation_boundaries.py +153 -0
  462. foghttp-0.4.2/tests/upload_cleanup/test_multipart_group.py +169 -0
  463. foghttp-0.4.2/tests/upload_cleanup/test_multipart_partial_runner_start.py +36 -0
  464. foghttp-0.4.2/tests/upload_cleanup/test_ordering.py +232 -0
  465. foghttp-0.4.2/tests/upload_cleanup/test_public_partial_feeder_start.py +101 -0
  466. foghttp-0.4.2/tests/upload_cleanup/test_reconcile_race.py +41 -0
  467. foghttp-0.4.2/tests/upload_cleanup/test_saturation.py +106 -0
  468. foghttp-0.4.2/tests/upload_cleanup/test_task_factory_interruption.py +144 -0
  469. foghttp-0.4.2/tests/upload_cleanup/test_waiter_interruption.py +93 -0
  470. foghttp-0.4.2/tests/upload_cleanup/test_waiter_notifications.py +59 -0
  471. foghttp-0.4.2/tests/upload_cleanup/test_worker_failure.py +38 -0
  472. foghttp-0.4.2/tests/upload_cleanup/test_worker_interruptions.py +172 -0
  473. foghttp-0.4.2/tests/upload_cleanup/test_worker_partial_start.py +103 -0
  474. foghttp-0.4.2/tests/upload_cleanup/worker_start_actions.py +47 -0
  475. foghttp-0.4.2/uv.lock +1044 -0
  476. foghttp-0.4.0/.flake8 +0 -59
  477. foghttp-0.4.0/.github/workflows/ci.yml +0 -191
  478. foghttp-0.4.0/.github/workflows/release.yml +0 -311
  479. foghttp-0.4.0/.pre-commit-config.yaml +0 -73
  480. foghttp-0.4.0/CONTRIBUTING.md +0 -266
  481. foghttp-0.4.0/Cargo.lock +0 -1045
  482. foghttp-0.4.0/Cargo.toml +0 -83
  483. foghttp-0.4.0/PKG-INFO +0 -267
  484. foghttp-0.4.0/README.md +0 -220
  485. foghttp-0.4.0/SECURITY.md +0 -146
  486. foghttp-0.4.0/docs/auth.md +0 -128
  487. foghttp-0.4.0/docs/benchmarks.md +0 -326
  488. foghttp-0.4.0/docs/cookies.md +0 -112
  489. foghttp-0.4.0/docs/httpx-migration.md +0 -663
  490. foghttp-0.4.0/docs/index.md +0 -191
  491. foghttp-0.4.0/docs/lifecycle.md +0 -638
  492. foghttp-0.4.0/docs/limitations.md +0 -168
  493. foghttp-0.4.0/docs/packaging.md +0 -63
  494. foghttp-0.4.0/docs/policy-hooks.md +0 -110
  495. foghttp-0.4.0/docs/prometheus.md +0 -220
  496. foghttp-0.4.0/docs/proxies.md +0 -211
  497. foghttp-0.4.0/docs/pyo3-boundary.md +0 -131
  498. foghttp-0.4.0/docs/quickstart.md +0 -825
  499. foghttp-0.4.0/docs/redirects.md +0 -221
  500. foghttp-0.4.0/docs/request-builder.md +0 -363
  501. foghttp-0.4.0/docs/retries.md +0 -224
  502. foghttp-0.4.0/docs/ssrf.md +0 -132
  503. foghttp-0.4.0/docs/streaming.md +0 -180
  504. foghttp-0.4.0/docs/telemetry.md +0 -321
  505. foghttp-0.4.0/docs/timeouts.md +0 -448
  506. foghttp-0.4.0/docs/tls.md +0 -109
  507. foghttp-0.4.0/docs/typing.md +0 -80
  508. foghttp-0.4.0/docs/upload-types.md +0 -117
  509. foghttp-0.4.0/docs/use-cases.md +0 -314
  510. foghttp-0.4.0/examples/README.md +0 -97
  511. foghttp-0.4.0/foghttp/__init__.py +0 -145
  512. foghttp-0.4.0/foghttp/_client/config.py +0 -108
  513. foghttp-0.4.0/foghttp/_client/core.py +0 -278
  514. foghttp-0.4.0/foghttp/_client/options.py +0 -53
  515. foghttp-0.4.0/foghttp/_client/raw/errors.py +0 -76
  516. foghttp-0.4.0/foghttp/_client/raw/lifecycle.py +0 -115
  517. foghttp-0.4.0/foghttp/_client/raw/requests.py +0 -161
  518. foghttp-0.4.0/foghttp/_client/request_builder/builder.py +0 -60
  519. foghttp-0.4.0/foghttp/_client/request_builder/models.py +0 -23
  520. foghttp-0.4.0/foghttp/_client/response.py +0 -106
  521. foghttp-0.4.0/foghttp/_client/stats.py +0 -47
  522. foghttp-0.4.0/foghttp/_client/stream_context.py +0 -56
  523. foghttp-0.4.0/foghttp/_client/telemetry/dispatcher.py +0 -271
  524. foghttp-0.4.0/foghttp/_client/telemetry/emission.py +0 -92
  525. foghttp-0.4.0/foghttp/_client/telemetry/hook_errors.py +0 -44
  526. foghttp-0.4.0/foghttp/_client/telemetry/native.py +0 -147
  527. foghttp-0.4.0/foghttp/_client/telemetry/request_context.py +0 -133
  528. foghttp-0.4.0/foghttp/_client/transport.py +0 -108
  529. foghttp-0.4.0/foghttp/_client/transport_requests.py +0 -30
  530. foghttp-0.4.0/foghttp/_client/transport_snapshot_mapping.py +0 -86
  531. foghttp-0.4.0/foghttp/_foghttp.pyi +0 -537
  532. foghttp-0.4.0/foghttp/_multipart/iterators.py +0 -49
  533. foghttp-0.4.0/foghttp/_multipart/models.py +0 -43
  534. foghttp-0.4.0/foghttp/_multipart/stream.py +0 -116
  535. foghttp-0.4.0/foghttp/_response/encoding.py +0 -54
  536. foghttp-0.4.0/foghttp/_streaming/text/async_chunks.py +0 -26
  537. foghttp-0.4.0/foghttp/_streaming/text/iterators.py +0 -24
  538. foghttp-0.4.0/foghttp/_streaming/text/lines.py +0 -113
  539. foghttp-0.4.0/foghttp/_streaming/text/sync_chunks.py +0 -26
  540. foghttp-0.4.0/foghttp/_upload_body/async_sending.py +0 -38
  541. foghttp-0.4.0/foghttp/_upload_body/chunks.py +0 -11
  542. foghttp-0.4.0/foghttp/_upload_body/cleanup.py +0 -110
  543. foghttp-0.4.0/foghttp/_upload_body/feeders.py +0 -87
  544. foghttp-0.4.0/foghttp/_upload_body/file_source.py +0 -80
  545. foghttp-0.4.0/foghttp/_upload_body/models.py +0 -39
  546. foghttp-0.4.0/foghttp/_upload_body/runtime.py +0 -208
  547. foghttp-0.4.0/foghttp/_upload_body/thread_bridge.py +0 -82
  548. foghttp-0.4.0/foghttp/_validation/numeric.py +0 -53
  549. foghttp-0.4.0/foghttp/async_client.py +0 -542
  550. foghttp-0.4.0/foghttp/client.py +0 -511
  551. foghttp-0.4.0/foghttp/errors/__init__.py +0 -34
  552. foghttp-0.4.0/foghttp/errors/response.py +0 -41
  553. foghttp-0.4.0/foghttp/limits.py +0 -96
  554. foghttp-0.4.0/foghttp/prometheus/labels.py +0 -157
  555. foghttp-0.4.0/foghttp/request.py +0 -77
  556. foghttp-0.4.0/foghttp/stream_response/async_response.py +0 -126
  557. foghttp-0.4.0/foghttp/stream_response/base.py +0 -133
  558. foghttp-0.4.0/foghttp/stream_response/sync_response.py +0 -107
  559. foghttp-0.4.0/foghttp/stream_response/telemetry.py +0 -90
  560. foghttp-0.4.0/foghttp/transport_state.py +0 -73
  561. foghttp-0.4.0/foghttp/transport_stats.py +0 -46
  562. foghttp-0.4.0/pyproject.toml +0 -86
  563. foghttp-0.4.0/scripts/install_wheel_smoke.py +0 -89
  564. foghttp-0.4.0/scripts/wheel_smoke_runtime.py +0 -161
  565. foghttp-0.4.0/src/core/client/body.rs +0 -345
  566. foghttp-0.4.0/src/core/client/mod.rs +0 -151
  567. foghttp-0.4.0/src/core/client/proxy/endpoint.rs +0 -27
  568. foghttp-0.4.0/src/core/client/proxy/http.rs +0 -122
  569. foghttp-0.4.0/src/core/client/proxy/mod.rs +0 -16
  570. foghttp-0.4.0/src/core/client/proxy/tests.rs +0 -356
  571. foghttp-0.4.0/src/core/client/proxy/tunnel.rs +0 -285
  572. foghttp-0.4.0/src/core/client/ssrf.rs +0 -284
  573. foghttp-0.4.0/src/core/client/telemetry/mod.rs +0 -592
  574. foghttp-0.4.0/src/core/client/telemetry/tests.rs +0 -501
  575. foghttp-0.4.0/src/core/client/write_timeout.rs +0 -183
  576. foghttp-0.4.0/src/core/headers/request.rs +0 -19
  577. foghttp-0.4.0/src/core/headers/tests.rs +0 -54
  578. foghttp-0.4.0/src/core/metrics/counters.rs +0 -206
  579. foghttp-0.4.0/src/core/metrics/mod.rs +0 -62
  580. foghttp-0.4.0/src/core/metrics/snapshots.rs +0 -240
  581. foghttp-0.4.0/src/core/metrics/tests.rs +0 -249
  582. foghttp-0.4.0/src/core/policy/cookies.rs +0 -1065
  583. foghttp-0.4.0/src/core/policy/ssrf.rs +0 -749
  584. foghttp-0.4.0/src/core/request.rs +0 -51
  585. foghttp-0.4.0/src/core/response/body.rs +0 -89
  586. foghttp-0.4.0/src/core/response/budget.rs +0 -124
  587. foghttp-0.4.0/src/core/response/decompression.rs +0 -324
  588. foghttp-0.4.0/src/core/response/mod.rs +0 -7
  589. foghttp-0.4.0/src/core/telemetry.rs +0 -1262
  590. foghttp-0.4.0/src/core/tls/tests.rs +0 -31
  591. foghttp-0.4.0/src/core/url/constants.rs +0 -15
  592. foghttp-0.4.0/src/core/url/mod.rs +0 -90
  593. foghttp-0.4.0/src/core/url/origin.rs +0 -33
  594. foghttp-0.4.0/src/core/url/scheme.rs +0 -16
  595. foghttp-0.4.0/src/core/url/tests.rs +0 -49
  596. foghttp-0.4.0/src/errors.rs +0 -78
  597. foghttp-0.4.0/src/lib.rs +0 -17
  598. foghttp-0.4.0/src/py/client/async_requests/mod.rs +0 -10
  599. foghttp-0.4.0/src/py/client/async_requests/stream_spawn.rs +0 -123
  600. foghttp-0.4.0/src/py/client/future.rs +0 -213
  601. foghttp-0.4.0/src/py/client/mod.rs +0 -841
  602. foghttp-0.4.0/src/py/client/options.rs +0 -73
  603. foghttp-0.4.0/src/py/client/runtime/mod.rs +0 -98
  604. foghttp-0.4.0/src/py/client/runtime/shared.rs +0 -65
  605. foghttp-0.4.0/src/py/client/runtime/tests.rs +0 -134
  606. foghttp-0.4.0/src/py/client/streams/mod.rs +0 -11
  607. foghttp-0.4.0/src/py/client/streams/parts.rs +0 -38
  608. foghttp-0.4.0/src/py/client/streams/response.rs +0 -277
  609. foghttp-0.4.0/src/py/client/streams/state.rs +0 -505
  610. foghttp-0.4.0/src/py/client/streams/state_tests.rs +0 -240
  611. foghttp-0.4.0/src/py/client/timeout_diagnostics.rs +0 -114
  612. foghttp-0.4.0/src/py/client/transport/body.rs +0 -84
  613. foghttp-0.4.0/src/py/client/transport/buffered.rs +0 -164
  614. foghttp-0.4.0/src/py/client/transport/client.rs +0 -50
  615. foghttp-0.4.0/src/py/client/transport/context.rs +0 -34
  616. foghttp-0.4.0/src/py/client/transport/errors.rs +0 -115
  617. foghttp-0.4.0/src/py/client/transport/mod.rs +0 -17
  618. foghttp-0.4.0/src/py/client/transport/request.rs +0 -1025
  619. foghttp-0.4.0/src/py/client/transport/response.rs +0 -193
  620. foghttp-0.4.0/src/py/client/transport/streaming.rs +0 -199
  621. foghttp-0.4.0/src/py/client/transport/tests.rs +0 -193
  622. foghttp-0.4.0/src/py/client/upload_body.rs +0 -229
  623. foghttp-0.4.0/src/py/mod.rs +0 -37
  624. foghttp-0.4.0/src/py/retry.rs +0 -343
  625. foghttp-0.4.0/src/py/stats.rs +0 -225
  626. foghttp-0.4.0/src/py/telemetry.rs +0 -86
  627. foghttp-0.4.0/src/py/transport_state.rs +0 -116
  628. foghttp-0.4.0/tests/client_cancellation/conftest.py +0 -73
  629. foghttp-0.4.0/tests/client_cancellation/test_async_lifecycle_debug_buffered.py +0 -133
  630. foghttp-0.4.0/tests/client_keepalive/assertions.py +0 -135
  631. foghttp-0.4.0/tests/client_keepalive/conftest.py +0 -17
  632. foghttp-0.4.0/tests/client_keepalive/constants.py +0 -22
  633. foghttp-0.4.0/tests/client_keepalive/server.py +0 -256
  634. foghttp-0.4.0/tests/client_keepalive/test_async_keepalive.py +0 -189
  635. foghttp-0.4.0/tests/client_keepalive/test_sync_keepalive.py +0 -164
  636. foghttp-0.4.0/tests/client_lifecycle/conftest.py +0 -168
  637. foghttp-0.4.0/tests/client_lifecycle/helpers.py +0 -106
  638. foghttp-0.4.0/tests/client_lifecycle/test_async_client_lifecycle.py +0 -269
  639. foghttp-0.4.0/tests/client_lifecycle/test_fork_safety.py +0 -234
  640. foghttp-0.4.0/tests/client_lifecycle/test_sync_client_lifecycle.py +0 -284
  641. foghttp-0.4.0/tests/client_multipart/sources.py +0 -217
  642. foghttp-0.4.0/tests/client_multipart/test_async_multipart.py +0 -371
  643. foghttp-0.4.0/tests/client_multipart/test_multipart_internals.py +0 -418
  644. foghttp-0.4.0/tests/client_multipart/test_request_builder.py +0 -326
  645. foghttp-0.4.0/tests/client_multipart/test_sync_multipart.py +0 -395
  646. foghttp-0.4.0/tests/client_options/test_numeric_validation.py +0 -122
  647. foghttp-0.4.0/tests/client_options/test_raw_numeric_boundary.py +0 -258
  648. foghttp-0.4.0/tests/client_proxy/connect_proxy_server.py +0 -256
  649. foghttp-0.4.0/tests/client_proxy/http_proxy_server.py +0 -285
  650. foghttp-0.4.0/tests/client_proxy/test_http_proxy_transport.py +0 -485
  651. foghttp-0.4.0/tests/client_proxy/test_https_proxy_connect.py +0 -646
  652. foghttp-0.4.0/tests/client_resources/conftest.py +0 -167
  653. foghttp-0.4.0/tests/client_resources/constants.py +0 -41
  654. foghttp-0.4.0/tests/client_resources/test_async_connection_limits.py +0 -193
  655. foghttp-0.4.0/tests/client_resources/test_async_origin_limits.py +0 -157
  656. foghttp-0.4.0/tests/client_resources/test_async_pool_diagnostics.py +0 -85
  657. foghttp-0.4.0/tests/client_resources/test_async_transport_state.py +0 -62
  658. foghttp-0.4.0/tests/client_resources/test_diagnostic_snapshot_contract.py +0 -156
  659. foghttp-0.4.0/tests/client_resources/test_sync_connection_limits.py +0 -230
  660. foghttp-0.4.0/tests/client_resources/test_sync_origin_limits.py +0 -151
  661. foghttp-0.4.0/tests/client_resources/test_sync_pool_diagnostics.py +0 -119
  662. foghttp-0.4.0/tests/client_resources/test_sync_transport_state.py +0 -58
  663. foghttp-0.4.0/tests/client_retry/conftest.py +0 -11
  664. foghttp-0.4.0/tests/client_retry/constants.py +0 -18
  665. foghttp-0.4.0/tests/client_retry/models.py +0 -20
  666. foghttp-0.4.0/tests/client_retry/server.py +0 -341
  667. foghttp-0.4.0/tests/client_retry/sources.py +0 -114
  668. foghttp-0.4.0/tests/client_retry/test_async_retry.py +0 -195
  669. foghttp-0.4.0/tests/client_retry/test_attempt_trace.py +0 -533
  670. foghttp-0.4.0/tests/client_retry/test_sync_retry.py +0 -522
  671. foghttp-0.4.0/tests/client_streaming/conftest.py +0 -24
  672. foghttp-0.4.0/tests/client_streaming/constants.py +0 -49
  673. foghttp-0.4.0/tests/client_streaming/server.py +0 -346
  674. foghttp-0.4.0/tests/client_streaming/test_async_streaming.py +0 -264
  675. foghttp-0.4.0/tests/client_streaming/test_streaming_text_decoding.py +0 -134
  676. foghttp-0.4.0/tests/client_streaming/test_sync_streaming.py +0 -266
  677. foghttp-0.4.0/tests/client_streaming/text_decoding_sources.py +0 -34
  678. foghttp-0.4.0/tests/client_timeouts/conftest.py +0 -128
  679. foghttp-0.4.0/tests/client_timeouts/constants.py +0 -31
  680. foghttp-0.4.0/tests/client_timeouts/helpers.py +0 -49
  681. foghttp-0.4.0/tests/client_timeouts/test_async_timeouts.py +0 -147
  682. foghttp-0.4.0/tests/client_timeouts/test_sync_timeouts.py +0 -121
  683. foghttp-0.4.0/tests/client_tls/handshake_server.py +0 -92
  684. foghttp-0.4.0/tests/client_tls/models.py +0 -32
  685. foghttp-0.4.0/tests/client_tls/server.py +0 -86
  686. foghttp-0.4.0/tests/client_transport/models.py +0 -108
  687. foghttp-0.4.0/tests/client_transport/test_transport_adapter.py +0 -284
  688. foghttp-0.4.0/tests/client_upload/helpers.py +0 -110
  689. foghttp-0.4.0/tests/client_upload/test_streaming_upload.py +0 -704
  690. foghttp-0.4.0/tests/client_upload/test_upload_helpers.py +0 -430
  691. foghttp-0.4.0/tests/conftest.py +0 -7
  692. foghttp-0.4.0/tests/fault_injection/server.py +0 -124
  693. foghttp-0.4.0/tests/network_errors/conftest.py +0 -81
  694. foghttp-0.4.0/tests/prometheus/test_telemetry_sink.py +0 -860
  695. foghttp-0.4.0/tests/pyo3_boundary/async_future_server.py +0 -71
  696. foghttp-0.4.0/tests/pyo3_boundary/test_raw_client_signatures.py +0 -91
  697. foghttp-0.4.0/tests/request_builder/test_body.py +0 -250
  698. foghttp-0.4.0/tests/response_decompression/payloads.py +0 -50
  699. foghttp-0.4.0/tests/response_decompression/server.py +0 -173
  700. foghttp-0.4.0/tests/response_decompression/test_async_response_decompression.py +0 -170
  701. foghttp-0.4.0/tests/response_decompression/test_sync_response_decompression.py +0 -170
  702. foghttp-0.4.0/tests/support/async_http_server.py +0 -89
  703. foghttp-0.4.0/tests/support/sync_http_server.py +0 -318
  704. foghttp-0.4.0/tests/support/transport_stats.py +0 -54
  705. foghttp-0.4.0/tests/test_async_client.py +0 -223
  706. foghttp-0.4.0/tests/test_public_api.py +0 -91
  707. foghttp-0.4.0/tests/test_raw_client.py +0 -513
  708. foghttp-0.4.0/tests/test_raw_client_errors.py +0 -442
  709. foghttp-0.4.0/tests/test_response_encoding.py +0 -113
  710. foghttp-0.4.0/tests/test_sync_client.py +0 -222
  711. foghttp-0.4.0/tests/test_transport_stats.py +0 -72
  712. foghttp-0.4.0/tests/types/test_request_response_protocols.py +0 -72
  713. foghttp-0.4.0/tests/types/test_upload_contracts.py +0 -138
  714. foghttp-0.4.0/uv.lock +0 -967
  715. {foghttp-0.4.0 → foghttp-0.4.2}/.github/dependabot.yml +0 -0
  716. {foghttp-0.4.0 → foghttp-0.4.2}/.gitignore +0 -0
  717. {foghttp-0.4.0 → foghttp-0.4.2}/CODE_OF_CONDUCT.md +0 -0
  718. {foghttp-0.4.0 → foghttp-0.4.2}/LICENSE +0 -0
  719. {foghttp-0.4.0 → foghttp-0.4.2}/examples/async_json_fanout.py +0 -0
  720. {foghttp-0.4.0 → foghttp-0.4.2}/examples/async_lifecycle_debug.py +0 -0
  721. {foghttp-0.4.0 → foghttp-0.4.2}/examples/async_resource_limits.py +0 -0
  722. {foghttp-0.4.0 → foghttp-0.4.2}/examples/async_streaming.py +0 -0
  723. {foghttp-0.4.0 → foghttp-0.4.2}/examples/authentication.py +0 -0
  724. {foghttp-0.4.0 → foghttp-0.4.2}/examples/compressed_response.py +0 -0
  725. {foghttp-0.4.0 → foghttp-0.4.2}/examples/cookies.py +0 -0
  726. {foghttp-0.4.0 → foghttp-0.4.2}/examples/http_proxy.py +0 -0
  727. {foghttp-0.4.0 → foghttp-0.4.2}/examples/multipart_uploads.py +0 -0
  728. {foghttp-0.4.0 → foghttp-0.4.2}/examples/prepared_requests.py +0 -0
  729. {foghttp-0.4.0 → foghttp-0.4.2}/examples/redirects.py +0 -0
  730. {foghttp-0.4.0 → foghttp-0.4.2}/examples/request_builder_compatibility.py +0 -0
  731. {foghttp-0.4.0 → foghttp-0.4.2}/examples/retry_policy.py +0 -0
  732. {foghttp-0.4.0 → foghttp-0.4.2}/examples/ssrf_policy.py +0 -0
  733. {foghttp-0.4.0 → foghttp-0.4.2}/examples/sync_json_api.py +0 -0
  734. {foghttp-0.4.0 → foghttp-0.4.2}/examples/sync_streaming.py +0 -0
  735. {foghttp-0.4.0 → foghttp-0.4.2}/examples/telemetry_hooks.py +0 -0
  736. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_auth_headers.py +0 -0
  737. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/__init__.py +0 -0
  738. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/asyncio_futures.py +0 -0
  739. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/auth.py +0 -0
  740. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/constants.py +0 -0
  741. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/lifecycle_debug.py +0 -0
  742. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/process.py +0 -0
  743. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/__init__.py +0 -0
  744. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/auth.py +0 -0
  745. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/constants.py +0 -0
  746. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/environment.py +0 -0
  747. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/models.py +0 -0
  748. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/no_proxy.py +0 -0
  749. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/no_proxy_rule.py +0 -0
  750. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/no_proxy_tokens.py +0 -0
  751. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/resolver.py +0 -0
  752. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/transport_policy.py +0 -0
  753. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/proxy/url_parsing.py +0 -0
  754. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/raw/__init__.py +0 -0
  755. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/raw/ssrf_errors.py +0 -0
  756. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/raw/timeout_errors.py +0 -0
  757. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/request_builder/__init__.py +0 -0
  758. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/request_builder/defaults.py +0 -0
  759. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/request_builder/header_policy.py +0 -0
  760. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/request_builder/merge.py +0 -0
  761. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/retry.py +0 -0
  762. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/retry_trace_mapping.py +0 -0
  763. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/runtime/__init__.py +0 -0
  764. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/runtime/constants.py +0 -0
  765. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/runtime/mode.py +0 -0
  766. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/runtime/validation.py +0 -0
  767. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/runtime/workers.py +0 -0
  768. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/__init__.py +0 -0
  769. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/clock.py +0 -0
  770. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/request_events.py +0 -0
  771. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/responses.py +0 -0
  772. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/retries.py +0 -0
  773. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/telemetry/url.py +0 -0
  774. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_client/tls.py +0 -0
  775. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/__init__.py +0 -0
  776. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/constants.py +0 -0
  777. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/content_type.py +0 -0
  778. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/encoding.py +0 -0
  779. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/fields.py +0 -0
  780. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/file_parts.py +0 -0
  781. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/length.py +0 -0
  782. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/normalize.py +0 -0
  783. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/parts.py +0 -0
  784. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_multipart/values.py +0 -0
  785. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_redaction.py +0 -0
  786. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_request_body.py +0 -0
  787. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_response/__init__.py +0 -0
  788. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_response/status.py +0 -0
  789. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_streaming/__init__.py +0 -0
  790. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_streaming/text/__init__.py +0 -0
  791. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_telemetry.py +0 -0
  792. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_upload_body/__init__.py +0 -0
  793. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_upload_body/normalize.py +0 -0
  794. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_upload_body/predicates.py +0 -0
  795. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_validation/__init__.py +0 -0
  796. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_validation/callables.py +0 -0
  797. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/_validation/ssrf.py +0 -0
  798. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/auth.py +0 -0
  799. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/body.py +0 -0
  800. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/errors/base.py +0 -0
  801. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/errors/configuration.py +0 -0
  802. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/errors/lifecycle.py +0 -0
  803. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/errors/ssrf.py +0 -0
  804. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/errors/timeout.py +0 -0
  805. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/headers.py +0 -0
  806. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/lifecycle_debug.py +0 -0
  807. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/messages.py +0 -0
  808. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/methods.py +0 -0
  809. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/models.py +0 -0
  810. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/policy.py +0 -0
  811. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/pool_diagnostics.py +0 -0
  812. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/prometheus/__init__.py +0 -0
  813. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/prometheus/stats.py +0 -0
  814. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/prometheus/telemetry.py +0 -0
  815. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/py.typed +0 -0
  816. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/request_extensions.py +0 -0
  817. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/request_info.py +0 -0
  818. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/response.py +0 -0
  819. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/retry.py +0 -0
  820. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/retry_trace.py +0 -0
  821. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/ssrf.py +0 -0
  822. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stats.py +0 -0
  823. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/status_codes/__init__.py +0 -0
  824. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/status_codes/client_error.py +0 -0
  825. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/status_codes/redirect.py +0 -0
  826. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/status_codes/server_error.py +0 -0
  827. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/status_codes/success.py +0 -0
  828. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stream_response/__init__.py +0 -0
  829. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stream_response/bindings.py +0 -0
  830. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stream_response/constants.py +0 -0
  831. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stream_response/lifecycle_debug.py +0 -0
  832. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/stream_response/status.py +0 -0
  833. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/__init__.py +0 -0
  834. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/config.py +0 -0
  835. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/errors.py +0 -0
  836. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/events.py +0 -0
  837. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/logging.py +0 -0
  838. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/telemetry/sinks.py +0 -0
  839. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/timeout_diagnostics.py +0 -0
  840. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/timeouts.py +0 -0
  841. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/tls.py +0 -0
  842. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/__init__.py +0 -0
  843. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/http.py +0 -0
  844. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/multipart.py +0 -0
  845. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/protocols.py +0 -0
  846. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/request.py +0 -0
  847. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/types/streams.py +0 -0
  848. {foghttp-0.4.0 → foghttp-0.4.2}/foghttp/url.py +0 -0
  849. {foghttp-0.4.0 → foghttp-0.4.2}/logo.png +0 -0
  850. {foghttp-0.4.0 → foghttp-0.4.2}/ruff.toml +0 -0
  851. {foghttp-0.4.0 → foghttp-0.4.2}/scripts/check_all_position.py +0 -0
  852. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/client/connection_limit.rs +0 -0
  853. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/client/proxy/authorization.rs +0 -0
  854. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/headers/mod.rs +0 -0
  855. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/headers/response.rs +0 -0
  856. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/method.rs +0 -0
  857. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/atomic.rs +0 -0
  858. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/buffered.rs +0 -0
  859. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/lifecycle.rs +0 -0
  860. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/blocking.rs +0 -0
  861. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/metrics.rs +0 -0
  862. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/mod.rs +0 -0
  863. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/registry.rs +0 -0
  864. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/snapshots.rs +0 -0
  865. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/tests.rs +0 -0
  866. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/origin/waiters.rs +0 -0
  867. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/metrics/telemetry.rs +0 -0
  868. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/mod.rs +0 -0
  869. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/numeric/mod.rs +0 -0
  870. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/numeric/tests.rs +0 -0
  871. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/error.rs +0 -0
  872. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/mod.rs +0 -0
  873. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/pipeline.rs +0 -0
  874. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/proxy.rs +0 -0
  875. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/action.rs +0 -0
  876. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/headers.rs +0 -0
  877. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/method.rs +0 -0
  878. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/mod.rs +0 -0
  879. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/policy.rs +0 -0
  880. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/status.rs +0 -0
  881. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/tests.rs +0 -0
  882. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/redirect/utils.rs +0 -0
  883. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/request.rs +0 -0
  884. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/retry/tests.rs +0 -0
  885. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/retry.rs +0 -0
  886. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/policy/tests.rs +0 -0
  887. {foghttp-0.4.0 → foghttp-0.4.2}/src/core/tls/mod.rs +0 -0
  888. {foghttp-0.4.0 → foghttp-0.4.2}/src/messages.rs +0 -0
  889. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/diagnostics.rs +0 -0
  890. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/gate.rs +0 -0
  891. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/mod.rs +0 -0
  892. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/origin.rs +0 -0
  893. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/pending.rs +0 -0
  894. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/permit.rs +0 -0
  895. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/telemetry.rs +0 -0
  896. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/acquire/tests.rs +0 -0
  897. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/async_requests/active.rs +0 -0
  898. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/async_requests/callback.rs +0 -0
  899. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/async_requests/registry.rs +0 -0
  900. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/async_requests/spawn.rs +0 -0
  901. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/auth.rs +0 -0
  902. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/lifecycle/mod.rs +0 -0
  903. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/lifecycle/tests.rs +0 -0
  904. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/policy_hooks.rs +0 -0
  905. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/process.rs +0 -0
  906. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/runtime/constants.rs +0 -0
  907. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/runtime/workers.rs +0 -0
  908. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/streams/callback.rs +0 -0
  909. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/streams/constants.rs +0 -0
  910. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/streams/read.rs +0 -0
  911. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/streams/registry.rs +0 -0
  912. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/client/transport/retry.rs +0 -0
  913. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/pool_diagnostics.rs +0 -0
  914. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/response.rs +0 -0
  915. {foghttp-0.4.0 → foghttp-0.4.2}/src/py/url.rs +0 -0
  916. {foghttp-0.4.0 → foghttp-0.4.2}/tests/__init__.py +0 -0
  917. {foghttp-0.4.0/tests/client_auth → foghttp-0.4.2/tests/accept_encoding}/__init__.py +0 -0
  918. {foghttp-0.4.0/tests/client_cookies → foghttp-0.4.2/tests/client_auth}/__init__.py +0 -0
  919. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_auth/test_async_auth.py +0 -0
  920. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_auth/test_contract.py +0 -0
  921. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_auth/test_sync_auth.py +0 -0
  922. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/__init__.py +0 -0
  923. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/constants.py +0 -0
  924. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/helpers.py +0 -0
  925. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/lifecycle_debug_actions.py +0 -0
  926. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/lifecycle_debug_assertions.py +0 -0
  927. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/lifecycle_debug_data.py +0 -0
  928. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/lifecycle_debug_predicates.py +0 -0
  929. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_async_cancellation.py +0 -0
  930. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_async_lifecycle_debug_messages.py +0 -0
  931. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_async_lifecycle_debug_streaming.py +0 -0
  932. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_async_lifecycle_debug_strict.py +0 -0
  933. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_async_telemetry.py +0 -0
  934. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cancellation/test_asyncio_helpers.py +0 -0
  935. {foghttp-0.4.0/tests/client_keepalive → foghttp-0.4.2/tests/client_cookies}/__init__.py +0 -0
  936. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cookies/assertions.py +0 -0
  937. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cookies/test_async_cookies.py +0 -0
  938. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_cookies/test_sync_cookies.py +0 -0
  939. {foghttp-0.4.0/tests/client_multipart → foghttp-0.4.2/tests/client_keepalive}/__init__.py +0 -0
  940. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_keepalive/models.py +0 -0
  941. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/__init__.py +0 -0
  942. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/constants.py +0 -0
  943. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/fork_actions.py +0 -0
  944. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/test_fork_close_safety.py +0 -0
  945. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/test_fork_stream_safety.py +0 -0
  946. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/test_raw_client_lifecycle.py +0 -0
  947. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/test_sync_close_race.py +0 -0
  948. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_lifecycle/test_sync_close_waits.py +0 -0
  949. {foghttp-0.4.0/tests/client_policy_hooks → foghttp-0.4.2/tests/client_multipart}/__init__.py +0 -0
  950. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_multipart/assertions.py +0 -0
  951. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_multipart/models.py +0 -0
  952. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_options/__init__.py +0 -0
  953. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_options/raw_options.py +0 -0
  954. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_options/test_raw_retry_boundary.py +0 -0
  955. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_options/test_raw_ssrf_boundary.py +0 -0
  956. {foghttp-0.4.0/tests/client_proxy → foghttp-0.4.2/tests/client_policy_hooks}/__init__.py +0 -0
  957. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_policy_hooks/requests.py +0 -0
  958. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_policy_hooks/test_async_hooks.py +0 -0
  959. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_policy_hooks/test_contract.py +0 -0
  960. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_policy_hooks/test_sync_hooks.py +0 -0
  961. {foghttp-0.4.0/tests/client_query → foghttp-0.4.2/tests/client_proxy}/__init__.py +0 -0
  962. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/client_options.py +0 -0
  963. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/conftest.py +0 -0
  964. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/environment.py +0 -0
  965. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/test_client_config.py +0 -0
  966. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/test_environment.py +0 -0
  967. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/test_no_proxy.py +0 -0
  968. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_proxy/test_proxy_models.py +0 -0
  969. {foghttp-0.4.0/tests/client_resources → foghttp-0.4.2/tests/client_query}/__init__.py +0 -0
  970. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/assertions.py +0 -0
  971. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/constants.py +0 -0
  972. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/test_async_query.py +0 -0
  973. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/test_async_query_redirects.py +0 -0
  974. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/test_request_builder.py +0 -0
  975. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/test_sync_query.py +0 -0
  976. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_query/test_sync_query_redirects.py +0 -0
  977. {foghttp-0.4.0/tests/client_retry → foghttp-0.4.2/tests/client_resources}/__init__.py +0 -0
  978. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_resources/helpers.py +0 -0
  979. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_resources/test_async_global_limits.py +0 -0
  980. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_resources/test_async_response_body_limits.py +0 -0
  981. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_resources/test_sync_global_limits.py +0 -0
  982. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_resources/test_sync_response_body_limits.py +0 -0
  983. {foghttp-0.4.0/tests/client_telemetry → foghttp-0.4.2/tests/client_retry}/__init__.py +0 -0
  984. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_retry/assertions.py +0 -0
  985. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_retry/test_auth_refresh.py +0 -0
  986. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_retry/test_policy_config.py +0 -0
  987. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_ssrf/__init__.py +0 -0
  988. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_ssrf/test_async_ssrf.py +0 -0
  989. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_ssrf/test_policy_config.py +0 -0
  990. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_ssrf/test_sync_ssrf.py +0 -0
  991. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_streaming/__init__.py +0 -0
  992. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_streaming/stream_readers.py +0 -0
  993. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_streaming/test_async_streaming_text_lines.py +0 -0
  994. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_streaming/test_sync_streaming_text_lines.py +0 -0
  995. {foghttp-0.4.0/tests/client_timeouts → foghttp-0.4.2/tests/client_telemetry}/__init__.py +0 -0
  996. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/assertions.py +0 -0
  997. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/conftest.py +0 -0
  998. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/constants.py +0 -0
  999. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/models.py +0 -0
  1000. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_async_stream_hooks.py +0 -0
  1001. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_async_stream_telemetry.py +0 -0
  1002. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_async_telemetry.py +0 -0
  1003. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_concurrent_delivery.py +0 -0
  1004. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_event_contract.py +0 -0
  1005. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_native_lifecycle_events.py +0 -0
  1006. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_structured_logging.py +0 -0
  1007. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_sync_stream_telemetry.py +0 -0
  1008. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_telemetry/test_sync_telemetry.py +0 -0
  1009. {foghttp-0.4.0/tests/client_tls → foghttp-0.4.2/tests/client_timeouts}/__init__.py +0 -0
  1010. {foghttp-0.4.0/tests/client_upload → foghttp-0.4.2/tests/client_tls}/__init__.py +0 -0
  1011. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/assertions.py +0 -0
  1012. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/certificates.py +0 -0
  1013. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/conftest.py +0 -0
  1014. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/constants.py +0 -0
  1015. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/test_async_tls.py +0 -0
  1016. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/test_async_tls_redirects.py +0 -0
  1017. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/test_sync_tls.py +0 -0
  1018. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/test_sync_tls_redirects.py +0 -0
  1019. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_tls/test_tls_config.py +0 -0
  1020. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_transport/__init__.py +0 -0
  1021. {foghttp-0.4.0/tests/examples → foghttp-0.4.2/tests/client_upload}/__init__.py +0 -0
  1022. {foghttp-0.4.0 → foghttp-0.4.2}/tests/client_warning_actions.py +0 -0
  1023. {foghttp-0.4.0/tests/fault_injection → foghttp-0.4.2/tests/examples}/__init__.py +0 -0
  1024. {foghttp-0.4.0 → foghttp-0.4.2}/tests/examples/test_imports.py +0 -0
  1025. {foghttp-0.4.0/tests/network_errors → foghttp-0.4.2/tests/fault_injection}/__init__.py +0 -0
  1026. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/conftest.py +0 -0
  1027. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/constants.py +0 -0
  1028. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/models.py +0 -0
  1029. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/protocol.py +0 -0
  1030. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/responses.py +0 -0
  1031. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/state.py +0 -0
  1032. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/state_assertions.py +0 -0
  1033. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/test_async_fault_injection.py +0 -0
  1034. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/test_async_socket_shutdown.py +0 -0
  1035. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/test_sync_fault_injection.py +0 -0
  1036. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/test_sync_socket_shutdown.py +0 -0
  1037. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/timeout_assertions.py +0 -0
  1038. {foghttp-0.4.0 → foghttp-0.4.2}/tests/fault_injection/transport_waiters.py +0 -0
  1039. {foghttp-0.4.0 → foghttp-0.4.2}/tests/http_body_scenarios.py +0 -0
  1040. {foghttp-0.4.0/tests/prometheus → foghttp-0.4.2/tests/network_errors}/__init__.py +0 -0
  1041. {foghttp-0.4.0 → foghttp-0.4.2}/tests/network_errors/constants.py +0 -0
  1042. {foghttp-0.4.0 → foghttp-0.4.2}/tests/network_errors/helpers.py +0 -0
  1043. {foghttp-0.4.0 → foghttp-0.4.2}/tests/network_errors/test_async_network_errors.py +0 -0
  1044. {foghttp-0.4.0 → foghttp-0.4.2}/tests/network_errors/test_sync_network_errors.py +0 -0
  1045. {foghttp-0.4.0/tests/request_builder → foghttp-0.4.2/tests/prometheus}/__init__.py +0 -0
  1046. {foghttp-0.4.0 → foghttp-0.4.2}/tests/prometheus/test_integration.py +0 -0
  1047. {foghttp-0.4.0 → foghttp-0.4.2}/tests/prometheus/test_optional_dependency.py +0 -0
  1048. {foghttp-0.4.0 → foghttp-0.4.2}/tests/prometheus/test_stats_collector.py +0 -0
  1049. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/__init__.py +0 -0
  1050. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/conftest.py +0 -0
  1051. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/constants.py +0 -0
  1052. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/gil_progress.py +0 -0
  1053. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/test_async_future_boundary.py +0 -0
  1054. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/test_sync_gil_boundary.py +0 -0
  1055. {foghttp-0.4.0 → foghttp-0.4.2}/tests/pyo3_boundary/thread_worker.py +0 -0
  1056. {foghttp-0.4.0 → foghttp-0.4.2}/tests/redirect_helpers.py +0 -0
  1057. {foghttp-0.4.0/tests/response_decompression → foghttp-0.4.2/tests/release_validation}/__init__.py +0 -0
  1058. {foghttp-0.4.0/tests/types → foghttp-0.4.2/tests/request_builder}/__init__.py +0 -0
  1059. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/encoding_property_helpers.py +0 -0
  1060. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_base_url.py +0 -0
  1061. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_default_headers.py +0 -0
  1062. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_default_params.py +0 -0
  1063. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_encoding_properties.py +0 -0
  1064. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_extensions.py +0 -0
  1065. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_header_policy.py +0 -0
  1066. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_headers.py +0 -0
  1067. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_merge_contract.py +0 -0
  1068. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_no_mutation.py +0 -0
  1069. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_parity.py +0 -0
  1070. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_query_params.py +0 -0
  1071. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_builder/test_shortcuts.py +0 -0
  1072. {foghttp-0.4.0 → foghttp-0.4.2}/tests/request_factories.py +0 -0
  1073. {foghttp-0.4.0 → foghttp-0.4.2}/tests/response_decompression/conftest.py +0 -0
  1074. {foghttp-0.4.0 → foghttp-0.4.2}/tests/response_decompression/constants.py +0 -0
  1075. {foghttp-0.4.0 → foghttp-0.4.2}/tests/response_decompression/helpers.py +0 -0
  1076. {foghttp-0.4.0 → foghttp-0.4.2}/tests/support/__init__.py +0 -0
  1077. {foghttp-0.4.0 → foghttp-0.4.2}/tests/support/http_routes.py +0 -0
  1078. {foghttp-0.4.0 → foghttp-0.4.2}/tests/support/raw_responses.py +0 -0
  1079. {foghttp-0.4.0 → foghttp-0.4.2}/tests/support/timeout_diagnostics.py +0 -0
  1080. {foghttp-0.4.0 → foghttp-0.4.2}/tests/support/transport_state.py +0 -0
  1081. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_async_redirects.py +0 -0
  1082. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_async_response.py +0 -0
  1083. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_client_options.py +0 -0
  1084. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_headers.py +0 -0
  1085. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_query_params.py +0 -0
  1086. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_redaction.py +0 -0
  1087. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_request_extensions.py +0 -0
  1088. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_request_model.py +0 -0
  1089. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_response_flags.py +0 -0
  1090. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_runtime_workers.py +0 -0
  1091. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_sync_redirects.py +0 -0
  1092. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_sync_response.py +0 -0
  1093. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_transport_stats_waiters.py +0 -0
  1094. {foghttp-0.4.0 → foghttp-0.4.2}/tests/test_url.py +0 -0
  1095. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_auth_contracts.py +0 -0
  1096. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_policy_contracts.py +0 -0
  1097. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_prometheus_contracts.py +0 -0
  1098. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_request_extensions_contracts.py +0 -0
  1099. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_retry_trace_contracts.py +0 -0
  1100. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_structured_logging_contracts.py +0 -0
  1101. {foghttp-0.4.0 → foghttp-0.4.2}/tests/types/test_telemetry_contracts.py +0 -0
foghttp-0.4.2/.flake8 ADDED
@@ -0,0 +1,60 @@
1
+ [flake8]
2
+ max-line-length = 120
3
+ max-line-complexity = 16
4
+ max-cognitive-score = 14
5
+ max-try-body-length = 4
6
+ format = wemake
7
+ select = WPS
8
+
9
+ # Ruff owns formatting, imports, pyflakes/pycodestyle, pydocstyle, security,
10
+ # pytest rules and docs/examples print policy. Wemake is used as an additional
11
+ # architecture and complexity smell-check layer.
12
+ ignore =
13
+ WPS110,
14
+ WPS300,
15
+ WPS301,
16
+ WPS332,
17
+ WPS410,
18
+
19
+ exclude =
20
+ .git,
21
+ .mypy_cache,
22
+ .pytest_cache,
23
+ .ruff_cache,
24
+ .venv,
25
+ build,
26
+ dist,
27
+ target,
28
+
29
+ per-file-ignores =
30
+ # FogHTTP uses public __init__.py modules as explicit import/__all__ API vitrines.
31
+ **/__init__.py: WPS412
32
+ # Root package is an explicit API vitrine; import count follows the stable public surface.
33
+ foghttp/__init__.py: WPS201, WPS203, WPS412
34
+ # Public client orchestration modules naturally collect ergonomic kwargs.
35
+ foghttp/client.py: WPS201, WPS211, WPS214, WPS501
36
+ foghttp/async_client.py: WPS201, WPS203, WPS211, WPS214
37
+ # ClientCore maps Rust snapshots to TypedDict literal keys and owns the unclosed-client warning.
38
+ foghttp/_client/core.py: WPS201, WPS211, WPS214, WPS226, WPS603
39
+ # Public domain objects intentionally expose mapping/response/url-style APIs.
40
+ foghttp/headers.py: WPS214, WPS237, WPS603
41
+ foghttp/request.py: WPS237
42
+ foghttp/request_info.py: WPS237
43
+ foghttp/response.py: WPS214, WPS237
44
+ foghttp/stream_response/async_response.py: WPS214
45
+ foghttp/stream_response/base.py: WPS201, WPS237
46
+ foghttp/stream_response/sync_response.py: WPS501
47
+ foghttp/url.py: WPS214, WPS237
48
+ # Native resource adapters intentionally use try/finally-only cleanup paths.
49
+ foghttp/_client/response.py: WPS501
50
+ foghttp/_multipart/iterators.py: WPS501
51
+ foghttp/_streaming/text/async_chunks.py: WPS501
52
+ foghttp/_streaming/text/lines.py: WPS501
53
+ foghttp/_streaming/text/sync_chunks.py: WPS501
54
+ # Explicit guard/mapping functions are clearer as direct raises than as indirection tables.
55
+ foghttp/_client/options.py: WPS238
56
+ foghttp/_client/raw/errors.py: WPS238
57
+ # Tests require descriptive names, rich scenario setup, repeated fixtures/data,
58
+ # exact-value assertions, local doubles and explicit cleanup. Ruff's ALL profile
59
+ # owns their general correctness checks; Wemake still enforces all other rules.
60
+ 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,101 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main, 'release/**']
6
+ types: [opened, synchronize, reopened, ready_for_review]
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ quality:
18
+ name: Full checks
19
+ uses: ./.github/workflows/full_checks.yml
20
+
21
+ abi3-wheel:
22
+ name: Build and audit abi3 wheel
23
+ runs-on: ubuntu-latest
24
+ timeout-minutes: 30
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v4
28
+ with:
29
+ ref: ${{ github.sha }}
30
+
31
+ - name: Set up Python
32
+ uses: actions/setup-python@v5
33
+ with:
34
+ python-version: "3.11"
35
+
36
+ - name: Verify candidate identity
37
+ env:
38
+ CANDIDATE_SHA: ${{ github.sha }}
39
+ run: >-
40
+ python scripts/check_release_candidate.py
41
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
42
+ --checkout-sha "$(git rev-parse HEAD)"
43
+
44
+ - name: Build wheel
45
+ uses: PyO3/maturin-action@v1
46
+ with:
47
+ command: build
48
+ target: x86_64
49
+ args: --release --locked --out dist --interpreter python3.11
50
+ manylinux: "2014"
51
+ sccache: true
52
+
53
+ - name: Install abi3audit
54
+ run: python -m pip install --disable-pip-version-check "abi3audit==0.0.26"
55
+
56
+ - name: Audit stable ABI compatibility
57
+ run: python -m abi3audit --strict --summary dist/*.whl
58
+
59
+ - name: Upload wheel artifact
60
+ uses: actions/upload-artifact@v4
61
+ with:
62
+ name: abi3-wheel-linux-x86_64
63
+ path: dist/*.whl
64
+ if-no-files-found: error
65
+
66
+ abi3-wheel-smoke:
67
+ name: Smoke abi3 wheel (Python ${{ matrix.python-version }})
68
+ runs-on: ubuntu-latest
69
+ needs: abi3-wheel
70
+ timeout-minutes: 15
71
+ strategy:
72
+ fail-fast: false
73
+ matrix:
74
+ python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
75
+ steps:
76
+ - name: Checkout
77
+ uses: actions/checkout@v4
78
+ with:
79
+ ref: ${{ github.sha }}
80
+
81
+ - name: Set up Python
82
+ uses: actions/setup-python@v5
83
+ with:
84
+ python-version: ${{ matrix.python-version }}
85
+
86
+ - name: Verify candidate identity
87
+ env:
88
+ CANDIDATE_SHA: ${{ github.sha }}
89
+ run: >-
90
+ python scripts/check_release_candidate.py
91
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
92
+ --checkout-sha "$(git rev-parse HEAD)"
93
+
94
+ - name: Download wheel
95
+ uses: actions/download-artifact@v4
96
+ with:
97
+ name: abi3-wheel-linux-x86_64
98
+ path: dist
99
+
100
+ - name: Smoke test wheel install
101
+ run: python -I -S scripts/install_wheel_smoke.py --dist-dir dist
@@ -0,0 +1,235 @@
1
+ name: Full checks
2
+
3
+ on:
4
+ workflow_call:
5
+ outputs:
6
+ candidate-sha:
7
+ description: Commit verified by every required quality job
8
+ value: ${{ jobs.quality-gate.outputs.candidate-sha }}
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ pre-commit:
15
+ name: Pre-commit
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 20
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v4
21
+ with:
22
+ ref: ${{ github.sha }}
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.11"
28
+
29
+ - name: Verify candidate identity
30
+ env:
31
+ CANDIDATE_SHA: ${{ github.sha }}
32
+ run: >-
33
+ python scripts/check_release_candidate.py
34
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
35
+ --checkout-sha "$(git rev-parse HEAD)"
36
+
37
+ - name: Set up uv
38
+ uses: astral-sh/setup-uv@v5
39
+ with:
40
+ enable-cache: true
41
+ cache-dependency-glob: uv.lock
42
+
43
+ - name: Run pre-commit hooks
44
+ run: uv run --no-project --with pre-commit pre-commit run --all-files --show-diff-on-failure
45
+
46
+ rust:
47
+ name: Rust
48
+ runs-on: ubuntu-latest
49
+ timeout-minutes: 20
50
+ steps:
51
+ - name: Checkout
52
+ uses: actions/checkout@v4
53
+ with:
54
+ ref: ${{ github.sha }}
55
+
56
+ - name: Set up Python
57
+ uses: actions/setup-python@v5
58
+ with:
59
+ python-version: "3.11"
60
+
61
+ - name: Verify candidate identity
62
+ env:
63
+ CANDIDATE_SHA: ${{ github.sha }}
64
+ run: >-
65
+ python scripts/check_release_candidate.py
66
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
67
+ --checkout-sha "$(git rev-parse HEAD)"
68
+
69
+ - name: Set up Rust
70
+ uses: dtolnay/rust-toolchain@stable
71
+ with:
72
+ components: rustfmt, clippy
73
+
74
+ - name: Cache Rust
75
+ uses: Swatinem/rust-cache@v2
76
+
77
+ - name: Check formatting
78
+ run: cargo fmt --check
79
+
80
+ - name: Run clippy
81
+ run: cargo clippy --locked --all-targets -- -D warnings
82
+
83
+ - name: Run Rust tests
84
+ run: cargo test --locked --all-targets
85
+
86
+ rust-msrv:
87
+ name: Rust MSRV (1.88)
88
+ runs-on: ubuntu-latest
89
+ timeout-minutes: 20
90
+ steps:
91
+ - name: Checkout
92
+ uses: actions/checkout@v4
93
+ with:
94
+ ref: ${{ github.sha }}
95
+
96
+ - name: Set up Python
97
+ uses: actions/setup-python@v5
98
+ with:
99
+ python-version: "3.11"
100
+
101
+ - name: Verify candidate identity
102
+ env:
103
+ CANDIDATE_SHA: ${{ github.sha }}
104
+ run: >-
105
+ python scripts/check_release_candidate.py
106
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
107
+ --checkout-sha "$(git rev-parse HEAD)"
108
+
109
+ - name: Set up Rust MSRV
110
+ uses: dtolnay/rust-toolchain@1.88.0
111
+
112
+ - name: Cache Rust
113
+ uses: Swatinem/rust-cache@v2
114
+
115
+ - name: Show Rust version
116
+ run: rustc --version
117
+
118
+ - name: Run Rust tests at MSRV
119
+ run: cargo test --locked --all-targets
120
+
121
+ - name: Check release features at MSRV
122
+ run: cargo check --locked --all-targets --all-features
123
+
124
+ tests:
125
+ name: Tests (Python ${{ matrix.python-version }})
126
+ runs-on: ubuntu-latest
127
+ timeout-minutes: 30
128
+ env:
129
+ UV_PYTHON: ${{ matrix.python-version }}
130
+ UV_PYTHON_DOWNLOADS: never
131
+ strategy:
132
+ fail-fast: false
133
+ matrix:
134
+ python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
135
+ steps:
136
+ - name: Checkout
137
+ uses: actions/checkout@v4
138
+ with:
139
+ ref: ${{ github.sha }}
140
+
141
+ - name: Set up Python
142
+ uses: actions/setup-python@v5
143
+ with:
144
+ python-version: ${{ matrix.python-version }}
145
+
146
+ - name: Verify candidate identity
147
+ env:
148
+ CANDIDATE_SHA: ${{ github.sha }}
149
+ run: >-
150
+ python scripts/check_release_candidate.py
151
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA"
152
+ --checkout-sha "$(git rev-parse HEAD)"
153
+
154
+ - name: Set up Rust
155
+ uses: dtolnay/rust-toolchain@stable
156
+
157
+ - name: Cache Rust
158
+ uses: Swatinem/rust-cache@v2
159
+
160
+ - name: Set up uv
161
+ uses: astral-sh/setup-uv@v5
162
+ with:
163
+ enable-cache: true
164
+ cache-dependency-glob: uv.lock
165
+
166
+ - name: Build extension in place
167
+ run: uv run --locked --extra dev --with "maturin>=1.7,<2" maturin develop --locked --skip-install
168
+
169
+ - name: Verify test interpreter
170
+ env:
171
+ EXPECTED_PYTHON: ${{ matrix.python-version }}
172
+ run: |
173
+ uv run --locked --extra dev python - <<'PY'
174
+ import os
175
+ import sys
176
+ import sysconfig
177
+
178
+ print(sys.version, sys.executable)
179
+ assert f"{sys.version_info.major}.{sys.version_info.minor}" == os.environ["EXPECTED_PYTHON"]
180
+ assert sys.version_info.releaselevel == "final"
181
+ assert sys.implementation.name == "cpython"
182
+ assert not sysconfig.get_config_var("Py_GIL_DISABLED")
183
+ PY
184
+
185
+ - name: Run tests
186
+ if: matrix.python-version != '3.14'
187
+ run: uv run --locked --extra dev pytest -vv
188
+
189
+ - name: Run tests with coverage
190
+ if: matrix.python-version == '3.14'
191
+ run: uv run --locked --extra dev coverage run -m pytest -vv
192
+
193
+ - name: Report coverage
194
+ if: matrix.python-version == '3.14'
195
+ run: uv run --locked --extra dev coverage report -m
196
+
197
+ quality-gate:
198
+ name: Verify full-check evidence
199
+ if: ${{ always() }}
200
+ runs-on: ubuntu-latest
201
+ needs: [pre-commit, rust, rust-msrv, tests]
202
+ timeout-minutes: 5
203
+ outputs:
204
+ candidate-sha: ${{ steps.verify.outputs.candidate-sha }}
205
+ steps:
206
+ - name: Checkout
207
+ uses: actions/checkout@v4
208
+ with:
209
+ ref: ${{ github.sha }}
210
+
211
+ - name: Set up Python
212
+ uses: actions/setup-python@v5
213
+ with:
214
+ python-version: "3.11"
215
+
216
+ - name: Require every full check
217
+ id: verify
218
+ env:
219
+ CANDIDATE_SHA: ${{ github.sha }}
220
+ CHECK_RESULTS: ${{ toJSON(needs) }}
221
+ run: |
222
+ python scripts/check_release_candidate.py \
223
+ --candidate-sha "$CANDIDATE_SHA" --expected-sha "$GITHUB_SHA" \
224
+ --checkout-sha "$(git rev-parse HEAD)" --needs-json "$CHECK_RESULTS" \
225
+ --required-check pre-commit --required-check rust \
226
+ --required-check rust-msrv --required-check tests \
227
+ --receipt full-checks.json
228
+ echo "candidate-sha=$CANDIDATE_SHA" >> "$GITHUB_OUTPUT"
229
+
230
+ - name: Retain full-check evidence
231
+ uses: actions/upload-artifact@v4
232
+ with:
233
+ name: full-checks-evidence
234
+ path: full-checks.json
235
+ if-no-files-found: error