Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Network.Response
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.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.

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.

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.