← Back to Fetch domain

Fetch.continueResponse

Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.

Domain: Fetch experimental

Parameters

NameTypeDescription
requestIdRequestIdAn id the client received in requestPaused event.
responseCode (optional)integerAn HTTP response code. If absent, original response code will be used.
responsePhrase (optional)stringA textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
responseHeaders (optional)arrayResponse headers. If absent, original response headers will be used.
binaryResponseHeaders (optional)stringAlternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)

Example Request

{
  "id": 1,
  "method": "Fetch.continueResponse",
  "params": {
    "requestId": "request-1"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Fetch.continueResponse', {"requestId": "request-1"});
console.log(result);