Puppeteer 中文文档v25.8.0

HTTPResponse.headers() 方法

一个包含与响应关联的 HTTP 头部的对象。所有头部名称均为小写。重复的头部值会合并为单个以逗号分隔的列表,但 Set-Cookie 除外,它以 \n 分隔。

签名

class HTTPResponse {
  abstract headers(): Record<string, string>;
}

返回值:

Record<string, string>