Fetch.continueResponseContinues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.
| Name | Type | Description |
|---|---|---|
requestId | RequestId | An id the client received in requestPaused event. |
responseCode (optional) | integer | An HTTP response code. If absent, original response code will be used. |
responsePhrase (optional) | string | A textual representation of responseCode. If absent, a standard phrase matching responseCode is used. |
responseHeaders (optional) | array | Response headers. If absent, original response headers will be used. |
binaryResponseHeaders (optional) | string | Alternative 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) |
{
"id": 1,
"method": "Fetch.continueResponse",
"params": {
"requestId": "request-1"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Fetch.continueResponse', {"requestId": "request-1"});
console.log(result);