Class: FetchInterceptor

FetchInterceptor()

The FetchInterceptor class

Constructor

new FetchInterceptor()

Recognize global environment and attach fetch
Source:

Members

hooks

Whitelist hooks
Source:

Methods

(static) register(hooks) → {FetchInterceptor}

Register intercept hooks & return an interceptor instance
Parameters:
Name Type Description
hooks object The intercept hooks
Source:
Returns:
An interceptor object
Type
FetchInterceptor

hijack()

Hijack global fetch and insert registered hooks if present
Source:

unregister()

Reset fetch and unregister intercept hooks
Source: