Class RequestWillBeSent
- java.lang.Object
-
- org.openqa.selenium.devtools.network.model.RequestWillBeSent
-
public class RequestWillBeSent extends java.lang.ObjectFired 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, Response redirectResponse, ResourceType type, FrameId frameId, java.lang.Boolean hasUserGesture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDocumentURL()URL of the document this request is loaded for.FrameIdgetFrameId()Frame identifier.java.lang.BooleangetHasUserGesture()Whether the request is initiated by a user gesture.InitiatorgetInitiator()Request initiator.LoaderIdgetLoaderId()Loader identifier.ResponsegetRedirectResponse()Redirect response data.RequestgetRequest()Request data.RequestIdgetRequestId()Request identifier.MonotonicTimegetTimestamp()Timestamp.ResourceTypegetType()Type of this resource.TimeSinceEpochgetWallTime()Timestamp.
-
-
-
Constructor Detail
-
RequestWillBeSent
public RequestWillBeSent(RequestId requestId, LoaderId loaderId, java.lang.String documentURL, Request request, MonotonicTime timestamp, TimeSinceEpoch wallTime, Initiator initiator, Response redirectResponse, ResourceType type, FrameId frameId, 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 Response getRedirectResponse()
Redirect response data.
-
getType
public ResourceType getType()
Type of this resource.
-
getFrameId
public FrameId getFrameId()
Frame identifier.
-
getHasUserGesture
public java.lang.Boolean getHasUserGesture()
Whether the request is initiated by a user gesture. Defaults to false.
-
-