Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Fetch.FulfillRequestRequest

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Fetch.FulfillRequestRequest
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { FulfillRequestRequest } = Protocol.Fetch;

Properties

requestId: RequestId

An id the client received in requestPaused event.

responseCode: integer

An HTTP response code.

optional
responseHeaders: HeaderEntry[]

Response headers.

optional
binaryResponseHeaders: string

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)

optional
body: string

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)

optional
responsePhrase: string

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