Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>NetworkManager

Headless Chrome Deno API
Latest
class NetworkManager
extends EventEmitter
Re-export
import { NetworkManager } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Constructors

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

Properties

_attemptedAuthentications: Set<string>
_client: CDPSession
optional
_credentials: Credentials
_extraHTTPHeaders: Record<string, string>
_frameManager: FrameManager
_ignoreHTTPSErrors: boolean
_offline: boolean
_protocolRequestInterceptionEnabled: boolean
_requestIdToInterceptionId: Map<string, string>
_requestIdToRequest: Map<string, HTTPRequest>
_requestIdToRequestWillBeSentEvent: Map<string, Protocol.Network.RequestWillBeSentEvent>
_userCacheDisabled: boolean
_userRequestInterceptionEnabled: boolean

Methods

_onRequest(event: Protocol.Network.RequestWillBeSentEvent, interceptionId?: string): void
authenticate(credentials?: Credentials): 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): Promise<void>