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/pkg/http@14502 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14546 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14579 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14651 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14811 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14829 260f80e4-7a28-3924-810f-c04153c831b5
"Reverting 14829-14832"

BUG=

Review URL: https://codereview.chromium.org//11312203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/http@14833 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14837 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@14976 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15047 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15124 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15275 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15433 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15475 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15476 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15485 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15555 260f80e4-7a28-3924-810f-c04153c831b5
Add authors and homepages to packages.
Review URL: https://codereview.chromium.org//11418267

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/http@15601 260f80e4-7a28-3924-810f-c04153c831b5
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/pkg/http@15657 260f80e4-7a28-3924-810f-c04153c831b5
Stop working around issue 6984.

Review URL: https://codereview.chromium.org//11464006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/http@15804 260f80e4-7a28-3924-810f-c04153c831b5