Interface NetworkInterceptorController

Network interceptor API which can be used to intercept network requests and responses.

Remarks


- Request interceptors will be executed in the order they were added.
- InterceptableRequest.respondWith can be called at most once, otherwise an error will be thrown.

interface NetworkInterceptorController {
    addRequestInterceptor(interceptor): void;
    addResponseInterceptor(interceptor): void;
    removeRequestInterceptor(interceptor): void;
    removeResponseInterceptor(interceptor): void;
}

Hierarchy (view full)

  • NetworkInterceptorController

Methods

Generated using TypeDoc