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

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

Issue 15842004: Support auto-drain of HttpRequest data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add documentation. Created 7 years, 7 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 | sdk/lib/io/http_impl.dart » ('j') | 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 /** 7 /**
8 * HTTP status codes. 8 * HTTP status codes.
9 */ 9 */
10 abstract class HttpStatus { 10 abstract class HttpStatus {
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 /** 715 /**
716 * Gets information about the client connection. Returns [null] if the socket 716 * Gets information about the client connection. Returns [null] if the socket
717 * is not available. 717 * is not available.
718 */ 718 */
719 HttpConnectionInfo get connectionInfo; 719 HttpConnectionInfo get connectionInfo;
720 720
721 /** 721 /**
722 * Gets the [HttpResponse] object, used for sending back the response to the 722 * Gets the [HttpResponse] object, used for sending back the response to the
723 * client. 723 * client.
724 *
725 * If the [contentLength] of the body isn't 0, and the body isn't being read,
726 * any write calls on the [HttpResponse] will automatically drain the request
727 * body.
724 */ 728 */
725 HttpResponse get response; 729 HttpResponse get response;
726 } 730 }
727 731
728 732
729 /** 733 /**
730 * An [HttpResponse] represents the headers and data to be returned to 734 * An [HttpResponse] represents the headers and data to be returned to
731 * a client in response to an HTTP request. 735 * a client in response to an HTTP request.
732 * 736 *
733 * This object has a number of properties for setting up the HTTP 737 * This object has a number of properties for setting up the HTTP
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 class RedirectLimitExceededException extends RedirectException { 1374 class RedirectLimitExceededException extends RedirectException {
1371 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1375 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1372 : super("Redirect limit exceeded", redirects); 1376 : super("Redirect limit exceeded", redirects);
1373 } 1377 }
1374 1378
1375 1379
1376 class RedirectLoopException extends RedirectException { 1380 class RedirectLoopException extends RedirectException {
1377 const RedirectLoopException(List<RedirectInfo> redirects) 1381 const RedirectLoopException(List<RedirectInfo> redirects)
1378 : super("Redirect loop detected", redirects); 1382 : super("Redirect loop detected", redirects);
1379 } 1383 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698