FetchEvent

@Serializable
sealed class FetchEvent(source)

Inheritors

Types

Link copied to clipboard
@Serializable
data class AuthRequired(val requestId: RequestId, val request: Request, val frameId: FrameId, val resourceType: ResourceType, val authChallenge: AuthChallenge) : FetchEvent

Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.

Link copied to clipboard
@Serializable
data class RequestPaused(val requestId: RequestId, val request: Request, val frameId: FrameId, val resourceType: ResourceType, val responseErrorReason: ErrorReason? = null, val responseStatusCode: Int? = null, val responseStatusText: String? = null, val responseHeaders: List<HeaderEntry>? = null, val networkId: RequestId? = null, val redirectedRequestId: RequestId? = null) : FetchEvent

Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.