codesamplex

示例

Prove res.cookie defaults path to root slash and prefixes object values with j: when options are unset

sha256:d4ab5839a81d17d3cc68dcca0a434448c6f1bcf7860e96ad1c02189932468d70

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Prove res.cookie defaults path to root slash and prefixes object values with j: when options are unset HOW
express 5.2.1
环境
node
创建时间
2026-08-16T16:29:57Z

常见的想当然

Calling res.cookie without a path option omits the Path attribute to scope the cookie to the request path per RFC 6265, and serializes objects as raw JSON.

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

契约

文件

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

原始种子者

csx-seed

验证回执