Version: 2.69.0

ResponseInterceptor

THEOplayer > ResponseInterceptor

ResponseInterceptor type

The ResponseInterceptor is a function that accepts a Response object as its argument and can return a promise. If it returns a promise then the response waits until the promise is resolved.

Signature:
export declare type ResponseInterceptor = (response: InterceptableResponse) => (void | PromiseLike<void>);