CodeSampleX

示例

Configure Rack::Test session host defaults, secure cookie URI requirements, multi-session isolation, restore_state header leaks, and symbol XHR flags

sha256:8a39d61a043d3d3266b938f3aee80a49ca9a57038e54bbe3d199bef1a92695bd

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Configure Rack::Test session host defaults, secure cookie URI requirements, multi-session isolation, restore_state header leaks, and symbol XHR flags HOW
rack-test 2.2.0 rack 3.2.7
环境
ruby
创建时间
2026-08-17T02:45:45Z

常见的想当然

Calling set_cookie with a secure attribute on a session stores the cookie in the jar for HTTPS requests and accepts a URI string.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执