← Back to Network domain
Network.takeResponseBodyForInterceptionAsStream
Returns a handle to the stream representing the response body. Note that after this command,
the intercepted request can't be continued as is -- you either need to cancel it or to provide
the response body. The stream only supports sequential read, IO.read will fail if the position
is specified.
Domain: Network
experimental
Parameters
| Name | Type | Description |
interceptionId | InterceptionId | |
Returns
| Name | Type | Description |
stream | IO.StreamHandle | |
Example Request
{
"id": 1,
"method": "Network.takeResponseBodyForInterceptionAsStream",
"params": {
"interceptionId": "interceptionId-value"
}
}
Example Response
{
"id": 1,
"result": {
"stream": "stream-value"
}
}
Usage in Node.js
const result = await send('Network.takeResponseBodyForInterceptionAsStream', {"interceptionId": "interceptionId-value"});
console.log(result);
// {"stream": "stream-value"}