EmulateNetworkConditionsRequest

@Serializable
data class EmulateNetworkConditionsRequest(val offline: Boolean, val latency: Double, val downloadThroughput: Double, val uploadThroughput: Double, val connectionType: ConnectionType? = null)(source)

Request object containing input parameters for the NetworkDomain.emulateNetworkConditions command.

Constructors

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

Types

Link copied to clipboard
class Builder(val offline: Boolean, val latency: Double, val downloadThroughput: Double, val uploadThroughput: Double)

Properties

Link copied to clipboard

Connection type if known.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

True to emulate internet disconnection.

Link copied to clipboard

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