| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 * | 161 * |
| 162 * The default value is `null`. | 162 * The default value is `null`. |
| 163 */ | 163 */ |
| 164 String serverHeader; | 164 String serverHeader; |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * Default set of headers added to all response objects. | 167 * Default set of headers added to all response objects. |
| 168 * | 168 * |
| 169 * By default the following headers are in this set: | 169 * By default the following headers are in this set: |
| 170 * | 170 * |
| 171 * Content-Type: text/plain; charset=utf-8 | 171 * Content-Type: text/plain; charset=utf-8 |
| 172 * X-Frame-Options: SAMEORIGIN | 172 * X-Frame-Options: SAMEORIGIN |
| 173 * X-Content-Type-Options: nosniff | 173 * X-Content-Type-Options: nosniff |
| 174 * X-XSS-Protection: 1; mode=block | 174 * X-XSS-Protection: 1; mode=block |
| 175 * | 175 * |
| 176 * If the `Server` header is added here and the `serverHeader` is set as | 176 * If the `Server` header is added here and the `serverHeader` is set as |
| 177 * well then the value of `serverHeader` takes precedence. | 177 * well then the value of `serverHeader` takes precedence. |
| 178 */ | 178 */ |
| 179 HttpHeaders get defaultResponseHeaders; | 179 HttpHeaders get defaultResponseHeaders; |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Get or set the timeout used for idle keep-alive connections. If no further | 182 * Get or set the timeout used for idle keep-alive connections. If no further |
| 183 * request is seen within [idleTimeout] after the previous request was | 183 * request is seen within [idleTimeout] after the previous request was |
| 184 * completed, the connection is dropped. | 184 * completed, the connection is dropped. |
| (...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 class RedirectException implements HttpException { | 1977 class RedirectException implements HttpException { |
| 1978 final String message; | 1978 final String message; |
| 1979 final List<RedirectInfo> redirects; | 1979 final List<RedirectInfo> redirects; |
| 1980 | 1980 |
| 1981 const RedirectException(this.message, this.redirects); | 1981 const RedirectException(this.message, this.redirects); |
| 1982 | 1982 |
| 1983 String toString() => "RedirectException: $message"; | 1983 String toString() => "RedirectException: $message"; |
| 1984 | 1984 |
| 1985 Uri get uri => redirects.last.location; | 1985 Uri get uri => redirects.last.location; |
| 1986 } | 1986 } |
| OLD | NEW |