angular / 11.2.14 / api / common / http / jsonpinterceptor.html /

JsonpInterceptor

class

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

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

See also

Methods

Identifies and handles a given JSONP request.

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

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

Returns

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

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/http/JsonpInterceptor