EmulateNetworkConditionsRequest

data class EmulateNetworkConditionsRequest(offline: Boolean, latency: Double, downloadThroughput: Double, uploadThroughput: Double, connectionType: ConnectionType?)

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

Activates emulation of network conditions.

See also

Constructors

EmulateNetworkConditionsRequest
Link copied to clipboard
fun EmulateNetworkConditionsRequest(offline: Boolean, latency: Double, downloadThroughput: Double, uploadThroughput: Double, connectionType: ConnectionType? = null)

Properties

connectionType
Link copied to clipboard
val connectionType: ConnectionType? = null
Connection type if known.
downloadThroughput
Link copied to clipboard
val downloadThroughput: Double
Maximal aggregated download throughput (bytes/sec).
latency
Link copied to clipboard
val latency: Double
Minimum latency from request sent to response headers received (ms).
offline
Link copied to clipboard
val offline: Boolean
True to emulate internet disconnection.
uploadThroughput
Link copied to clipboard
val uploadThroughput: Double
Maximal aggregated upload throughput (bytes/sec).

Sources

jvm source
Link copied to clipboard