import { HTTPResponse } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
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
_parseStatusTextFromExtrInfo(extraInfo: Protocol.Network.ResponseReceivedExtraInfoEvent | null): string | undefined
_resolveBody(err: Error | null): void
arrayBuffer(): Promise<ArrayBuffer>
fromCache(): boolean
fromServiceWorker(): boolean
headers(): Record<string, string>
json(): Promise<any>
ok(): boolean
securityDetails(): SecurityDetails | null
status(): number
statusText(): string
text(): Promise<string>
timing(): Protocol.Network.ResourceTiming | null
url(): string