Angular · Senior · Question 53 of 75
In what order do functional interceptors process a request and its response?
provideHttpClient(withInterceptors([authInterceptor, loggingInterceptor]))- ✓Correct answer: Requests pass through them in the listed order; responses come back in reverse order
- 2Both requests and responses go in the listed order
- 3The order is random
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.