-
public final class NetworkEvent.RequestWillBeSentEvent extends NetworkEvent
Fired when page is about to send HTTP request.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrequestIdprivate final StringloaderIdprivate final StringdocumentURLprivate final Requestrequestprivate final Doubletimestampprivate final DoublewallTimeprivate final Initiatorinitiatorprivate final ResponseredirectResponseprivate final ResourceTypetypeprivate final StringframeIdprivate final BooleanhasUserGesture
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Requestcomponent4()final Doublecomponent5()final Doublecomponent6()final Initiatorcomponent7()final Responsecomponent8()final ResourceTypecomponent9()final Stringcomponent10()final Booleancomponent11()final NetworkEvent.RequestWillBeSentEventcopy(String requestId, String loaderId, String documentURL, Request request, Double timestamp, Double wallTime, Initiator initiator, Response redirectResponse, ResourceType type, String frameId, Boolean hasUserGesture)final StringgetRequestId()Request identifier. final StringgetLoaderId()Loader identifier. final StringgetDocumentURL()URL of the document this request is loaded for. final RequestgetRequest()Request data. final DoublegetTimestamp()Timestamp. final DoublegetWallTime()Timestamp. final InitiatorgetInitiator()Request initiator. final ResponsegetRedirectResponse()Redirect response data. final ResourceTypegetType()Type of this resource. final StringgetFrameId()Frame identifier. final BooleangetHasUserGesture()Whether the request is initiated by a user gesture. -
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final Request component4()
-
component5
final Double component5()
-
component6
final Double component6()
-
component7
final Initiator component7()
-
component8
final Response component8()
-
component9
final ResourceType component9()
-
component10
final String component10()
-
component11
final Boolean component11()
-
copy
final NetworkEvent.RequestWillBeSentEvent copy(String requestId, String loaderId, String documentURL, Request request, Double timestamp, Double wallTime, Initiator initiator, Response redirectResponse, ResourceType type, String frameId, Boolean hasUserGesture)
-
getRequestId
final String getRequestId()
Request identifier.
-
getLoaderId
final String getLoaderId()
Loader identifier. Empty string if the request is fetched from worker.
-
getDocumentURL
final String getDocumentURL()
URL of the document this request is loaded for.
-
getRequest
final Request getRequest()
Request data.
-
getTimestamp
final Double getTimestamp()
Timestamp.
-
getWallTime
final Double getWallTime()
Timestamp.
-
getInitiator
final Initiator getInitiator()
Request initiator.
-
getRedirectResponse
final Response getRedirectResponse()
Redirect response data.
-
getType
final ResourceType getType()
Type of this resource.
-
getFrameId
final String getFrameId()
Frame identifier.
-
getHasUserGesture
final Boolean getHasUserGesture()
Whether the request is initiated by a user gesture. Defaults to false.
-
-
-
-