This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

JsonpInterceptor

npm Package @angular/common
Module import { JsonpInterceptor } from '@angular/common/http';
Source common/http/src/jsonp.ts

Overview

      
      class JsonpInterceptor {
  constructor(jsonp: JsonpClientBackend)
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
}
    

Description

An HttpInterceptor which identifies requests with the method JSONP and shifts them to the JsonpClientBackend.

Constructor

      
      constructor(jsonp: JsonpClientBackend)
    

Members

      
      intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
    

Annotations

      
      @Injectable()