I wonder if response that comes through this interceptor can stuck here if it doesn't match filter? Is it passed forward or do I need to make alternative case with next.handle?
intercept(httpRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
return next.handle(httpRequest).pipe(
filter((event) => event instanceof HttpResponse && event.body && event.body.response),
map((event: any) => event.clone({ body: event.body.response }))
);
}