Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AuthChallenge(val source: AuthChallengeSource? = null, val origin: String, val scheme: String, val realm: String)

Authorization challenge for HTTP status code 401 or 407.

Link copied to clipboard
@Serializable
data class AuthChallengeResponse(val response: AuthChallengeResponseResponse, val username: String? = null, val password: String? = null)

Response to an AuthChallenge.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class ContinueRequestRequest(val requestId: RequestId, val url: String? = null, val method: String? = null, val postData: String? = null, val headers: List<HeaderEntry>? = null, val interceptResponse: Boolean? = null)

Request object containing input parameters for the FetchDomain.continueRequest command.

Link copied to clipboard
@Serializable
object ContinueRequestResponse

A dummy response object for the FetchDomain.continueRequest command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ContinueResponseRequest(val requestId: RequestId, val responseCode: Int? = null, val responsePhrase: String? = null, val responseHeaders: List<HeaderEntry>? = null, val binaryResponseHeaders: String? = null)

Request object containing input parameters for the FetchDomain.continueResponse command.

Link copied to clipboard
@Serializable
object ContinueResponseResponse

A dummy response object for the FetchDomain.continueResponse command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ContinueWithAuthRequest(val requestId: RequestId, val authChallengeResponse: AuthChallengeResponse)

Request object containing input parameters for the FetchDomain.continueWithAuth command.

Link copied to clipboard
@Serializable
object ContinueWithAuthResponse

A dummy response object for the FetchDomain.continueWithAuth command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the FetchDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class EnableRequest(val patterns: List<RequestPattern>? = null, val handleAuthRequests: Boolean? = null)

Request object containing input parameters for the FetchDomain.enable command.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the FetchDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class FailRequestRequest(val requestId: RequestId, val errorReason: ErrorReason)

Request object containing input parameters for the FetchDomain.failRequest command.

Link copied to clipboard
@Serializable
object FailRequestResponse

A dummy response object for the FetchDomain.failRequest command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A domain for letting clients substitute browser's network layer with client code.

Link copied to clipboard
@Serializable
data class FulfillRequestRequest(val requestId: RequestId, val responseCode: Int, val responseHeaders: List<HeaderEntry>? = null, val binaryResponseHeaders: String? = null, val body: String? = null, val responsePhrase: String? = null)

Request object containing input parameters for the FetchDomain.fulfillRequest command.

Link copied to clipboard
@Serializable
object FulfillRequestResponse

A dummy response object for the FetchDomain.fulfillRequest command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

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

Request object containing input parameters for the FetchDomain.getResponseBody command.

Link copied to clipboard
@Serializable
data class GetResponseBodyResponse(val body: String, val base64Encoded: Boolean)

Response type for the FetchDomain.getResponseBody command.

Link copied to clipboard
@Serializable
data class HeaderEntry(val name: String, val value: String)

Response HTTP header entry

Link copied to clipboard
typealias RequestId = String

Unique request identifier.

Official doc

Link copied to clipboard
@Serializable
data class RequestPattern(val urlPattern: String? = null, val resourceType: ResourceType? = null, val requestStage: RequestStage? = null)
Link copied to clipboard
@Serializable
enum RequestStage : Enum<RequestStage>

Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received).

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

Request object containing input parameters for the FetchDomain.takeResponseBodyAsStream command.

Link copied to clipboard
@Serializable
data class TakeResponseBodyAsStreamResponse(val stream: StreamHandle)

Response type for the FetchDomain.takeResponseBodyAsStream command.