Class RequestWillBeSent

java.lang.Object
io.webfolder.cdp.event.network.RequestWillBeSent

public class RequestWillBeSent extends Object
Fired when page is about to send HTTP request
  • Constructor Details

    • RequestWillBeSent

      public RequestWillBeSent()
  • Method Details

    • getRequestId

      public String getRequestId()
      Request identifier.
    • setRequestId

      public void setRequestId(String requestId)
      Request identifier.
    • getLoaderId

      public String getLoaderId()
      Loader identifier. Empty string if the request is fetched from worker.
    • setLoaderId

      public void setLoaderId(String loaderId)
      Loader identifier. Empty string if the request is fetched from worker.
    • getDocumentURL

      public String getDocumentURL()
      URL of the document this request is loaded for.
    • setDocumentURL

      public void setDocumentURL(String documentURL)
      URL of the document this request is loaded for.
    • getRequest

      public Request getRequest()
      Request data.
    • setRequest

      public void setRequest(Request request)
      Request data.
    • getTimestamp

      public Double getTimestamp()
      Timestamp.
    • setTimestamp

      public void setTimestamp(Double timestamp)
      Timestamp.
    • getWallTime

      public Double getWallTime()
      Timestamp.
    • setWallTime

      public void setWallTime(Double wallTime)
      Timestamp.
    • getInitiator

      public Initiator getInitiator()
      Request initiator.
    • setInitiator

      public void setInitiator(Initiator initiator)
      Request initiator.
    • getRedirectResponse

      public Response getRedirectResponse()
      Redirect response data.
    • setRedirectResponse

      public void setRedirectResponse(Response redirectResponse)
      Redirect response data.
    • getType

      public ResourceType getType()
      Type of this resource.
    • setType

      public void setType(ResourceType type)
      Type of this resource.
    • getFrameId

      public String getFrameId()
      Frame identifier.
    • setFrameId

      public void setFrameId(String frameId)
      Frame identifier.
    • isHasUserGesture

      public Boolean isHasUserGesture()
      Whether the request is initiated by a user gesture. Defaults to false.
    • setHasUserGesture

      public void setHasUserGesture(Boolean hasUserGesture)
      Whether the request is initiated by a user gesture. Defaults to false.