mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
3.4 KiB
3.4 KiB
Home > puppeteer > Protocol > Network > Response
Protocol.Network.Response interface
HTTP response data.
Signature:
export interface Response
Properties
Property | Type | Description |
---|---|---|
connectionId | number | Physical connection id that was actually used for this request. |
connectionReused | boolean | Specifies whether physical connection was actually reused for this request. |
encodedDataLength | number | Total number of bytes received for this request so far. |
fromDiskCache | boolean | Specifies that the request was served from the disk cache. |
fromPrefetchCache | boolean | Specifies that the request was served from the prefetch cache. |
fromServiceWorker | boolean | Specifies that the request was served from the ServiceWorker. |
headers | Headers | HTTP response headers. |
headersText | string | HTTP response headers text. |
mimeType | string | Resource mimeType as determined by the browser. |
protocol | string | Protocol used to fetch this request. |
remoteIPAddress | string | Remote IP address. |
remotePort | integer | Remote port. |
requestHeaders | Headers | Refined HTTP request headers that were actually transmitted over the network. |
requestHeadersText | string | HTTP request headers text. |
securityDetails | SecurityDetails | Security details for the request. |
securityState | Security.SecurityState | Security state of the request resource. |
status | integer | HTTP response status code. |
statusText | string | HTTP response status text. |
timing | ResourceTiming | Timing information for the given request. |
url | string | Response URL. This URL can be different from CachedResource.url in case of redirect. |