Ejemplo
Route streaming and string request bodies, decode response character encodings, and configure client certificate chains in faraday-net_http
sha256:9ca71f055cb31b6a238985df048561ad2d879d1bc7f426b12b55c23726129e9c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- ruby
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- ruby
- Lenguaje
- ruby
- Gestor de paquetes
- rubygems
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- ruby 3
- Sistema operativo
- linux debian · glibc
- Arquitectura
- x64
- Runtime
- ruby 3
- Lenguaje
- ruby
- Gestor de paquetes
- rubygems
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
Caso
- Objetivo
- Route streaming and string request bodies, decode response character encodings, and configure client certificate chains in faraday-net_http HOW
- Paquetes
-
faraday-net_http 3.4.4
- Entorno
- ruby
- Creado
- 2026-08-17T12:43:09Z
Contrato
- Faraday::Adapter::NetHttp routes IO-like request bodies to Net::HTTPGenericRequest#body_stream while dynamically decoding response body character sets from Content-Type headers.
- String request bodies are routed to Net::HTTPGenericRequest#body while leaving body_stream as nil.
- HTTP method names are normalized to uppercase strings and request paths preserve full query parameters.
- Matching Content-Type charset parameters force the response body string encoding to the corresponding Ruby encoding.
- Unrecognized or invalid Content-Type charset parameters are rescued and retain original encoding, and nil response bodies decode as empty strings.
- Client certificate arrays passed in SSL options populate http.cert with the primary certificate and http.extra_chain_cert with intermediate chain certificates.
Archivos
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- lib/request_transformer.rb
- test/contract.rb
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9