Response

@Serializable
data class Response(val url: String, val status: Int, val statusText: String, val headers: Map<String, JsonElement>, val headersText: String? = null, val mimeType: String, val charset: String, val requestHeaders: Map<String, JsonElement>? = null, val requestHeadersText: String? = null, val connectionReused: Boolean, val connectionId: Double, val remoteIPAddress: String? = null, val remotePort: Int? = null, val fromDiskCache: Boolean? = null, val fromServiceWorker: Boolean? = null, val fromPrefetchCache: Boolean? = null, val fromEarlyHints: Boolean? = null, val serviceWorkerRouterInfo: Network.ServiceWorkerRouterInfo? = null, val encodedDataLength: Double, val timing: Network.ResourceTiming? = null, val serviceWorkerResponseSource: Network.ServiceWorkerResponseSource? = null, val responseTime: Double? = null, val cacheStorageCacheName: String? = null, val protocol: String? = null, val alternateProtocolUsage: Network.AlternateProtocolUsage? = null, val securityState: Security.SecurityState, val securityDetails: Network.SecurityDetails? = null)

HTTP response data.

Constructors

Link copied to clipboard
constructor(url: String, status: Int, statusText: String, headers: Map<String, JsonElement>, headersText: String? = null, mimeType: String, charset: String, requestHeaders: Map<String, JsonElement>? = null, requestHeadersText: String? = null, connectionReused: Boolean, connectionId: Double, remoteIPAddress: String? = null, remotePort: Int? = null, fromDiskCache: Boolean? = null, fromServiceWorker: Boolean? = null, fromPrefetchCache: Boolean? = null, fromEarlyHints: Boolean? = null, serviceWorkerRouterInfo: Network.ServiceWorkerRouterInfo? = null, encodedDataLength: Double, timing: Network.ResourceTiming? = null, serviceWorkerResponseSource: Network.ServiceWorkerResponseSource? = null, responseTime: Double? = null, cacheStorageCacheName: String? = null, protocol: String? = null, alternateProtocolUsage: Network.AlternateProtocolUsage? = null, securityState: Security.SecurityState, securityDetails: Network.SecurityDetails? = null)

Properties

Link copied to clipboard

The reason why Chrome uses a specific transport protocol for HTTP semantics.

Link copied to clipboard

Cache Storage Cache Name.

Link copied to clipboard

Resource charset as determined by the browser (if applicable).

Link copied to clipboard

Physical connection id that was actually used for this request.

Link copied to clipboard

Specifies whether physical connection was actually reused for this request.

Link copied to clipboard

Total number of bytes received for this request so far.

Link copied to clipboard
val fromDiskCache: Boolean? = null

Specifies that the request was served from the disk cache.

Link copied to clipboard
val fromEarlyHints: Boolean? = null

Specifies that the request was served from the prefetch cache.

Link copied to clipboard

Specifies that the request was served from the prefetch cache.

Link copied to clipboard

Specifies that the request was served from the ServiceWorker.

Link copied to clipboard
val headers: Map<String, JsonElement>

HTTP response headers.

Link copied to clipboard
val headersText: String? = null

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

Link copied to clipboard

Resource mimeType as determined by the browser.

Link copied to clipboard
val protocol: String? = null

Protocol used to fetch this request.

Link copied to clipboard
val remoteIPAddress: String? = null

Remote IP address.

Link copied to clipboard
val remotePort: Int? = null

Remote port.

Link copied to clipboard
val requestHeaders: Map<String, JsonElement>? = null

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

Link copied to clipboard

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

Link copied to clipboard
val responseTime: Double? = null

The time at which the returned response was generated.

Link copied to clipboard

Security details for the request.

Link copied to clipboard

Security state of the request resource.

Link copied to clipboard

Response source of response from ServiceWorker.

Link copied to clipboard

Information about how ServiceWorker Static Router API was used. If this field is set with matchedSourceType field, a matching rule is found. If this field is set without matchedSource, no matching rule is found. Otherwise, the API is not used.

Link copied to clipboard
val status: Int

HTTP response status code.

Link copied to clipboard

HTTP response status text.

Link copied to clipboard

Timing information for the given request.

Link copied to clipboard
val url: String

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