continueResponse

open suspend override fun continueResponse(responseCode: Int?, responsePhrase: String?, responseHeaders: List<Fetch.HeaderEntry>?, binaryResponseHeaders: String?)

Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.

Parameters

responseCode

An HTTP response code. If absent, original response code will be used.

responsePhrase

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

responseHeaders

Response headers. If absent, original response headers will be used.

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)