FulfillRequestRequest

@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)(source)

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

Constructors

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

Types

Link copied to clipboard
class Builder(val requestId: RequestId, val responseCode: Int)

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.