| 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 String reasonPhrase; | 813 String reasonPhrase; |
| 814 | 814 |
| 815 /** | 815 /** |
| 816 * Gets and sets the persistent connection state. The initial value | 816 * Gets and sets the persistent connection state. The initial value |
| 817 * of this property is the persistent connection state from the | 817 * of this property is the persistent connection state from the |
| 818 * request. | 818 * request. |
| 819 */ | 819 */ |
| 820 bool persistentConnection; | 820 bool persistentConnection; |
| 821 | 821 |
| 822 /** | 822 /** |
| 823 * Set and get the [deadline] for the response. The deadline is timed from the |
| 824 * time it's set. Setting a new deadline will override any previous deadline. |
| 825 * When a deadline is exceeded, the response will be closed and any further |
| 826 * data ignored. |
| 827 * |
| 828 * To disable a deadline, set the [deadline] to `null`. |
| 829 * |
| 830 * The [deadline] is `null` by default. |
| 831 */ |
| 832 Duration deadline; |
| 833 |
| 834 /** |
| 823 * Returns the response headers. | 835 * Returns the response headers. |
| 824 */ | 836 */ |
| 825 HttpHeaders get headers; | 837 HttpHeaders get headers; |
| 826 | 838 |
| 827 /** | 839 /** |
| 828 * Cookies to set in the client (in the 'set-cookie' header). | 840 * Cookies to set in the client (in the 'set-cookie' header). |
| 829 */ | 841 */ |
| 830 List<Cookie> get cookies; | 842 List<Cookie> get cookies; |
| 831 | 843 |
| 832 /** | 844 /** |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 | 1432 |
| 1421 class RedirectException implements HttpException { | 1433 class RedirectException implements HttpException { |
| 1422 final String message; | 1434 final String message; |
| 1423 final List<RedirectInfo> redirects; | 1435 final List<RedirectInfo> redirects; |
| 1424 | 1436 |
| 1425 const RedirectException(String this.message, | 1437 const RedirectException(String this.message, |
| 1426 List<RedirectInfo> this.redirects); | 1438 List<RedirectInfo> this.redirects); |
| 1427 | 1439 |
| 1428 String toString() => "RedirectException: $message"; | 1440 String toString() => "RedirectException: $message"; |
| 1429 } | 1441 } |
| OLD | NEW |