• Genel Bakış
@angular/common/http

JsonpClientBackend

Sınıf
kullanımdan kaldırılmışv22.1'den beri

Processes an HttpRequest with the JSONP method, by performing JSONP style requests.

Deprecation warning

JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular.

API

    
      class JsonpClientBackend implements HttpBackend {}
    
    

constructor

JsonpClientBackend
@paramcallbackMapJsonpCallbackContext
@paramdocumentany

handle

Observable<HttpEvent<any>>

Processes a JSONP request and returns an event stream of the results.

@paramreqHttpRequest<never>

The request object.

@returnsObservable<HttpEvent<any>>

An observable of the response events.

Detaylara atla