feat(http): add basic http service

This implementation only works in JavaScript, while the Observable transpilation
story gets worked out. Right now, the service just makes a simple request,
and returns an Observable of Response.

Additional functionality will be captured in separate issues.

Fixes #2028
This commit is contained in:
Jeff Cross
2015-04-28 23:07:55 -07:00
parent 363b9ba415
commit 21568106b1
35 changed files with 1054 additions and 2 deletions

View File

@ -41,6 +41,7 @@ const kServedPaths = [
'examples/src/forms',
'examples/src/gestures',
'examples/src/hello_world',
'examples/src/http',
'examples/src/key_events',
'examples/src/sourcemap',
'examples/src/todo',

View File

@ -44,7 +44,16 @@ function stripModulePrefix(relativePath: string): string {
function getSourceTree() {
// Transpile everything in 'modules' except for rtts_assertions.
var tsInputTree = modulesFunnel(['**/*.js', '**/*.ts', '**/*.dart'], ['rtts_assert/**/*']);
var tsInputTree = modulesFunnel(['**/*.js', '**/*.ts', '**/*.dart'],
// TODO(jeffbcross): add http when lib supports dart
[
'rtts_assert/**/*',
'examples/e2e_test/http/**/*',
'examples/src/http/**/*',
'angular2/src/http/**/*',
'angular2/test/http/**/*',
'angular2/http.ts'
]);
var transpiled = ts2dart(tsInputTree, {generateLibraryName: true, generateSourceMap: false});
// Native sources, dart only examples, etc.
var dartSrcs = modulesFunnel(['**/*.dart', '**/*.ng_meta.json', '**/css/**']);