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