Types

Link copied to clipboard
@Serializable
data class DataReceived(val requestId: RequestId, val timestamp: MonotonicTime, val dataLength: Int, val encodedDataLength: Int) : NetworkEvent

Fired when data chunk was received over the network.

Link copied to clipboard
@Serializable
data class EventSourceMessageReceived(val requestId: RequestId, val timestamp: MonotonicTime, val eventName: String, val eventId: String, val data: String) : NetworkEvent

Fired when EventSource message is received.

Link copied to clipboard
@Serializable
data class LoadingFailed(val requestId: RequestId, val timestamp: MonotonicTime, val type: ResourceType, val errorText: String, val canceled: Boolean? = null, val blockedReason: BlockedReason? = null, val corsErrorStatus: CorsErrorStatus? = null) : NetworkEvent

Fired when HTTP request has failed to load.

Link copied to clipboard
@Serializable
data class LoadingFinished(val requestId: RequestId, val timestamp: MonotonicTime, val encodedDataLength: Double, val shouldReportCorbBlocking: Boolean? = null) : NetworkEvent

Fired when HTTP request has finished loading.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class ReportingApiReportAdded(val report: ReportingApiReport) : NetworkEvent

Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class RequestIntercepted(val interceptionId: InterceptionId, val request: Request, val frameId: FrameId, val resourceType: ResourceType, val isNavigationRequest: Boolean, val isDownload: Boolean? = null, val redirectUrl: String? = null, val authChallenge: AuthChallenge? = null, val responseErrorReason: ErrorReason? = null, val responseStatusCode: Int? = null, val responseHeaders: Headers? = null, val requestId: RequestId? = null) : NetworkEvent

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

Link copied to clipboard
@Serializable
data class RequestServedFromCache(val requestId: RequestId) : NetworkEvent

Fired if request ended up loading from cache.

Link copied to clipboard
@Serializable
data class RequestWillBeSent(val requestId: RequestId, val loaderId: LoaderId, val documentURL: String, val request: Request, val timestamp: MonotonicTime, val wallTime: TimeSinceEpoch, val initiator: Initiator, val redirectHasExtraInfo: Boolean? = null, val redirectResponse: Response? = null, val type: ResourceType? = null, val frameId: FrameId? = null, val hasUserGesture: Boolean? = null) : NetworkEvent

Fired when page is about to send HTTP request.

Link copied to clipboard
@Serializable
data class RequestWillBeSentExtraInfo(val requestId: RequestId, val associatedCookies: List<BlockedCookieWithReason>, val headers: Headers, val connectTiming: ConnectTiming? = null, val clientSecurityState: ClientSecurityState? = null, val siteHasCookieInOtherPartition: Boolean? = null) : NetworkEvent

Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

Link copied to clipboard
@Serializable
data class ResourceChangedPriority(val requestId: RequestId, val newPriority: ResourcePriority, val timestamp: MonotonicTime) : NetworkEvent

Fired when resource loading priority is changed

Link copied to clipboard
@Serializable
data class ResponseReceived(val requestId: RequestId, val loaderId: LoaderId, val timestamp: MonotonicTime, val type: ResourceType, val response: Response, val hasExtraInfo: Boolean? = null, val frameId: FrameId? = null) : NetworkEvent

Fired when HTTP response is available.

Link copied to clipboard
@Serializable
data class ResponseReceivedExtraInfo(val requestId: RequestId, val blockedCookies: List<BlockedSetCookieWithReason>, val headers: Headers, val resourceIPAddressSpace: IPAddressSpace, val statusCode: Int, val headersText: String? = null, val cookiePartitionKey: String? = null, val cookiePartitionKeyOpaque: Boolean? = null) : NetworkEvent

Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.

Link copied to clipboard
@Serializable
data class SignedExchangeReceived(val requestId: RequestId, val info: SignedExchangeInfo) : NetworkEvent

Fired when a signed exchange was received over the network

Link copied to clipboard
@Serializable
data class SubresourceWebBundleInnerResponseError(val innerRequestId: RequestId, val innerRequestURL: String, val errorMessage: String, val bundleRequestId: RequestId? = null) : NetworkEvent

Fired when request for resources within a .wbn file failed.

Link copied to clipboard
@Serializable
data class SubresourceWebBundleInnerResponseParsed(val innerRequestId: RequestId, val innerRequestURL: String, val bundleRequestId: RequestId? = null) : NetworkEvent

Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.

Link copied to clipboard
@Serializable
data class SubresourceWebBundleMetadataError(val requestId: RequestId, val errorMessage: String) : NetworkEvent

Fired once when parsing the .wbn file has failed.

Link copied to clipboard
@Serializable
data class SubresourceWebBundleMetadataReceived(val requestId: RequestId, val urls: List<String>) : NetworkEvent

Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.

Link copied to clipboard
@Serializable
data class TrustTokenOperationDone(val status: TrustTokenOperationDoneStatus, val type: TrustTokenOperationType, val requestId: RequestId, val topLevelOrigin: String? = null, val issuerOrigin: String? = null, val issuedTokenCount: Int? = null) : NetworkEvent

Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.

Link copied to clipboard
@Serializable
data class WebSocketClosed(val requestId: RequestId, val timestamp: MonotonicTime) : NetworkEvent

Fired when WebSocket is closed.

Link copied to clipboard
@Serializable
data class WebSocketCreated(val requestId: RequestId, val url: String, val initiator: Initiator? = null) : NetworkEvent

Fired upon WebSocket creation.

Link copied to clipboard
@Serializable
data class WebSocketFrameError(val requestId: RequestId, val timestamp: MonotonicTime, val errorMessage: String) : NetworkEvent

Fired when WebSocket message error occurs.

Link copied to clipboard
@Serializable
data class WebSocketFrameReceived(val requestId: RequestId, val timestamp: MonotonicTime, val response: WebSocketFrame) : NetworkEvent

Fired when WebSocket message is received.

Link copied to clipboard
@Serializable
data class WebSocketFrameSent(val requestId: RequestId, val timestamp: MonotonicTime, val response: WebSocketFrame) : NetworkEvent

Fired when WebSocket message is sent.

Link copied to clipboard
@Serializable
data class WebSocketHandshakeResponseReceived(val requestId: RequestId, val timestamp: MonotonicTime, val response: WebSocketResponse) : NetworkEvent

Fired when WebSocket handshake response becomes available.

Link copied to clipboard
@Serializable
data class WebSocketWillSendHandshakeRequest(val requestId: RequestId, val timestamp: MonotonicTime, val wallTime: TimeSinceEpoch, val request: WebSocketRequest) : NetworkEvent

Fired when WebSocket is about to initiate handshake.

Link copied to clipboard
@Serializable
data class WebTransportClosed(val transportId: RequestId, val timestamp: MonotonicTime) : NetworkEvent

Fired when WebTransport is disposed.

Link copied to clipboard
@Serializable
data class WebTransportConnectionEstablished(val transportId: RequestId, val timestamp: MonotonicTime) : NetworkEvent

Fired when WebTransport handshake is finished.

Link copied to clipboard
@Serializable
data class WebTransportCreated(val transportId: RequestId, val url: String, val timestamp: MonotonicTime, val initiator: Initiator? = null) : NetworkEvent

Fired upon WebTransport creation.