JsonpInterceptor
class
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()
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/http/JsonpInterceptor