pl.wendigo.chrome.api.network / EmulateNetworkConditionsRequest

EmulateNetworkConditionsRequest

data class EmulateNetworkConditionsRequest (source)

Represents request frame that can be used with Network#emulateNetworkConditions operation call.

Activates emulation of network conditions.

Link
Network#emulateNetworkConditions method documentation.

See Also

NetworkOperations.emulateNetworkConditions

Constructors

<init>

EmulateNetworkConditionsRequest(offline: Boolean, latency: Double, downloadThroughput: Double, uploadThroughput: Double, connectionType: ConnectionType? = null)

Represents request frame that can be used with Network#emulateNetworkConditions operation call.

Properties

connectionType

val connectionType: ConnectionType?

Connection type if known.

downloadThroughput

val downloadThroughput: Double

Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.

latency

val latency: Double

Minimum latency from request sent to response headers received (ms).

offline

val offline: Boolean

True to emulate internet disconnection.

uploadThroughput

val uploadThroughput: Double

Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.