UseAddRequestInterceptor
katanakit-js / useAddRequestInterceptor
Function: useAddRequestInterceptor()
Section titled “Function: useAddRequestInterceptor()”function useAddRequestInterceptor(interceptor): () => void;Defined in: core/services/http.service.ts:577
Registers a request interceptor on the singleton HTTP client.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
interceptor |
RequestInterceptor |
The function to run before the request is sent. |
Returns
Section titled “Returns”A function that unregisters the interceptor.
() => void