示例
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