HTTP

Using HTTP Interceptors in Modify the Headers in Angular
Angular

Understanding HTTP Interceptors in Angular

The Angular HTTP Interceptor is introduced along with the new HTTPClientModule. The Interceptor helps us to modify the HTTP Request by intercepting it before the Request is sent to the back end. The Interceptor can be useful for adding custom headers to the outgoing request, logging the incoming response, etc.

Angular HttpClient Tutorial
Angular

Angular HttpClient Tutorial & Example

The Angular HttpClient Module is introduced in the Angular 4.3.  This new API is available in package @angular/common/http and intends to replace the older HttpModule.  In this Tutorial on HttpClient we learn how to use HttpClient.Get method to query the GitHub API Source to get data into our Application. Like the older HtppModule, the newer HttpClientModule also uses the RxJs Observables. The Response returned from the HttpClient needs to be Subscribed. We will learn all these in this Tutorial.

Scroll to Top