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:
@ -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',
|
||||
|
@ -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/**']);
|
||||
|
Reference in New Issue
Block a user