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
sigmund@google.com
aeca565ae9
Fix build for throwsStateError: remove duplicate definitions in other tests.
...
Review URL: https://codereview.chromium.org//12088056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 21:47:05 +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
nweiz@google.com
013b0104f5
Add an ErrorGroup class to Pub.
...
Review URL: https://codereview.chromium.org//11941003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17106 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 00:12:30 +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
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
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
ajohnsen@google.com
32eeecd930
Fix tests for VM in checked mode.
...
BUG=
Review URL: https://codereview.chromium.org//11801008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16689 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:59:49 +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
rnystrom@google.com
ac04fc6c18
Convert pkg/http to use "package:" imports.
...
Review URL: https://codereview.chromium.org//11746009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16620 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 00:10:47 +00:00
sgjesse@google.com
7e293aa077
Reapply "Fix URI encoding/decoding of + and space""
...
Updated test expectations for some tests for pkg/http, pkg/oauth2 and
pub to match the change.
TBR=lrn@google.com
Review URL: https://codereview.chromium.org//11659009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16426 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 09:50:05 +00:00
sgjesse@google.com
beaf02365a
Change the HTTP Content-Length handling
...
Move the handling of the Content-Length to the HttpHeaders
object. This makes it possible to set the Content-Length through the
headers as well as directly on HttpResponse and HttpClientRequest.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//11637017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16357 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 08:50:00 +00:00
floitsch@google.com
319d50ea22
Make request_test wait for its results.
...
Review URL: https://codereview.chromium.org//11644025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16341 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 21:16:38 +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
sgjesse@google.com
93514a3b28
Reapply "Stop working around issue 6984."
...
Originally committted in r15804 and reverted in r15825.
Issue 6984 should be fixed by r15951.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11528005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15961 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 10:03:21 +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
29318c2f5c
Revert "Stop working around issue 6984."
...
Review URL: https://codereview.chromium.org//11464015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15825 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:09:19 +00:00
nweiz@google.com
01dd8fcb4e
Stop working around issue 6984.
...
Review URL: https://codereview.chromium.org//11464006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15804 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 20:50:21 +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
558ffd19bf
Work around issue 6984.
...
This ensures that before an HTTP response is closed, its corresponding
request is drained of input.
Review URL: https://codereview.chromium.org//11348285
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15476 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:43:10 +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
sgjesse@google.com
7805f03972
Generate an error for active connections when the HTTP client is shutdown
...
Before the underlying sockets where just silently closed causing no more IO events on active connections no matter what state they where in.
Also added an optional "force" argument to HttpClient.shutdown. If that is false (the default) The HttpClient will not close active connections until they are done. This causes all pkg/http and pub tests to pass.
R=ager@google.com , nweiz@google.com
BUG=dart:6594
Review URL: https://codereview.chromium.org//11411121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15275 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:28:34 +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
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
sgjesse@google.com
ada7ba7414
Add debug print to try to find the issue with test pkg/http/test/request_test.dart
...
The flakines of the test have not been reproduced locally (neither on
Linux nor on Windows). Adding debug print for more diagnstics.
R=ahe@google.com
BUG=
Review URL: https://codereview.chromium.org//11369096
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14579 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 15:57:39 +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