Skip to content

NetworkInstrument

Extends

  • BaseInstrument

Constructors

new NetworkInstrument(store, init)

new NetworkInstrument(store, init): NetworkInstrument

Parameters

store: Store

init: NetworkInstrumentInit= {}

Returns

NetworkInstrument

Overrides

BaseInstrument.constructor

Source

inspector/lib/instruments/network.ts:35

Properties

active

active: boolean = false

Inherited from

BaseInstrument.active

Source

inspector/lib/instruments/base.ts:6


disabled

disabled: boolean = false

Inherited from

BaseInstrument.disabled

Source

inspector/lib/instruments/base.ts:8


name

name: InspectorInstruments

Inherited from

BaseInstrument.name

Source

inspector/lib/instruments/base.ts:11


store

store: Store

Inherited from

BaseInstrument.store

Source

inspector/lib/instruments/base.ts:12

Accessors

fetch

get fetch(): (input, init?) => Promise<Response>

Returns

Function

Parameters

input: RequestInfo | URL

init?: RequestInit

Returns

Promise<Response>

Source

inspector/lib/instruments/network.ts:69

Methods

activate()

activate(): boolean

Returns

boolean

Overrides

BaseInstrument.activate

Source

inspector/lib/instruments/network.ts:73


createFetch()

createFetch(fetchFn): (input, init?) => Promise<Response>

Parameters

fetchFn: (input, init?) => Promise<Response>(input, init?) => Promise<Response>= undefined

Returns

Function

Parameters

input: RequestInfo | URL

init?: RequestInit

Returns

Promise<Response>

Source

inspector/lib/instruments/network.ts:196


deactivate()

deactivate(): boolean

Returns

boolean

Overrides

BaseInstrument.deactivate

Source

inspector/lib/instruments/network.ts:83


getEntryLabel()

getEntryLabel(value): string

Parameters

value: NetworkRequest

Returns

string

Overrides

BaseInstrument.getEntryLabel

Source

inspector/lib/instruments/network.ts:61


getEntryTime()

getEntryTime(_value): number

Parameters

\_value: any

Returns

number

Inherited from

BaseInstrument.getEntryTime

Source

inspector/lib/instruments/base.ts:26


interceptFetch()

interceptFetch(): void

Returns

void

Source

inspector/lib/instruments/network.ts:256


interceptHttp()

interceptHttp(): void

Returns

void

Source

inspector/lib/instruments/network.ts:260


push()

push(value, label, time): Promise<void>

Parameters

value: NetworkRequest

label: string= undefined

time: number= undefined

Returns

Promise<void>

Overrides

BaseInstrument.push

Source

inspector/lib/instruments/network.ts:93


putToStore()

putToStore(time, label, value): Promise<void>

Parameters

time: number

label: string

value: string

Returns

Promise<void>

Overrides

BaseInstrument.putToStore

Source

inspector/lib/instruments/network.ts:48


query()

query(query): Promise<StoreQueryResult>

Parameters

query: Query

Returns

Promise<StoreQueryResult>

Inherited from

BaseInstrument.query

Source

inspector/lib/instruments/base.ts:58


queryFromStore()

queryFromStore(query): Promise<StoreQueryResult>

Parameters

query: Query

Returns

Promise<StoreQueryResult>

Overrides

BaseInstrument.queryFromStore

Source

inspector/lib/instruments/network.ts:52


restoreFetch()

restoreFetch(): void

Returns

void

Source

inspector/lib/instruments/network.ts:322


restoreHttp()

restoreHttp(): void

Returns

void

Source

inspector/lib/instruments/network.ts:326


serializeValue()

serializeValue(value): string

Parameters

value: NetworkRequest

Returns

string

Overrides

BaseInstrument.serializeValue

Source

inspector/lib/instruments/network.ts:65


subscribe()

subscribe(fn, _options?): () => void

Parameters

fn: (time, label, value) => void

\_options?: unknown

Returns

Function

Returns

void

Inherited from

BaseInstrument.subscribe

Source

inspector/lib/instruments/base.ts:75


Generated using TypeDoc and typedoc-plugin-markdown.