W3cubDocs

/Angular 2 TypeScript

Jsonp

Experimental Class

Class Overview

class Jsonp extends Http {
  constructor(backend: ConnectionBackend, defaultOptions: RequestOptions)
  
  
  request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response>
}

Class Description

Annotations

@Injectable()

Constructor

constructor(backend: ConnectionBackend, defaultOptions: RequestOptions)

Class Details

request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response>

Performs any type of http request. First argument is required, and can either be a url or a Request instance. If the first argument is a url, an optional RequestOptions object can be provided as the 2nd argument. The options object will be merged with the values of BaseRequestOptions before performing the request.

exported from @angular/http/index, defined in @angular/http/src/http.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/http/index/Jsonp-class.html