headers
A Record<string, string | string[]>
representing the HTTP response headers. The headers
object is formatted as follows:
All header names are lowercased.
Duplicates of
age
,authorization
,content-length
,content-type
,etag
,expires
,from
,host
,if-modified-since
,if-unmodified-since
,last-modified
,location
,max-forwards
,proxy-authorization
,referer
,retry-after
,server
, oruser-agent
are discarded.set-cookie
is always an array. Duplicates are added to the array.For duplicate
cookie
headers, the values are joined together with '; '.For all other headers, the values are joined together with ', '.