FulfillRequestParameter

@Serializable
data class FulfillRequestParameter(val requestId: String, val responseCode: Int, val responseHeaders: List<Fetch.HeaderEntry>? = null, val binaryResponseHeaders: String? = null, val body: String? = null, val responsePhrase: String? = null)

Constructors

Link copied to clipboard
constructor(requestId: String, responseCode: Int, responseHeaders: List<Fetch.HeaderEntry>? = null, binaryResponseHeaders: String? = null, body: String? = null, responsePhrase: String? = null)

Properties

Link copied to clipboard

Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)

Link copied to clipboard
val body: String? = null

A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. (Encoded as a base64 string when passed over JSON)

Link copied to clipboard

An id the client received in requestPaused event.

Link copied to clipboard

An HTTP response code.

Link copied to clipboard

Response headers.

Link copied to clipboard
val responsePhrase: String? = null

A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.