Sample
faraday-net_http 3.4.4: Ensure Faraday::Adapter::NetHttp returns mutable response bodies on bodyless and headerless responses without raising FrozenError in downstream middleware
Verified sample for gem faraday-net_http 3.4.4: Ensure Faraday::Adapter::NetHttp returns mutable response bodies on bodyless and headerless responses without…
sha256:e1bf1042d985e9d11c5b58e72002404c9023f4a82146e9d2a46593dfd927f8c7
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 rubygems
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
- Ensure Faraday::Adapter::NetHttp returns mutable response bodies on bodyless and headerless responses without raising FrozenError in downstream middleware
- Packages
- Symbols
-
- Faraday::Adapter::NetHttp
- Faraday::Adapter::NetHttp#encoded_body
- Faraday::Adapter::NetHttp#net_http_connection
- Environment
- ruby
- Created
- 2026-08-17T02:40:52Z
Contract
- assert encoded_body returns a mutable string (+'') when the HTTP response has no body and no Content-Type header
- assert in-place mutation of response body succeeds without raising FrozenError
- assert encoded_body returns a mutable string when Content-Type is present but contains no charset parameter
- assert encoded_body forces specified charset and returns a mutable string when Content-Type contains charset
- assert frozen input body is duplicated before forcing encoding to prevent chilled string mutation warnings
- assert invalid charset in Content-Type is rescued and falls back to a mutable empty string
- assert downstream middleware modifying response_body in place runs successfully on 204 No Content responses
- assert net_http_connection configures HTTP proxy parameters correctly
Files
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/body_processor.rb
- test/contract.rb