Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Network.Response
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { Response } = default.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.