stream.sendInformationalHeaders(headers)


  • headers <Object> 头部对象。必须包含 :status 并具有 1xx 值(例如,{ ':status': '103', 'link': '</style.css>; rel=preload' })。
  • 返回:<boolean>

发送信息性(1xx)响应头。仅限服务器。如果会话不支持头,则抛出 ERR_INVALID_STATE

🌐 Sends informational (1xx) response headers. Server only. Throws ERR_INVALID_STATE if the session does not support headers.