2015-04-29 02:07:55 -04:00
|
|
|
import {bind, Binding} from 'angular2/di';
|
|
|
|
import {Http, HttpFactory} from './src/http/http';
|
|
|
|
import {XHRBackend} from 'angular2/src/http/backends/xhr_backend';
|
|
|
|
import {BrowserXHR} from 'angular2/src/http/backends/browser_xhr';
|
2015-06-13 18:49:05 -04:00
|
|
|
import {BaseRequestOptions} from 'angular2/src/http/base_request_options';
|
2015-04-29 02:07:55 -04:00
|
|
|
|
|
|
|
export {Http};
|
|
|
|
export var httpInjectables: List<any> = [
|
2015-06-13 18:49:05 -04:00
|
|
|
bind(BrowserXHR)
|
|
|
|
.toValue(BrowserXHR),
|
2015-04-29 02:07:55 -04:00
|
|
|
XHRBackend,
|
2015-06-13 18:49:05 -04:00
|
|
|
BaseRequestOptions,
|
|
|
|
bind(HttpFactory).toFactory(HttpFactory, [XHRBackend, BaseRequestOptions]),
|
|
|
|
Http
|
2015-04-29 02:07:55 -04:00
|
|
|
];
|