JsonpClientBackend

class

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()

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/http/JsonpClientBackend