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

Side by Side Diff: runtime/bin/http.dart

Issue 10386040: Avoid using chunked transfer encoding when the HTTP verision is 1.0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * HTTP status codes. 6 * HTTP status codes.
7 */ 7 */
8 interface HttpStatus { 8 interface HttpStatus {
9 static final int CONTINUE = 100; 9 static final int CONTINUE = 100;
10 static final int SWITCHING_PROTOCOLS = 101; 10 static final int SWITCHING_PROTOCOLS = 101;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 /** 345 /**
346 * Returns the request headers. 346 * Returns the request headers.
347 */ 347 */
348 HttpHeaders get headers(); 348 HttpHeaders get headers();
349 349
350 /** 350 /**
351 * Returns the input stream for the request. This is used to read 351 * Returns the input stream for the request. This is used to read
352 * the request data. 352 * the request data.
353 */ 353 */
354 InputStream get inputStream(); 354 InputStream get inputStream();
355
356 /**
357 * Returns the HTTP protocol version used in the request. This will
358 * be "1.0" or "1.1".
359 */
360 String get protocolVersion();
355 } 361 }
356 362
357 363
358 /** 364 /**
359 * HTTP response to be send back to the client. 365 * HTTP response to be send back to the client.
360 */ 366 */
361 interface HttpResponse default _HttpResponse { 367 interface HttpResponse default _HttpResponse {
362 /** 368 /**
363 * Gets and sets the content length of the response. If the size of 369 * Gets and sets the content length of the response. If the size of
364 * the response is not known in advance set the content length to 370 * the response is not known in advance set the content length to
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 class RedirectLimitExceeded extends RedirectException { 672 class RedirectLimitExceeded extends RedirectException {
667 const RedirectLimitExceeded(List<RedirectInfo> redirects) 673 const RedirectLimitExceeded(List<RedirectInfo> redirects)
668 : super("Redirect limit exceeded", redirects); 674 : super("Redirect limit exceeded", redirects);
669 } 675 }
670 676
671 677
672 class RedirectLoop extends RedirectException { 678 class RedirectLoop extends RedirectException {
673 const RedirectLoop(List<RedirectInfo> redirects) 679 const RedirectLoop(List<RedirectInfo> redirects)
674 : super("Redirect loop detected", redirects); 680 : super("Redirect loop detected", redirects);
675 } 681 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | tests/standalone/io/http_content_length_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698