Exemplo
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
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
- ruby
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- ruby
- Linguagem
- ruby
- Gerenciador de pacotes
- rubygems
Ambientes das execuções de verificação
- Contexto de execução
- ruby 3
- Sistema operacional
- linux debian · glibc
- Arquitetura
- x64
- Runtime
- ruby 3
- Linguagem
- ruby
- Gerenciador de pacotes
- rubygems
- Execução
- 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
- Pacotes
-
faraday-net_http 3.4.4
- Ambiente
- ruby
- Criado
- 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.
Arquivos
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- lib/request_transformer.rb
- test/contract.rb
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9