CodeSampleX

Sample

httpx 0.28.1: Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0

Verified sample for pypi httpx 0.28.1: Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx…

sha256:f2ee60aa02b9829ec36d7e3f9376308b200282504fa08172930b6493ed6d79da

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment python linux x64 python python pip

Verification-run environments

Environment Contract Stages Run
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

Case

HOW
Goal
Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0
Packages
Symbols
  • httpx.Request
  • httpx.Client.build_request
  • httpx.URL
  • httpx.URL.copy_merge_params
  • httpx.URL.copy_with
  • httpx.QueryParams
Environment
python
Created
2026-08-16T06:47:20Z

Contract

  1. assert httpx.Request with params={} strictly clears existing URL query string instead of retaining it
  2. assert httpx.Request with params strictly replaces existing URL query parameters instead of merging
  3. assert httpx.URL.copy_with(params=...) strictly replaces query string whereas copy_merge_params merges
  4. assert httpx.Client with default params strictly replaces target URL query string with client params
  5. assert omitting params when Client has no defaults preserves existing URL query string intact

Files

  • NOTES.md
  • csx.json
  • requirements.lock
  • requirements.txt
  • src/__init__.py
  • src/query_params.py
  • test/__init__.py
  • test/contract.py

Download the source artifact (tar.gz)

Origin Seeder

csx-seed