Class RequestWillBeSent
- java.lang.Object
-
- org.openqa.selenium.devtools.network.model.RequestWillBeSent
-
public class RequestWillBeSent extends java.lang.Object
Fired when page is about to send HTTP request.
-
-
Constructor Summary
Constructors Constructor Description RequestWillBeSent(RequestId requestId, LoaderId loaderId, java.lang.String documentURL, Request request, MonotonicTime timestamp, TimeSinceEpoch wallTime, Initiator initiator, java.util.Optional<Response> redirectResponse, java.util.Optional<ResourceType> type, java.util.Optional<FrameId> frameId, java.util.Optional<java.lang.Boolean> hasUserGesture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDocumentURL()
URL of the document this request is loaded for.java.util.Optional<FrameId>
getFrameId()
Frame identifier.java.util.Optional<java.lang.Boolean>
getHasUserGesture()
Whether the request is initiated by a user gesture.Initiator
getInitiator()
Request initiator.LoaderId
getLoaderId()
Loader identifier.java.util.Optional<Response>
getRedirectResponse()
Redirect response data.Request
getRequest()
Request data.RequestId
getRequestId()
Request identifier.MonotonicTime
getTimestamp()
Timestamp.java.util.Optional<ResourceType>
getType()
Type of this resource.TimeSinceEpoch
getWallTime()
Timestamp.
-
-
-
Constructor Detail
-
RequestWillBeSent
public RequestWillBeSent(RequestId requestId, LoaderId loaderId, java.lang.String documentURL, Request request, MonotonicTime timestamp, TimeSinceEpoch wallTime, Initiator initiator, java.util.Optional<Response> redirectResponse, java.util.Optional<ResourceType> type, java.util.Optional<FrameId> frameId, java.util.Optional<java.lang.Boolean> hasUserGesture)
-
-
Method Detail
-
getRequestId
public RequestId getRequestId()
Request identifier.
-
getLoaderId
public LoaderId getLoaderId()
Loader identifier. Empty string if the request is fetched from worker.
-
getDocumentURL
public java.lang.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.
-
getRedirectResponse
public java.util.Optional<Response> getRedirectResponse()
Redirect response data.
-
getType
public java.util.Optional<ResourceType> getType()
Type of this resource.
-
getFrameId
public java.util.Optional<FrameId> getFrameId()
Frame identifier.
-
getHasUserGesture
public java.util.Optional<java.lang.Boolean> getHasUserGesture()
Whether the request is initiated by a user gesture. Defaults to false.
-
-