Response class represents responses which are received by page.
allHeadersAdded in: v1.15
An object with all the response HTTP headers associated with this response.
bodyAdded in: v1.8
Returns the buffer with response body.
finishedAdded in: v1.8
Waits for this response to finish, returns always
frameAdded in: v1.8
Returns the Frame that initiated this response.
fromServiceWorkerAdded in: v1.23
Indicates whether this Response was fulfilled by a Service Worker's Fetch Handler (i.e. via FetchEvent.respondWith).
headerValueAdded in: v1.15
Returns the value of the header matching the name. The name is case insensitive. If multiple headers have the same name (except
set-cookie), they are returned as a list separated by
, . For
\n separator is used. If no headers are found,
null is returned.
headerValuesAdded in: v1.15
Returns all values of the headers matching the name, for example
set-cookie. The name is case insensitive.
headersAdded in: v1.8
An object with the response HTTP headers. The header names are lower-cased. Note that this method does not return security-related headers, including cookie-related ones. You can use Response.allHeaders() for complete list of headers that include