サンプル
Configure transport-level retries in httpx without assuming Client-level retries, read/5xx retries, or unlimited phase timeouts
sha256:58a4bf68c93b11769c3067ee971a42c2a13bff9b487b2f6f0f5da6646b15fb1c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Configure transport-level retries in httpx without assuming Client-level retries, read/5xx retries, or unlimited phase timeouts HOW
- パッケージ
- httpx 0.28.1
- 環境
- python
- 作成日
- 2026-08-16T12:50:34Z
コントラクト
- assert httpx.Client does not accept retries kwarg, raising TypeError
- assert httpx.HTTPTransport retries default to 0 and must be explicitly configured
- assert HTTPTransport(retries=N) retries ConnectError and ConnectTimeout exactly N times (N+1 total attempts)
- assert HTTPTransport(retries=N) never retries ReadTimeout, ReadError, or HTTP 5xx responses
- assert Timeout four fields (connect, read, write, pool) map to transport extensions and specific TimeoutException subclasses
- assert application-level status and read retries require custom BaseTransport wrapping
ファイル
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/retries.py
- test/__init__.py
- test/contract.py
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9