JsonpInterceptor

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

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

方法

intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
      
      intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
    
参数
req HttpRequest
next HttpHandler
返回值

Observable<HttpEvent<any>>