An array with all the request HTTP headers associated with this response. Header names are not lower-cased. Headers
with multiple entries, such as Set-Cookie, appear in the array multiple times.
Returns { name: string; value: string; }[]
json
json(): Promise<any>
Returns the JSON representation of response body.
This method will throw if the response body is not parsable via JSON.parse.
Returns Promise<any>
ok
ok(): boolean
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
Returns boolean
status
status(): number
Contains the status code of the response (e.g., 200 for a success).
Returns number
statusText
statusText(): string
Contains the status text of the response (e.g. usually an "OK" for a success).
APIResponse class represents responses returned by apiRequestContext.get(url[, options]) and similar methods.