Class RequestIntercepted

java.lang.Object
org.openqa.selenium.devtools.v85.network.model.RequestIntercepted

@Beta @Deprecated public class RequestIntercepted extends Object
Deprecated.
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
  • Constructor Details

  • Method Details

    • getInterceptionId

      public InterceptionId getInterceptionId()
      Deprecated.
      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.
    • getRequest

      public Request getRequest()
      Deprecated.
    • getFrameId

      public FrameId getFrameId()
      Deprecated.
      The id of the frame that initiated the request.
    • getResourceType

      public ResourceType getResourceType()
      Deprecated.
      How the requested resource will be used.
    • getIsNavigationRequest

      public Boolean getIsNavigationRequest()
      Deprecated.
      Whether this is a navigation request, which can abort the navigation completely.
    • getIsDownload

      public Optional<Boolean> getIsDownload()
      Deprecated.
      Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).
    • getRedirectUrl

      public Optional<String> getRedirectUrl()
      Deprecated.
      Redirect location, only sent if a redirect was intercepted.
    • getAuthChallenge

      public Optional<AuthChallenge> getAuthChallenge()
      Deprecated.
      Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
    • getResponseErrorReason

      public Optional<ErrorReason> getResponseErrorReason()
      Deprecated.
      Response error if intercepted at response stage or if redirect occurred while intercepting request.
    • getResponseStatusCode

      public Optional<Integer> getResponseStatusCode()
      Deprecated.
      Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
    • getResponseHeaders

      public Optional<Headers> getResponseHeaders()
      Deprecated.
      Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
    • getRequestId

      public Optional<RequestId> getRequestId()
      Deprecated.
      If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.