RequestInterceptedParameter

@Serializable
data class RequestInterceptedParameter(val interceptionId: String, val request: Network.Request, val frameId: String, val resourceType: Network.ResourceType, val isNavigationRequest: Boolean, val isDownload: Boolean? = null, val redirectUrl: String? = null, val authChallenge: Network.AuthChallenge? = null, val responseErrorReason: Network.ErrorReason? = null, val responseStatusCode: Int? = null, val responseHeaders: Map<String, JsonElement>? = null, val requestId: String? = null)

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

Constructors

Link copied to clipboard
constructor(interceptionId: String, request: Network.Request, frameId: String, resourceType: Network.ResourceType, isNavigationRequest: Boolean, isDownload: Boolean? = null, redirectUrl: String? = null, authChallenge: Network.AuthChallenge? = null, responseErrorReason: Network.ErrorReason? = null, responseStatusCode: Int? = null, responseHeaders: Map<String, JsonElement>? = null, requestId: String? = null)

Properties

Link copied to clipboard

Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.

Link copied to clipboard

The id of the frame that initiated the request.

Link copied to clipboard

Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.

Link copied to clipboard
val isDownload: Boolean? = null

Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).

Link copied to clipboard

Whether this is a navigation request, which can abort the navigation completely.

Link copied to clipboard
val redirectUrl: String? = null

Redirect location, only sent if a redirect was intercepted.

Link copied to clipboard
Link copied to clipboard
val requestId: String? = null

If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.

Link copied to clipboard

How the requested resource will be used.

Link copied to clipboard

Response error if intercepted at response stage or if redirect occurred while intercepting request.

Link copied to clipboard
val responseHeaders: Map<String, JsonElement>? = null

Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.

Link copied to clipboard
val responseStatusCode: Int? = null

Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.