Skip to main content
Deno 2 is finally here 🎉️
Learn more
interface Protocol.Network.EmulateNetworkConditionsRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { EmulateNetworkConditionsRequest } = Protocol.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.