Version: 2.69.0

RequestInterceptor

THEOplayer > RequestInterceptor

RequestInterceptor type

The RequestInterceptor is a function that accepts a Request object as its argument and can return a promise. If it returns a promise then the request waits until the promise is resolved.

Signature:
export declare type RequestInterceptor = (request: InterceptableRequest) => (void | PromiseLike<void>);