Class-based HTTP Interceptors
Explain the classic HttpInterceptor interface for intercepting and transforming outgoing requests and incoming responses.
The class-based HttpInterceptor interface was Angular's original mechanism for intercepting every HTTP request made through HttpClient — attaching auth tokens, logging, handling errors globally, retrying failed requests — without every individual service call needing to remember to do that work itself. Interviewers ask about this because it's a classic real-world cross-cutting concern, and it demonstrates whether you understand Angular's request pipeline as a chain of responsibility.
It's like airport security checkpoints in sequence — each checkpoint (interceptor) can inspect and even relabel your luggage (clone the request) before passing you to the next checkpoint, and on the way back, each checkpoint gets another look at what's coming through in reverse order.