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>>

参数

req

Type: HttpRequest.

next

Type: HttpHandler.

返回值

Observable<HttpEvent<any>>

注解

@Injectable()