linkJsonpInterceptor
| npm Package | @angular/common |
|---|---|
| Module | import { JsonpInterceptor } from '@angular/common/http'; |
| Source | common/http/src/jsonp.ts |
linkOverview
class JsonpInterceptor {
constructor(jsonp: JsonpClientBackend)
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
}
linkDescription
An HttpInterceptor which identifies requests with the method JSONP and
shifts them to the JsonpClientBackend.
linkConstructor
constructor(jsonp: JsonpClientBackend)
linkMembers
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
linkAnnotations
@Injectable()