Exemple
Handle compact JSON payload serialization and strict query param replacement in httpx 0.28.0 without assuming spaced json.dumps separators or requests-style query merging
sha256:d7f4d084f84fe2599424047c4a602ec75468ea6139768678462725a0fdad3e75
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Handle compact JSON payload serialization and strict query param replacement in httpx 0.28.0 without assuming spaced json.dumps separators or requests-style query merging HOW
- Paquets
- httpx 0.28.1
- Environnement
- python
- Créé
- 2026-08-16T06:39:23Z
Contrat
- assert httpx.Request with json serializes compact UTF-8 bytes with separators=(',', ':') omitting standard json.dumps whitespace
- assert httpx.Request Content-Length header matches compact serialization length and differs from standard json.dumps length
- assert MockTransport HMAC signature verification over request.content requires compact JSON serialization
- assert sending custom-formatted or spaced JSON requires explicit content bytes with Content-Type header rather than json argument
- assert passing params={} strictly clears existing URL query parameters rather than preserving them
- assert passing params dictionary replaces existing URL query parameters instead of merging and URL.copy_merge_params merges safely
Fichiers
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/client_helper.py
- test/__init__.py
- test/contract.py
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9