Skip to content

Instantly share code, notes, and snippets.

Last active Sep 21, 2018
What would you like to do?
export class LoggingHttpInterceptor implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
console.log(`${req.url} has been intercepted!`);
return next.handle(req);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment