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