2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../http'>angular2/http</a>
2015-08-02 23:08:36 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/http/base_request_options.ts#L62-L87">angular2/src/http/base_request_options.ts (line 62)</a>
2015-07-27 22:12:30 -07:00
:markdown
Injectable version of <a href='RequestOptions-class.html'><code>RequestOptions</code></a>, 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());
}
}
```
2015-07-28 13:28:47 -07:00
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
2015-07-27 22:12:30 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor()
:markdown