Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Network.Response

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

HTTP response data.

Properties

url: string

Response URL. This URL can be different from CachedResource.url in case of redirect.

status: integer

HTTP response status code.

statusText: string

HTTP response status text.

headers: Headers

HTTP response headers.

optional
headersText: string

HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.

mimeType: string

Resource mimeType as determined by the browser.

optional
requestHeaders: Headers

Refined HTTP request headers that were actually transmitted over the network.

optional
requestHeadersText: string

HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.

connectionReused: boolean

Specifies whether physical connection was actually reused for this request.

connectionId: number

Physical connection id that was actually used for this request.

optional
remoteIPAddress: string

Remote IP address.

optional
remotePort: integer

Remote port.

optional
fromDiskCache: boolean

Specifies that the request was served from the disk cache.

optional
fromServiceWorker: boolean

Specifies that the request was served from the ServiceWorker.

optional
fromPrefetchCache: boolean

Specifies that the request was served from the prefetch cache.

encodedDataLength: number

Total number of bytes received for this request so far.

optional
timing: ResourceTiming

Timing information for the given request.

optional
serviceWorkerResponseSource: ServiceWorkerResponseSource

Response source of response from ServiceWorker.

optional
responseTime: TimeSinceEpoch

The time at which the returned response was generated.

optional
cacheStorageCacheName: string

Cache Storage Cache Name.

optional
protocol: string

Protocol used to fetch this request.

securityState: Security.SecurityState

Security state of the request resource.

optional
securityDetails: SecurityDetails

Security details for the request.