Skip to main content
Go to Latest
class NetworkManager
extends EventEmitter
Re-export
import { NetworkManager } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";

Constructors

new
NetworkManager(
client: CDPSession,
ignoreHTTPSErrors: boolean,
frameManager: FrameManager,
)

Properties

_attemptedAuthentications: Set<string>
_client: CDPSession
optional
_credentials: Credentials
_emulatedNetworkConditions: InternalNetworkConditions
_extraHTTPHeaders: Record<string, string>
_frameManager: FrameManager
_ignoreHTTPSErrors: boolean
_networkEventManager: NetworkEventManager
_protocolRequestInterceptionEnabled: boolean
_userCacheDisabled: boolean
_userRequestInterceptionEnabled: boolean

Methods

_cacheDisabled(): boolean
_forgetRequest(request: HTTPRequest, events: boolean): void

CDP may send a Fetch.requestPaused without or before a Network.requestWillBeSent

CDP may send multiple Fetch.requestPaused for the same Network.requestWillBeSent.

_updateNetworkConditions(): Promise<void>
authenticate(credentials?: Credentials): Promise<void>
emulateNetworkConditions(networkConditions: NetworkConditions | null): Promise<void>
extraHTTPHeaders(): Record<string, string>
initialize(): Promise<void>
setCacheEnabled(enabled: boolean): Promise<void>
setExtraHTTPHeaders(extraHTTPHeaders: Record<string, string>): Promise<void>
setOfflineMode(value: boolean): Promise<void>
setRequestInterception(value: boolean): Promise<void>
setUserAgent(userAgent: string, userAgentMetadata?: Protocol.Emulation.UserAgentMetadata): Promise<void>