pl.wendigo.chrome.api.network / Response

Response

data class Response (source)

HTTP response data.

Link
Network#Response type documentation.

Constructors

<init>

Response(url: String, status: Int, statusText: String, headers: Headers, headersText: String? = null, mimeType: String, requestHeaders: Headers? = null, requestHeadersText: String? = null, connectionReused: Boolean, connectionId: Double, remoteIPAddress: String? = null, remotePort: Int? = null, fromDiskCache: Boolean? = null, fromServiceWorker: Boolean? = null, fromPrefetchCache: Boolean? = null, encodedDataLength: Double, timing: ResourceTiming? = null, protocol: String? = null, securityState: SecurityState, securityDetails: SecurityDetails? = null)

HTTP response data.

Properties

connectionId

val connectionId: Double

Physical connection id that was actually used for this request.

connectionReused

val connectionReused: Boolean

Specifies whether physical connection was actually reused for this request.

encodedDataLength

val encodedDataLength: Double

Total number of bytes received for this request so far.

fromDiskCache

val fromDiskCache: Boolean?

Specifies that the request was served from the disk cache.

fromPrefetchCache

val fromPrefetchCache: Boolean?

Specifies that the request was served from the prefetch cache.

fromServiceWorker

val fromServiceWorker: Boolean?

Specifies that the request was served from the ServiceWorker.

headers

val headers: Headers

HTTP response headers.

headersText

val headersText: String?

HTTP response headers text.

mimeType

val mimeType: String

Resource mimeType as determined by the browser.

protocol

val protocol: String?

Protocol used to fetch this request.

remoteIPAddress

val remoteIPAddress: String?

Remote IP address.

remotePort

val remotePort: Int?

Remote port.

requestHeaders

val requestHeaders: Headers?

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

requestHeadersText

val requestHeadersText: String?

HTTP request headers text.

securityDetails

val securityDetails: SecurityDetails?

Security details for the request.

securityState

val securityState: SecurityState

Security state of the request resource.

status

val status: Int

HTTP response status code.

statusText

val statusText: String

HTTP response status text.

timing

val timing: ResourceTiming?

Timing information for the given request.

url

val url: String

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