Class RequestWillBeSent
- java.lang.Object
-
- org.openqa.selenium.devtools.v102.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, java.lang.Boolean redirectHasExtraInfo, 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.StringgetDocumentURL()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.InitiatorgetInitiator()Request initiator.LoaderIdgetLoaderId()Loader identifier.java.lang.BooleangetRedirectHasExtraInfo()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.java.util.Optional<Response>getRedirectResponse()Redirect response data.RequestgetRequest()Request data.RequestIdgetRequestId()Request identifier.MonotonicTimegetTimestamp()Timestamp.java.util.Optional<ResourceType>getType()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, java.lang.Boolean redirectHasExtraInfo, 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.
-
getRedirectHasExtraInfo
@Beta public java.lang.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 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.
-
-