OLD | NEW |
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 "io.dart"; | 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 { |
11 static const int CONTINUE = 100; | 11 static const int CONTINUE = 100; |
12 static const int SWITCHING_PROTOCOLS = 101; | 12 static const int SWITCHING_PROTOCOLS = 101; |
13 static const int OK = 200; | 13 static const int OK = 200; |
14 static const int CREATED = 201; | 14 static const int CREATED = 201; |
15 static const int ACCEPTED = 202; | 15 static const int ACCEPTED = 202; |
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 class RedirectException implements HttpException { | 1995 class RedirectException implements HttpException { |
1996 final String message; | 1996 final String message; |
1997 final List<RedirectInfo> redirects; | 1997 final List<RedirectInfo> redirects; |
1998 | 1998 |
1999 const RedirectException(this.message, this.redirects); | 1999 const RedirectException(this.message, this.redirects); |
2000 | 2000 |
2001 String toString() => "RedirectException: $message"; | 2001 String toString() => "RedirectException: $message"; |
2002 | 2002 |
2003 Uri get uri => redirects.last.location; | 2003 Uri get uri => redirects.last.location; |
2004 } | 2004 } |
OLD | NEW |