示例
Configure Net::HTTP adapter settings via yield block and connection options without silently dropping options hashes or relying on disabled max_retries
sha256:ad813ae44371abab4ceed80523b3ed37f427a74faa825676697ffd742015b9a7
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Configure Net::HTTP adapter settings via yield block and connection options without silently dropping options hashes or relying on disabled max_retries HOW
- 包
- faraday-net_http 3.4.4
- 环境
- ruby
- 创建时间
- 2026-08-17T02:40:25Z
契约
- assert passing options hash to f.adapter :net_http is silently ignored and does not configure Net::HTTP timeouts
- assert adapter configuration block yields raw Net::HTTP instance for custom timeouts and socket settings
- assert Faraday::Adapter::NetHttp explicitly overrides Net::HTTP default max_retries to 0
- assert Faraday request timeout acts as fallback across read, open, and write timeouts
- assert SSL configuration enables use_ssl and maps verify_mode only when URL scheme is https
- assert Net::HTTP connection without proxy passes explicit nil to suppress implicit ENV proxy inheritance
文件
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- lib/connection_factory.rb
- test/contract.rb
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9