Skip to content

Instantly share code, notes, and snippets.

View kumar-muthu's full-sized avatar

Muthukumar Rajendran kumar-muthu

View GitHub Profile
@kumar-muthu
kumar-muthu / so_angular_http_inteceptor.ts
Created January 19, 2019 19:16
Angular HTTP Interceptor
import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpResponse,
HttpHandler,
HttpEvent,
HttpInterceptor,
HttpErrorResponse
} from '@angular/common/http';
import { Observable, EMPTY, throwError } from 'rxjs';