| 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 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 * incoming connections from the local host, use the value | 217 * incoming connections from the local host, use the value |
| 218 * [InternetAddress.LOOPBACK_IP_V4] or | 218 * [InternetAddress.LOOPBACK_IP_V4] or |
| 219 * [InternetAddress.LOOPBACK_IP_V6]. To allow for incoming | 219 * [InternetAddress.LOOPBACK_IP_V6]. To allow for incoming |
| 220 * connection from the network use either one of the values | 220 * connection from the network use either one of the values |
| 221 * [InternetAddress.ANY_IP_V4] or [InternetAddress.ANY_IP_V6] to | 221 * [InternetAddress.ANY_IP_V4] or [InternetAddress.ANY_IP_V6] to |
| 222 * bind to all interfaces or the IP address of a specific interface. | 222 * bind to all interfaces or the IP address of a specific interface. |
| 223 * | 223 * |
| 224 * If an IP version 6 (IPv6) address is used, both IP version 6 | 224 * If an IP version 6 (IPv6) address is used, both IP version 6 |
| 225 * (IPv6) and version 4 (IPv4) connections will be accepted. To | 225 * (IPv6) and version 4 (IPv4) connections will be accepted. To |
| 226 * restrict this to version 6 (IPv6) only, use [v6Only] to set | 226 * restrict this to version 6 (IPv6) only, use [v6Only] to set |
| 227 * version 6 only. | 227 * version 6 only. However, if the address is |
| 228 * [InternetAddress.LOOPBACK_IP_V6], only IP version 6 (IPv6) connections |
| 229 * will be accepted. |
| 228 * | 230 * |
| 229 * If [port] has the value [:0:] an ephemeral port will be chosen by | 231 * If [port] has the value [:0:] an ephemeral port will be chosen by |
| 230 * the system. The actual port used can be retrieved using the | 232 * the system. The actual port used can be retrieved using the |
| 231 * [port] getter. | 233 * [port] getter. |
| 232 * | 234 * |
| 233 * The optional argument [backlog] can be used to specify the listen | 235 * The optional argument [backlog] can be used to specify the listen |
| 234 * backlog for the underlying OS listen setup. If [backlog] has the | 236 * backlog for the underlying OS listen setup. If [backlog] has the |
| 235 * value of [:0:] (the default) a reasonable value will be chosen by | 237 * value of [:0:] (the default) a reasonable value will be chosen by |
| 236 * the system. | 238 * the system. |
| 237 * | 239 * |
| (...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 class RedirectException implements HttpException { | 1995 class RedirectException implements HttpException { |
| 1994 final String message; | 1996 final String message; |
| 1995 final List<RedirectInfo> redirects; | 1997 final List<RedirectInfo> redirects; |
| 1996 | 1998 |
| 1997 const RedirectException(this.message, this.redirects); | 1999 const RedirectException(this.message, this.redirects); |
| 1998 | 2000 |
| 1999 String toString() => "RedirectException: $message"; | 2001 String toString() => "RedirectException: $message"; |
| 2000 | 2002 |
| 2001 Uri get uri => redirects.last.location; | 2003 Uri get uri => redirects.last.location; |
| 2002 } | 2004 } |
| OLD | NEW |