p.location-badge. exported from angular2/http defined in angular2/src/http/static_request.ts (line 10) :markdown The http module provides services to perform http requests. To get started, see the Http class. .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(requestOptions: RequestOptions) :markdown .l-sub-section h3 method :markdown Http method with which to perform the request. Defaults to GET. .l-sub-section h3 mode :markdown .l-sub-section h3 credentials :markdown .l-sub-section h3 headers :markdown Headers object based on the `Headers` class in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class). Headers class reference. .l-sub-section h3 url :markdown Url of the remote resource .l-sub-section h3 cache :markdown .l-sub-section h3 text pre.prettyprint code. text() :markdown Returns the request's body as string, assuming that body exists. If body is undefined, return empty string.