THEOplayer > NetworkInterceptorController
Network interceptor API which can be used to intercept network requests and responses.Signature:
export interface NetworkInterceptorController
Add a request interceptor.
Add a response interceptor.
Remove a request interceptor.
Remove a response interceptor.
- Request interceptors will be executed in the order they were added.
- [InterceptableRequest.respondWith()](/docs/api-reference/theoplayer-interceptablerequest-respondwith) can be called at most once, otherwise an error will be thrown.