5 min read
•Question 16 of 46mediumHTTP Interceptors
Intercepting HTTP requests and responses.
What are Interceptors?
Interceptors allow you to intercept HTTP requests/responses to transform or handle them globally.
Common Use Cases
- Add authentication headers
- Handle errors globally
- Show loading indicators
- Cache responses
- Logging