Loading topic
HttpClient, so this chapter sets up the base they plug into. You will configure HttpClient, make a request, and see where interceptors will later attach.3 min readHttpClient, and basic RxJS (pipe, tap, catchError).2 min readreq and next, and are comfortable with HttpClient and RxJS. It covers how to change a request inside an interceptor.2 min readHttpClient calls, and RxJS basics such as pipe and tap. By the end you can write a functional interceptor and explain what it receives and what it must return.2 min readHttpInterceptorFn that takes req and next. It also assumes you know Angular providers. An interceptor does nothing until you register it with HttpClient.2 min readwithInterceptors. It also assumes you know basic RxJS pipe and tap. Here you learn how the order of the array decides what each interceptor sees.2 min readHttpClient use, and the RxJS operators pipe and tap. You should also have seen a functional interceptor and how withInterceptors registers it.2 min readclone() works, and how to register interceptors with `withInterceptors2 min readwithInterceptors. It also assumes you know the RxJS operators pipe and tap. Earlier chapters changed the outgoing request. Here you work on the other half of the chain, the response coming back.2 min readwithInterceptors, and use pipe, tap and catchError from RxJS. Here you handle failed requests in one place instead of in every subscribe call.2 min readwithInterceptors, and read a request from inside it. You should also be comfortable with inject() and req.clone().2 min readwithInterceptors, and use TestBed with a basic Jasmine or Jest spec. It also assumes you know what inject() does inside an interceptor.2 min readHttpInterceptorFn, register it with withInterceptors, and use inject(). Older Angular code uses a different style, so you will often need to read it, keep it running, or convert it.2 min readcatchError and switchMap. It builds on the authorization header interceptor from earlier in the tutorial.2 min readwithInterceptors, that you know clone(), and that you are comfortable with pipe, tap and catchError. It collects the mistakes that cost the most debugging time, and the places where interceptors do not apply.2 min read