샘플
Handle type and serialization boundaries in faraday-net_http including quoted MIME charset fallback to ASCII-8BIT, 204 empty string coercion, header collapsing, uncoerced header values, and unconfigured stream body errors
sha256:716d765eee135755f39f5ea000d4c7436d3d92916e40fbc5c275a93836ff4d6d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Handle type and serialization boundaries in faraday-net_http including quoted MIME charset fallback to ASCII-8BIT, 204 empty string coercion, header collapsing, uncoerced header values, and unconfigured stream body errors HOW
- 패키지
- faraday-net_http 3.4.4 faraday 2.14.3 minitest 5.27.0
- 환경
- ruby
- 생성일
- 2026-08-17T01:15:51Z
흔히 이렇게 알고 있다
Faraday's NetHttp adapter accurately extracts quoted MIME charset parameters to transcode response bodies, preserves nil for empty 204 bodies, and automatically stringifies non-string header values.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- assert Faraday NetHttp adapter falls back to Encoding::ASCII_8BIT when Content-Type contains a quoted charset parameter (such as charset=\"iso-8859-1\") rather than setting the parsed encoding
- assert 204 No Content response body is coerced to an empty string (\"\") instead of preserving nil
- assert multiple response headers with the same name are collapsed into a single comma-delimited string
- assert non-string request header values raise NoMethodError on strip instead of being coerced to string
- assert streaming an IO request body without explicit Content-Length or chunked Transfer-Encoding raises ArgumentError
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9