HTTPResponse.headers() 方法
🌐 HTTPResponse.headers() method
一个与响应相关联的 HTTP 头对象。所有头名称都是小写。
🌐 An object with HTTP headers associated with the response. All header names are lower-case.
语法
🌐 Signature
class HTTPResponse {
abstract headers(): Record<string, string>;
}
返回:
Record<string, string>