* Identifies and handles a given JSONP request. * @param initialRequest The outgoing request object to handle. * @param next The next interceptor in the chain, or the backend * if no interceptors remain in the chain. * @returns An observable of the event stream.
(initialRequest: HttpRequest<any>, next: HttpHandler)
| 331 | * @returns An observable of the event stream. |
| 332 | */ |
| 333 | intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { |
| 334 | return runInInjectionContext(this.injector, () => |
| 335 | jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)), |
| 336 | ); |
| 337 | } |
| 338 | } |
nothing calls this directly
no test coverage detected