Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: sdk/lib/io/http_impl.dart

Issue 12217059: Fix issue 8379 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 // The close queue handles graceful closing of HTTP connections. When 7 // The close queue handles graceful closing of HTTP connections. When
8 // a connection is added to the queue it will enter a wait state 8 // a connection is added to the queue it will enter a wait state
9 // waiting for all data written and possibly socket shutdown from 9 // waiting for all data written and possibly socket shutdown from
10 // peer. 10 // peer.
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 return _buffer.length; 394 return _buffer.length;
395 } 395 }
396 396
397 List<int> _streamRead(int bytesToRead) { 397 List<int> _streamRead(int bytesToRead) {
398 return _buffer.readBytes(bytesToRead); 398 return _buffer.readBytes(bytesToRead);
399 } 399 }
400 400
401 int _streamReadInto(List<int> buffer, int offset, int len) { 401 int _streamReadInto(List<int> buffer, int offset, int len) {
402 List<int> data = _buffer.readBytes(len); 402 List<int> data = _buffer.readBytes(len);
403 buffer.setRange(offset, data.length, data); 403 buffer.setRange(offset, data.length, data);
404 return data.length;
404 } 405 }
405 406
406 void _streamSetErrorHandler(callback(e)) { 407 void _streamSetErrorHandler(callback(e)) {
407 _streamErrorHandler = callback; 408 _streamErrorHandler = callback;
408 } 409 }
409 410
410 String _method; 411 String _method;
411 String _uri; 412 String _uri;
412 String _path; 413 String _path;
413 String _queryString; 414 String _queryString;
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2322 2323
2323 2324
2324 class _RedirectInfo implements RedirectInfo { 2325 class _RedirectInfo implements RedirectInfo {
2325 const _RedirectInfo(int this.statusCode, 2326 const _RedirectInfo(int this.statusCode,
2326 String this.method, 2327 String this.method,
2327 Uri this.location); 2328 Uri this.location);
2328 final int statusCode; 2329 final int statusCode;
2329 final String method; 2330 final String method;
2330 final Uri location; 2331 final Uri location;
2331 } 2332 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698