Class RequestPaused

java.lang.Object
io.webfolder.cdp.event.fetch.RequestPaused

public class RequestPaused extends Object
Issued when the domain is enabled and the request URL matches the specified filter The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise
  • Constructor Details

    • RequestPaused

      public RequestPaused()
  • Method Details

    • getRequestId

      public String getRequestId()
      Each request the page makes will have a unique id.
    • setRequestId

      public void setRequestId(String requestId)
      Each request the page makes will have a unique id.
    • getRequest

      public Request getRequest()
      The details of the request.
    • setRequest

      public void setRequest(Request request)
      The details of the request.
    • getFrameId

      public String getFrameId()
      The id of the frame that initiated the request.
    • setFrameId

      public void setFrameId(String frameId)
      The id of the frame that initiated the request.
    • getResourceType

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

      public void setResourceType(ResourceType resourceType)
      How the requested resource will be used.
    • getResponseErrorReason

      public ErrorReason getResponseErrorReason()
      Response error if intercepted at response stage.
    • setResponseErrorReason

      public void setResponseErrorReason(ErrorReason responseErrorReason)
      Response error if intercepted at response stage.
    • getResponseStatusCode

      public Integer getResponseStatusCode()
      Response code if intercepted at response stage.
    • setResponseStatusCode

      public void setResponseStatusCode(Integer responseStatusCode)
      Response code if intercepted at response stage.
    • getResponseHeaders

      public List<HeaderEntry> getResponseHeaders()
      Response headers if intercepted at the response stage.
    • setResponseHeaders

      public void setResponseHeaders(List<HeaderEntry> responseHeaders)
      Response headers if intercepted at the response stage.
    • getNetworkId

      public String getNetworkId()
      If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
    • setNetworkId

      public void setNetworkId(String networkId)
      If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.