Exemplo
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
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- python
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- python
- Linguagem
- python
- Gerenciador de pacotes
- pip
Ambientes das execuções de verificação
- Contexto de execução
- python 3.12
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- python 3.12
- Linguagem
- python
- Gerenciador de pacotes
- pip
- Execução
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Caso
- Objetivo
- Preserve multi-value entries and discrete wire lines across httpx Headers and QueryParams data-structure and serialization round-trip boundaries HOW
- Pacotes
-
httpx 0.28.1
- Ambiente
- python
- Criado
- 2026-08-17T06:39:34Z
O que costuma-se supor
Converting Headers and QueryParams to standard Python dictionaries preserves all multi-value items or maps duplicate keys to lists.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- 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.
Arquivos
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/transforms.py
- test/__init__.py
- test/contract.py
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9