Files
sdk/runtime/bin
sgjesse@google.com d7c1a2835f Prepare the HTTP library for inclusion in the standalone VM (step 2)
Change the handling of the received data on HTTPRequest and
HTTPClientResponse to use the InputStream interface instead of
dataReceived and dataEnd handlers.

We should probably do something to make the following serer side and
client side patterns simpler:

void handler(HTTPRequest request, HTTPResponse response) {
  ...
  StringBuffer body = new StringBuffer();
  StringInputStream input = new StringInputStream(request.inputStream);
  input.dataHandler = () => body.add(input.read());
  input.closeHandler = () {
    String data = body.toString();
    ...
  }
}

HTTPClientConnection conn = ...
  conn.responseHandler = (HTTPClientResponse r) {
  ...
  StringBuffer body = new StringBuffer();
  StringInputStream input = new StringInputStream(request.inputStream);
  input.dataHandler = () => body.add(input.read());
  input.closeHandler = () {
    String data = body.toString();
    ...
  }
}

R=ager@google.com,ajohnsen@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9495007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4679 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 13:04:04 +00:00
..
2012-01-09 07:38:30 +00:00
2012-02-13 12:05:08 +00:00
2012-01-12 19:32:06 +00:00
2012-01-10 16:50:14 +00:00
2012-02-02 13:47:42 +00:00
2012-02-02 13:47:42 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2011-10-05 05:20:07 +00:00
2012-01-26 22:56:50 +00:00
2012-01-10 16:50:14 +00:00
2012-02-13 14:51:52 +00:00
2012-02-13 12:05:08 +00:00
2012-02-13 12:05:08 +00:00