Http

Experimental

Class

Class Overview

class Http {
constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions)

request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response>
get(url: string, options?: RequestOptionsArgs) : Observable<Response>
post(url: string, body: any, options?: RequestOptionsArgs) : Observable<Response>
put(url: string, body: any, options?: RequestOptionsArgs) : Observable<Response>
delete(url: string, options?: RequestOptionsArgs) : Observable<Response>
patch(url: string, body: any, options?: RequestOptionsArgs) : Observable<Response>
head(url: string, options?: RequestOptionsArgs) : Observable<Response>
options(url: string, options?: RequestOptionsArgs) : Observable<Response>

}

Class Description

Annotations

@Injectable()

Constructor

constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions)

Class Details

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