chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.fetch / FulfillRequestRequest

FulfillRequestRequest

data class FulfillRequestRequest

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

Constructors

<init>

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

FulfillRequestRequest(requestId: RequestId, responseCode: Int, responseHeaders: List<HeaderEntry>? = null, binaryResponseHeaders: String? = null, body: String? = null, responsePhrase: String? = null)

Properties

binaryResponseHeaders

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)

val binaryResponseHeaders: String?

body

A response body. (Encoded as a base64 string when passed over JSON)

val body: String?

requestId

An id the client received in requestPaused event.

val requestId: RequestId

responseCode

An HTTP response code.

val responseCode: Int

responseHeaders

Response headers.

val responseHeaders: List<HeaderEntry>?

responsePhrase

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

val responsePhrase: String?