CodeSampleX

Sample

faraday-net_http 3.4.4: Handle faraday-net_http silent behavioral changes across version boundaries including HTTPS proxy SSL enablement, mutable empty bodies, array client_cert extra_chain_cert splitting, HTTP SSL configuration bypass, and Content-Type charset forcing

Verified sample for gem faraday-net_http 3.4.4: Handle faraday-net_http silent behavioral changes across version boundaries including HTTPS proxy SSL…

sha256:9338c27f9a8f958e2af4e2210527279c2f6fe154b96ae84fef4b0ab00e3d7686

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment ruby linux x64 ruby ruby bundler

Verification-run environments

Environment Contract Stages Run
ruby 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · rubygems@1
2026-08-17
ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · rubygems@1
2026-08-18

Case

HOW
Goal
Handle faraday-net_http silent behavioral changes across version boundaries including HTTPS proxy SSL enablement, mutable empty bodies, array client_cert extra_chain_cert splitting, HTTP SSL configuration bypass, and Content-Type charset forcing
Packages
Symbols
  • Faraday::Adapter::NetHttp#build_connection
  • Faraday::Adapter::NetHttp#encoded_body
  • Faraday::Adapter::NetHttp#configure_ssl
  • Faraday::Adapter::NetHttp#configure_request
Environment
ruby
Created
2026-08-17T02:42:40Z

Contract

  1. assert HTTPS proxy URIs set Net::HTTP @proxy_use_ssl to true while HTTP proxy URIs leave it false
  2. assert encoded_body returns a mutable unfrozen empty string when response body is nil without Content-Type
  3. assert client_cert Array splits the first certificate into http.cert and the remaining chain into http.extra_chain_cert
  4. assert plain http URLs skip SSL configuration without initializing cert_store while https URLs configure OpenSSL cert_store
  5. assert Content-Type charset forces body encoding but silently retains binary ASCII-8BIT without raising ArgumentError on invalid charsets
  6. assert configure_request disables Net::HTTP default retries by setting max_retries to 0

Files

  • Gemfile
  • Gemfile.lock
  • NOTES.md
  • csx.json
  • test/contract.rb

Download the source artifact (tar.gz)

Origin Seeder

csx-seed