Class Overview
class Jsonp extends Http {
constructor
(backend: ConnectionBackend, defaultOptions: RequestOptions)
request
(url: string|Request, options?: RequestOptionsArgs) : Observable<Response>
}
Class Description
Annotations
@Injectable()
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 http/index, defined in http/src/http.ts