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

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

Issue 10964039: Update documentation for HTTP response status code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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) 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 abstract class HttpStatus { 8 abstract class HttpStatus {
9 static const int CONTINUE = 100; 9 static const int CONTINUE = 100;
10 static const int SWITCHING_PROTOCOLS = 101; 10 static const int SWITCHING_PROTOCOLS = 101;
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 */ 582 */
583 abstract class HttpResponse { 583 abstract class HttpResponse {
584 /** 584 /**
585 * Gets and sets the content length of the response. If the size of 585 * Gets and sets the content length of the response. If the size of
586 * the response is not known in advance set the content length to 586 * the response is not known in advance set the content length to
587 * -1 - which is also the default if not set. 587 * -1 - which is also the default if not set.
588 */ 588 */
589 int contentLength; 589 int contentLength;
590 590
591 /** 591 /**
592 * Gets and sets the status code. Any integer value is accepted, but 592 * Gets and sets the status code. Any integer value is accepted. For
593 * for the official HTTP status codes use the fields from 593 * the official HTTP status codes use the fields from
594 * [HttpStatus]. 594 * [HttpStatus]. If no status code is explicitly set the default
595 * value [HttpStatus.OK] is used.
595 */ 596 */
596 int statusCode; 597 int statusCode;
597 598
598 /** 599 /**
599 * Gets and sets the reason phrase. If no reason phrase is explicitly 600 * Gets and sets the reason phrase. If no reason phrase is explicitly
600 * set a default reason phrase is provided. 601 * set a default reason phrase is provided.
601 */ 602 */
602 String reasonPhrase; 603 String reasonPhrase;
603 604
604 /** 605 /**
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 class RedirectLimitExceededException extends RedirectException { 942 class RedirectLimitExceededException extends RedirectException {
942 const RedirectLimitExceededException(List<RedirectInfo> redirects) 943 const RedirectLimitExceededException(List<RedirectInfo> redirects)
943 : super("Redirect limit exceeded", redirects); 944 : super("Redirect limit exceeded", redirects);
944 } 945 }
945 946
946 947
947 class RedirectLoopException extends RedirectException { 948 class RedirectLoopException extends RedirectException {
948 const RedirectLoopException(List<RedirectInfo> redirects) 949 const RedirectLoopException(List<RedirectInfo> redirects)
949 : super("Redirect loop detected", redirects); 950 : super("Redirect loop detected", redirects);
950 } 951 }
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