填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

JsonpInterceptor

Identifies requests with the method JSONP and shifts them to the JsonpClientBackend.

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

参见

方法

Identifies and handles a given JSONP request.

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

The outgoing request object to handle.

next HttpHandler

The next interceptor in the chain, or the backend if no interceptors remain in the chain.

返回值

Observable<HttpEvent<any>>: An observable of the event stream.