response.sendDate


当值为 true 时,如果响应头中尚不存在 Date 头部,将会自动生成并发送该头部。默认值为 true。

🌐 When true, the Date header will be automatically generated and sent in the response if it is not already present in the headers. Defaults to true.

这应该仅在测试时禁用;大多数 HTTP 响应中都需要 Date 头(详情见 RFC 9110 第6.6.1节)。

🌐 This should only be disabled for testing; the Date header is required in most HTTP responses (see RFC 9110 Section 6.6.1 for details).