p.location-badge.
exported from angular2/http
defined in angular2/src/http/base_request_options.ts (line 62)
:markdown
Injectable version of RequestOptions
, with overridable default values.
#Example
```
import {Http, BaseRequestOptions, Request} from 'angular2/http';
...
class MyComponent {
constructor(baseRequestOptions:BaseRequestOptions, http:Http) {
var options = baseRequestOptions.merge({body: 'foobar', url: 'https://foo'});
var request = new Request(options);
http.request(request).subscribe(res => this.bars = res.json());
}
}
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor()
:markdown