floitsch@google.com
0672317bec
Remove deprecated mappedBy.
...
Committed: https://code.google.com/p/dart/source/detail?r=18575
Reverted: http://code.google.com/p/dart/source/detail?r=18576
Review URL: https://codereview.chromium.org//12212213
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:57:18 +00:00
floitsch@google.com
ad839e6957
Revert "Remove deprecated mappedBy."
...
This reverts commit 18575.
Review URL: https://codereview.chromium.org//12207205
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18576 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:23:22 +00:00
floitsch@google.com
b37100770b
Remove deprecated mappedBy.
...
Review URL: https://codereview.chromium.org//12212213
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18575 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:18:17 +00:00
floitsch@google.com
cb10990e5a
Remove Sink and move CollectionSink to async.
...
Committed: https://code.google.com/p/dart/source/detail?r=18063
Reverted: https://code.google.com/p/dart/source/detail?r=18067
Review URL: https://codereview.chromium.org//12154006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18144 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 15:32:18 +00:00
nweiz@google.com
dbb72ee35d
Get the pub oauth2 test passing locally.
...
Review URL: https://codereview.chromium.org//12191008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18103 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 00:57:25 +00:00
floitsch@google.com
cb1bff12b6
Revert "Remove Sink and move CollectionSink to async."
...
This reverts commit 18063.
Review URL: https://codereview.chromium.org//12192021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18067 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 19:30:15 +00:00
floitsch@google.com
02f6b1835d
Remove Sink and move CollectionSink to async.
...
Review URL: https://codereview.chromium.org//12154006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18063 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 19:03:55 +00:00
nweiz@google.com
18d274df07
Use the dart:async Stream API thoroughly in Pub.
...
This was originally submitted as r17822, and rolled back in r17867. There are no
changes, but in preparation for the dart:io Stream changes we're applying this
with the intent to mark Windows tests as failing.
BUG=7807
Review URL: https://codereview.chromium.org//12086110
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17996 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 19:42:09 +00:00
lrn@google.com
9b23dff467
Reapply "Rename mappedBy to map."
...
This reverts commit r17907.
TBR.
Review URL: https://codereview.chromium.org//12090093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00
floitsch@google.com
b1a118d5ce
Revert "Rename mappedBy to map."
...
This reverts commit 17899.
Review URL: https://codereview.chromium.org//12087103
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 14:02:27 +00:00
lrn@google.com
0dc2f4b1ba
Rename mappedBy to map.
...
Retain a deprecated mappedBy for now.
Change return type of mappedBy, skip and take on List to Iterable.
BUG= http://dartbug.com/8063
BUG= http://dartbug.com/8064
BUG= http://dartbug.com/6739
BUG= http://dartbug.com/7982
Review URL: https://codereview.chromium.org//12086062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 12:37:13 +00:00
nweiz@google.com
8be520740e
Roll back Pub stream changes.
...
These changes are still breaking the Windows bots, so I'm rolling them back
until we figure out what's going on.
TBR
Review URL: https://codereview.chromium.org//12095050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17867 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 19:26:03 +00:00
nweiz@google.com
d56994eb18
Use the dart:async Stream API thoroughly in Pub.
...
Review URL: https://codereview.chromium.org//12021008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17821 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 01:06:39 +00:00
nweiz@google.com
b2a13038b2
Always treat headers as individual strings in pkg/http.
...
BUG=8049
Review URL: https://codereview.chromium.org//12084052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17819 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 00:06:40 +00:00
floitsch@google.com
ed938af868
Rename new Uri.fromString to Uri.parse.
...
Review URL: https://codereview.chromium.org//12052038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17562 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:26:18 +00:00
hausner@google.com
a885f8638b
Fix map literals from change 17410
...
Remove any type arguments from map literals
that had one type argument before change 17410.
Review URL: https://codereview.chromium.org//12045024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17412 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 17:31:29 +00:00
hausner@google.com
dc3bf6646a
Stop supporting map literals with 1 type argument
...
To be checked in next week Tue (Jan 22)
Review URL: https://codereview.chromium.org//12021022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17410 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 16:48:00 +00:00
nweiz@google.com
03244ffee1
Stop treating StreamController as a Stream.
...
Apparently StreamController will soon stop extending Stream, so this gets rid of
all uses of it as a Stream in pkg/http and pub.
Review URL: https://codereview.chromium.org//11975017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17163 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 21:35:45 +00:00
lrn@google.com
ef13a0822b
Make StreamController's unnamed constructor create a single-sub stream.
...
R=floitsch@google.com
Review URL: https://codereview.chromium.org//11887016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17049 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 09:09:47 +00:00
nweiz@google.com
0109fd9664
No longer work around issue 7761.
...
This also moves Pub's modified _OutputStreamConsumer class into pkg/http.
Review URL: https://codereview.chromium.org//11881030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17034 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:30:00 +00:00
lrn@google.com
4868ee2110
Remove Futures class, move methods to Future.
...
Optimize Future.forEach, Future.delay.
Review URL: https://codereview.chromium.org//11865005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
nweiz@google.com
fcff2fb2d9
Fix ALL the pub tests.
...
Review URL: https://codereview.chromium.org//11830017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16888 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:37:40 +00:00
nweiz@google.com
5741f611ba
Update pkg/http to use the new async APIs.
...
Review URL: https://codereview.chromium.org//11825010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16834 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 03:10:42 +00:00
rnystrom@google.com
021b6438c5
Commit Martin's patch for pub + lib_v2.
...
Pub is still all kinds of broken with this, but it's slightly
less broken. Some tests pass, and at least the code *parses*
after this.
Review URL: https://codereview.chromium.org//11785028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16763 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:11:55 +00:00
sgjesse@google.com
feda65bcc4
Update tests for pkg/http for new library
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11778021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16703 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:52:12 +00:00
floitsch@google.com
4a7dfd2da3
Big merge from experimental to bleeding edge.
...
Review URL: https://codereview.chromium.org//11783009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
nweiz@google.com
205f8ee5fc
Use a semicolon as the separator for multipart form-data requests.
...
I believe both a semicolon and a comma are valid, but the semicolon seems more
widely-supported.
Review URL: https://codereview.chromium.org//11713003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16567 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-29 00:34:31 +00:00
nweiz@google.com
de54a75bfc
Code review change for r16238.
...
Review URL: https://codereview.chromium.org//11647010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16344 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 21:41:13 +00:00
nweiz@google.com
a8eb61fb8b
Fix analyzer errors and warnings for pkg/http.
...
BUG=7458
Review URL: https://codereview.chromium.org//11617004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16238 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 00:26:15 +00:00
rnystrom@google.com
89dbb7be66
Add "toString()" to BaseRequest.
...
Review URL: https://codereview.chromium.org//11480003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15869 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 21:49:27 +00:00
rnystrom@google.com
e3bc775e68
Revert "Add logging system to pub and sprinkle some logging in."
...
This reverts commit 60468a1a0854389bb3f460cf2368f22013f1af31.
BUG=
Review URL: https://codereview.chromium.org//11472016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15830 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:48:12 +00:00
rnystrom@google.com
578c415134
Add logging system to pub and sprinkle some logging in.
...
We'll have to tune which things we log over time, but this covers
most IO operations which is where almost all of our problems come
from.
This patch also means that going forward you should no longer call
print() or printError() (which is gone) directly. Instead:
print() -> log.message()
printError() -> log.error()
That ensures all messages will correctly get added to the log's
transcript.
Review URL: https://codereview.chromium.org//11437019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15827 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:29:23 +00:00
nweiz@google.com
1855849da1
No longer work around issue 7013 and 7014 in pkg/http.
...
Review URL: https://codereview.chromium.org//11411327
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15657 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 21:14:07 +00:00
nweiz@google.com
5c7323f35d
Keep around a copy of the http.Request that triggered each Response.
...
Review URL: https://codereview.chromium.org//11348309
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15555 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 00:09:18 +00:00
nweiz@google.com
2c1d51db1c
Make pkg/http use HttpClient.shutdown(force: true).
...
Review URL: https://codereview.chromium.org//11434018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15485 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:47:09 +00:00
nweiz@google.com
295a066707
Use Futures.forEach in http.
...
BUG=
Review URL: https://codereview.chromium.org//11411241
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15475 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:39:33 +00:00
nweiz@google.com
06e7344e22
Make #maxRedirects and #followRedirects work for the dart:io HTTP client.
...
Review URL: https://codereview.chromium.org//11414195
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15433 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 01:54:16 +00:00
nweiz@google.com
70e056e7ae
Refactor http.Client and http.BaseClient to allow http.Client in type annotations.
...
Review URL: https://codereview.chromium.org//11308111
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15124 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:54:31 +00:00
nweiz@google.com
f4e557d746
Move CurlClient to Pub so that it can access resources.
...
This CL also enables tests for the client on Linux and OS X.
Review URL: https://codereview.chromium.org//11299028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15047 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 01:15:45 +00:00
nweiz@google.com
f1624e45a5
Make the HTTP MockClient work with GET requests.
...
Review URL: https://codereview.chromium.org//11293289
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14976 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 20:44:32 +00:00
ajohnsen@google.com
ab69873a42
Make RegExp constructor non-const.
...
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.
BUG=
Review URL: https://codereview.chromium.org//11369210
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com
ec9fee9858
"Reverting 14829-14832"
...
BUG=
Review URL: https://codereview.chromium.org//11312203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com
8dc3edd7ce
Make RegExp's constructor non-const.
...
BUG=
Review URL: https://codereview.chromium.org//11410033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
nweiz@google.com
47393b62a0
Add an HTTP client based on Curl.
...
Review URL: https://codereview.chromium.org//11394003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14811 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 22:01:14 +00:00
nweiz@google.com
7058600a3a
Add a multipart HTTP request class.
...
Review URL: https://codereview.chromium.org//11363094
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14651 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 20:59:59 +00:00
nweiz@google.com
64c2c67a79
Add a mock HTTP client class.
...
Review URL: https://codereview.chromium.org//11362097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14546 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 23:47:00 +00:00
nweiz@google.com
549efe3bdf
Add an HTTP library that wraps dart:io.
...
Review URL: https://codereview.chromium.org//11363063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14502 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 20:55:01 +00:00
nweiz@google.com
e6a33d23fb
Reverting 14496
...
Review URL: https://codereview.chromium.org//11293075
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14498 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 20:13:14 +00:00
nweiz@google.com
f6f3e1d556
Add an HTTP library that wraps dart:io.
...
Review URL: https://codereview.chromium.org//11338054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14496 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 19:45:04 +00:00