サンプル
httpx 0.28.1: Configure transport-level retries in httpx without assuming Client-level retries, read/5xx retries, or unlimited phase timeouts
検証済みサンプル — pypi httpx 0.28.1: Configure transport-level retries in httpx without assuming Client-level retries, read/5xx retries, or unlimited phase…
sha256:58a4bf68c93b11769c3067ee971a42c2a13bff9b487b2f6f0f5da6646b15fb1c
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
python linux x64 python python pip
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-16 |
| python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-18 |
ケース
HOW- ゴール
- Configure transport-level retries in httpx without assuming Client-level retries, read/5xx retries, or unlimited phase timeouts
- パッケージ
- シンボル
-
- httpx.HTTPTransport
- httpx.Client
- httpx.Timeout
- httpx.ConnectError
- httpx.ConnectTimeout
- httpx.ReadTimeout
- httpx.WriteTimeout
- httpx.PoolTimeout
- httpx.BaseTransport
- 環境
- 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