🕵️‍♂️ 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.

The power of interceptors centralizes all the logic that we want to implement in one service or class to manipulate multiple requests and responses and avoid working on each request individually.

Photo by Scott Graham on Unsplash

Why Care About Internet Standards?

Standardization has allowed us to achieve interoperability. Different organizations and vendors can develop hardware and software to be connected to the Internet. Unless they agree on a protocol, their hardware and software would not be able to talk to each other. Standardization is all interested stakeholders sitting together, debating, and agreeing on a protocol or design.

Also, it’s important to know what’s out there, who designed what, and why.

Also, you’d know where to submit your ideas in case you come up with a better design for any of the protocols we’re going to study.

What Is an RFC?

The ’50s: The Cold War

The birth of the Internet can be traced back to the middle of the last century.

In 1957, the Soviet Union successfully launched Sputnik I. In response, the U.S. government created ARPA (Advanced Research Projects Agency), which was responsible for developing emerging technologies which is part of the United States Department of Defense because both nations were in the midst of a cold war.

The ‘60s-’70s: ARPANET

  • In 1969, a communication network for the department of defense called ARPANET was established. Still, it needed to have a way for information to allow computers to talk to each other and exchange across the entire…

Achraf Housni

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store