This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

JsonpClientBackend

npm Package @angular/common
Module import { JsonpClientBackend } from '@angular/common/http';
Source common/http/src/jsonp.ts

Overview

      
      class JsonpClientBackend implements HttpBackend {
  constructor(callbackMap: JsonpCallbackContext, document: any)
  handle(req: HttpRequest<never>): Observable<HttpEvent<any>>
}
    

Description

HttpBackend that only processes HttpRequest with the JSONP method, by performing JSONP style requests.

Constructor

      
      constructor(callbackMap: JsonpCallbackContext, document: any)
    

Members

      
      handle(req: HttpRequest<never>): Observable<HttpEvent<any>>
    

Process a JSONP request and return an event stream of the results.

Annotations

      
      @Injectable()