Angular 12: intercepting requests and responses

🕵️‍♂️ How to use Angular interceptor to control requests and incoming responses?

When the client application handles the HTTP requests and responses, there is the possibility to customize them by :

1- adding headers to all requests (for example, authorization token, content type)
2- by logging (if we want to log the entire request/ response )
3- caching.