Network.requestIntercepted

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked.

{
  "name": "requestIntercepted",
  "description": "Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked.",
  "parameters": [
    {
      "name": "interceptionId",
      "$ref": "InterceptionId",
      "description": "Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used."
    },
    {
      "name": "request",
      "$ref": "Request"
    },
    {
      "name": "frameId",
      "$ref": "Page.FrameId",
      "description": "The id of the frame that initiated the request."
    },
    {
      "name": "resourceType",
      "$ref": "Page.ResourceType",
      "description": "How the requested resource will be used."
    },
    {
      "name": "isNavigationRequest",
      "type": "boolean",
      "description": "Whether this is a navigation request, which can abort the navigation completely."
    },
    {
      "name": "redirectUrl",
      "optional": true,
      "type": "string",
      "description": "Redirect location, only sent if a redirect was intercepted."
    },
    {
      "name": "authChallenge",
      "$ref": "AuthChallenge",
      "optional": true,
      "description": "Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse."
    },
    {
      "name": "responseErrorReason",
      "$ref": "ErrorReason",
      "optional": true,
      "description": "Response error if intercepted at response stage or if redirect occurred while intercepting request."
    },
    {
      "name": "responseStatusCode",
      "type": "integer",
      "optional": true,
      "description": "Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred."
    },
    {
      "name": "responseHeaders",
      "$ref": "Headers",
      "optional": true,
      "description": "Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred."
    }
  ],
  "experimental": true
}