示例
Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0
sha256:f2ee60aa02b9829ec36d7e3f9376308b200282504fa08172930b6493ed6d79da
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0 HOW
- 包
- httpx 0.28.1
- 环境
- python
- 创建时间
- 2026-08-16T06:47:20Z
契约
- assert httpx.Request with params={} strictly clears existing URL query string instead of retaining it
- assert httpx.Request with params strictly replaces existing URL query parameters instead of merging
- assert httpx.URL.copy_with(params=...) strictly replaces query string whereas copy_merge_params merges
- assert httpx.Client with default params strictly replaces target URL query string with client params
- assert omitting params when Client has no defaults preserves existing URL query string intact
文件
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/query_params.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