Sample
Preserve multi-value entries and discrete wire lines across httpx Headers and QueryParams data-structure and serialization round-trip boundaries
sha256:491b3c7563fa445358d0adc4cf5a2a62d1b367ce9be91206c709401818fcb98e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- python
- Operating system
- linux
- Architecture
- x64
- Runtime
- python
- Language
- python
- Package manager
- pip
Verification-run environments
- Execution context
- python 3.12
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- python 3.12
- Language
- python
- Package manager
- pip
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Case
- Goal
- Preserve multi-value entries and discrete wire lines across httpx Headers and QueryParams data-structure and serialization round-trip boundaries HOW
- Packages
-
httpx 0.28.1
- Environment
- python
- Created
- 2026-08-17T06:39:34Z
Commonly assumed
Converting Headers and QueryParams to standard Python dictionaries preserves all multi-value items or maps duplicate keys to lists.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Converting Headers to a standard dictionary collapses duplicate header keys into a single comma-delimited string rather than preserving discrete wire occurrences or lists.
- Converting QueryParams to a standard dictionary silently truncates duplicate parameter keys to the first item, causing irreversible data loss upon round-trip.
- QueryParams mutation methods (add, set, remove) return new immutable instances leaving the original QueryParams instance unmodified.
- Request form data serializes multi-value lists as repeated application/x-www-form-urlencoded key-value pairs with boolean and integer values stringified.
- Accessing content on an unbuffered streaming or multipart Request raises RequestNotRead until read() is explicitly invoked.
Files
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/transforms.py
- test/__init__.py
- test/contract.py
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9