|
Rip out the last dart:io dependency from pkg/http.
It now loads dart:io via mirrors if it's available. This allows it to be
compatible with the browser, so a new library "package:http/browser_client.dart"
is added to support that.
The use of mirrors was tested to ensure that it doesn't add any additional
filesize to dart2js compilations over what would be used if "dart:io" support
didn't exist.
R=rnystrom@google.com
Committed: https://code.google.com/p/dart/source/detail?r=35756
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+490 lines, -848 lines) |
Patch |
|
M |
pkg/http/CHANGELOG.md
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/http/README.md
|
View
|
1
|
2 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
|
A |
pkg/http/lib/browser_client.dart
|
View
|
1
2
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/http/lib/src/byte_stream.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/http/lib/src/client.dart
|
View
|
|
2 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
|
A |
pkg/http/lib/src/io.dart
|
View
|
1
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/http/lib/src/io_client.dart
|
View
|
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
pkg/http/lib/src/multipart_file.dart
|
View
|
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
D |
pkg/http/test/client_test.dart
|
View
|
|
1 chunk |
+0 lines, -65 lines |
0 comments
|
Download
|
|
A |
pkg/http/test/html/client_test.dart
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/http/test/html/streamed_request_test.dart
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/http/test/html/utils.dart
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
D |
pkg/http/test/http_test.dart
|
View
|
|
1 chunk |
+0 lines, -334 lines |
0 comments
|
Download
|
|
A + |
pkg/http/test/io/client_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
pkg/http/test/io/http_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
pkg/http/test/io/multipart_test.dart
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/http/test/io/request_test.dart
|
View
|
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A + |
pkg/http/test/io/streamed_request_test.dart
|
View
|
|
3 chunks |
+2 lines, -18 lines |
0 comments
|
Download
|
|
A + |
pkg/http/test/io/utils.dart
|
View
|
|
3 chunks |
+4 lines, -60 lines |
0 comments
|
Download
|
|
M |
pkg/http/test/multipart_test.dart
|
View
|
|
2 chunks |
+0 lines, -66 lines |
0 comments
|
Download
|
|
M |
pkg/http/test/request_test.dart
|
View
|
|
12 chunks |
+25 lines, -101 lines |
0 comments
|
Download
|
|
M |
pkg/http/test/streamed_request_test.dart
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
M |
pkg/http/test/utils.dart
|
View
|
|
2 chunks |
+44 lines, -133 lines |
0 comments
|
Download
|
|
M |
pkg/pkg.status
|
View
|
1
2
|
3 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|