RequestWillBeSentParameter

@Serializable
data class RequestWillBeSentParameter(val requestId: String, val loaderId: String, val documentURL: String, val request: Network.Request, val timestamp: Double, val wallTime: Double, val initiator: Network.Initiator, val redirectHasExtraInfo: Boolean, val redirectResponse: Network.Response? = null, val type: Network.ResourceType? = null, val frameId: String? = null, val hasUserGesture: Boolean? = null)

Fired when page is about to send HTTP request.

Constructors

Link copied to clipboard
constructor(requestId: String, loaderId: String, documentURL: String, request: Network.Request, timestamp: Double, wallTime: Double, initiator: Network.Initiator, redirectHasExtraInfo: Boolean, redirectResponse: Network.Response? = null, type: Network.ResourceType? = null, frameId: String? = null, hasUserGesture: Boolean? = null)

Properties

Link copied to clipboard

URL of the document this request is loaded for.

Link copied to clipboard
val frameId: String? = null

Frame identifier.

Link copied to clipboard
val hasUserGesture: Boolean? = null

Whether the request is initiated by a user gesture. Defaults to false.

Link copied to clipboard

Request initiator.

Link copied to clipboard

Loader identifier. Empty string if the request is fetched from worker.

Link copied to clipboard

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.

Link copied to clipboard

Redirect response data.

Link copied to clipboard

Request data.

Link copied to clipboard

Request identifier.

Link copied to clipboard

Timestamp.

Link copied to clipboard

Type of this resource.

Link copied to clipboard

Timestamp.