Class RequestWillBeSent

java.lang.Object
org.openqa.selenium.devtools.v141.network.model.RequestWillBeSent

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

  • Method Details

    • getRequestId

      public RequestId getRequestId()
      Request identifier.
    • getLoaderId

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

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

      public Request getRequest()
      Request data.
    • getTimestamp

      public MonotonicTime getTimestamp()
      Timestamp.
    • getWallTime

      public TimeSinceEpoch getWallTime()
      Timestamp.
    • getInitiator

      public Initiator getInitiator()
      Request initiator.
    • getRedirectHasExtraInfo

      @Beta public Boolean getRedirectHasExtraInfo()
      In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
    • getRedirectResponse

      public Optional<Response> getRedirectResponse()
      Redirect response data.
    • getType

      public Optional<ResourceType> getType()
      Type of this resource.
    • getFrameId

      public Optional<FrameId> getFrameId()
      Frame identifier.
    • getHasUserGesture

      public Optional<Boolean> getHasUserGesture()
      Whether the request is initiated by a user gesture. Defaults to false.