Core
InterceptorFn
HTTP interceptor function: may inspect or modify the request, then call next.
@defjs/core · Type
Signature
type InterceptorFn = ( req: HttpRequest, next: HttpInterceptorNext, ) => Promise<HttpResponse<unknown>>;
Call next(req) or short-circuit with makeResponse. Wrap it with
createHttpInterceptor to register it.
Parameters
Prop
Type
req HttpRequestnext HttpInterceptorNext