RequestPausedParameter

@Serializable
data class RequestPausedParameter(val requestId: String, val request: Network.Request, val frameId: String, val resourceType: Network.ResourceType, val responseErrorReason: Network.ErrorReason? = null, val responseStatusCode: Int? = null, val responseStatusText: String? = null, val responseHeaders: List<Fetch.HeaderEntry>? = null, val networkId: String? = null, val redirectedRequestId: String? = null)

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. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.

Constructors

Link copied to clipboard
constructor(requestId: String, request: Network.Request, frameId: String, resourceType: Network.ResourceType, responseErrorReason: Network.ErrorReason? = null, responseStatusCode: Int? = null, responseStatusText: String? = null, responseHeaders: List<Fetch.HeaderEntry>? = null, networkId: String? = null, redirectedRequestId: String? = null)

Properties

Link copied to clipboard

The id of the frame that initiated the request.

Link copied to clipboard
val networkId: String? = null

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

Link copied to clipboard

If the request is due to a redirect response from the server, the id of the request that has caused the redirect.

Link copied to clipboard

The details of the request.

Link copied to clipboard

Each request the page makes will have a unique id.

Link copied to clipboard

How the requested resource will be used.

Link copied to clipboard

Response error if intercepted at response stage.

Link copied to clipboard

Response headers if intercepted at the response stage.

Link copied to clipboard
val responseStatusCode: Int? = null

Response code if intercepted at response stage.

Link copied to clipboard

Response status text if intercepted at response stage.