Interface InterceptorsAPI

interface InterceptorsAPI {
    addInterceptor: (interceptor: RestInterceptor) => RestInterceptor;
    getInterceptors: () => RestInterceptor[];
    removeInterceptor: (interceptor: RestInterceptor) => null | RestInterceptor;
}
Index

Properties

addInterceptor: (interceptor: RestInterceptor) => RestInterceptor

Adds an interceptor to the global interceptor stack Returns the newly added interceptor

Type declaration

the interceptor to add

the newly added interceptor

getInterceptors: () => RestInterceptor[]

Gets all registered interceptors

Type declaration

removeInterceptor: (interceptor: RestInterceptor) => null | RestInterceptor

Removes an interceptor from the global interceptor stack

Type declaration

the interceptor remove