Core
HttpInterceptorNext
Continuation that runs the rest of the HTTP interceptor chain, or the handler.
@defjs/core · Type
Signature
type HttpInterceptorNext = ( req: HttpRequest, ) => Promise<HttpResponse<unknown>>;
next(req) only goes inward: the interceptors registered after this one, then
the Fetch handler. It is not a new operation call from outside the chain.
Call next again for a safe
replay (for example one 401 refresh) from the same interceptor; outer layers
do not run a second time. Once the chain has settled, calling next rejects
with HTTP interceptor next() cannot be called after the chain has settled.
Parameters
Prop
Type
req HttpRequest