class NetworkManager
extends EventEmitter
Re-export
import { NetworkManager } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Constructors
Properties
_client: CDPSession
optional
_credentials: Credentials_frameManager: FrameManager
_requestIdToRequest: Map<string, HTTPRequest>
_requestIdToRequestWillBeSentEvent: Map<string, Protocol.Network.RequestWillBeSentEvent>
Methods
_handleRequestRedirect(request: HTTPRequest, responsePayload: Protocol.Network.Response): void
_onAuthRequired(event: Protocol.Fetch.AuthRequiredEvent): void
_onLoadingFailed(event: Protocol.Network.LoadingFailedEvent): void
_onLoadingFinished(event: Protocol.Network.LoadingFinishedEvent): void
_onRequest(event: Protocol.Network.RequestWillBeSentEvent, interceptionId?: string): void
_onRequestPaused(event: Protocol.Fetch.RequestPausedEvent): void
_onRequestWillBeSent(event: Protocol.Network.RequestWillBeSentEvent): void
_onResponseReceived(event: Protocol.Network.ResponseReceivedEvent): void
_updateProtocolCacheDisabled(): Promise<void>
_updateProtocolRequestInterception(): Promise<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>