Skip to content
0

katanakit-js / useAddRequestInterceptor

Function: useAddRequestInterceptor() ​

ts
function useAddRequestInterceptor(interceptor): () => void;

Defined in: src/core/services/http.service.ts:585

Registers a request interceptor on the singleton HTTP client.

Parameters ​

ParameterTypeDescription
interceptorRequestInterceptorThe function to run before the request is sent.

Returns ​

A function that unregisters the interceptor.

() => void

Released under the MIT License.