Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Network.EmulateNetworkConditionsRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { EmulateNetworkConditionsRequest } = default.Network;

Properties

offline: boolean

True to emulate internet disconnection.

latency: number

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

downloadThroughput: number

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

uploadThroughput: number

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

optional
connectionType: ConnectionType

Connection type if known.