← Back to Network domain

Network.setRequestInterception

Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.

Domain: Network deprecated

Parameters

NameTypeDescription
patternsarrayRequests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.

Example Request

{
  "id": 1,
  "method": "Network.setRequestInterception",
  "params": {
    "patterns": []
  }
}

Example Response

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

Usage in Node.js

const result = await send('Network.setRequestInterception', {"patterns": []});
console.log(result);