Angular · Senior · Question 53 of 75

In what order do functional interceptors process a request and its response?

provideHttpClient(withInterceptors([authInterceptor, loggingInterceptor]))

Explanation

Each interceptor wraps the next one. Put auth before logging if the log should include the final headers, and retry logic close to the backend.

Further reading

Problem with a question

Angular · Senior · question 53

Test yourself

Take the Angular · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz