Interceptor in angular4

An interceptor is a middleware code where all the $http requests go through. ng-http-interceptor Features of interceptors : Registering interceptors globally Separate interceptors for requests and responses Attach interceptors for