Skip to main content
Module

x/puppeteer_plus/mod.ts>HTTPResponse

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
class HTTPResponse
Re-export
import { HTTPResponse } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";

The HTTPResponse class represents responses which are received by the Page class.

Constructors

new
HTTPResponse(
client: CDPSession,
request: HTTPRequest,
responsePayload: Protocol.Network.Response,
extraInfo: Protocol.Network.ResponseReceivedExtraInfoEvent | null,
)

Methods

_resolveBody(err: Error | null): void
buffer(): Promise<Buffer>
frame(): Frame | null
fromCache(): boolean
headers(): Record<string, string>
json(): Promise<any>
ok(): boolean
remoteAddress(): RemoteAddress
request(): HTTPRequest
securityDetails(): SecurityDetails | null
status(): number
statusText(): string
text(): Promise<string>
timing(): Protocol.Network.ResourceTiming | null
url(): string