pl.wendigo.chrome.api.network / RequestWillBeSentEvent

RequestWillBeSentEvent

data class RequestWillBeSentEvent : Event (source)

Fired when page is about to send HTTP request.

Link
Network#requestWillBeSent event documentation.

Constructors

<init>

RequestWillBeSentEvent(requestId: RequestId, loaderId: LoaderId, documentURL: String, request: Request, timestamp: MonotonicTime, wallTime: TimeSinceEpoch, initiator: Initiator, redirectResponse: Response? = null, type: ResourceType? = null, frameId: FrameId? = null, hasUserGesture: Boolean? = null)

Fired when page is about to send HTTP request.

Properties

documentURL

val documentURL: String

URL of the document this request is loaded for.

frameId

val frameId: FrameId?

Frame identifier.

hasUserGesture

val hasUserGesture: Boolean?

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

initiator

val initiator: Initiator

Request initiator.

loaderId

val loaderId: LoaderId

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

redirectResponse

val redirectResponse: Response?

Redirect response data.

request

val request: Request

Request data.

requestId

val requestId: RequestId

Request identifier.

timestamp

val timestamp: MonotonicTime

Timestamp.

type

val type: ResourceType?

Type of this resource.

wallTime

val wallTime: TimeSinceEpoch

Timestamp.

Inherited Functions

protocolDomain

fun protocolDomain(): String