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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 * }); | 142 * }); |
143 * }); | 143 * }); |
144 * } | 144 * } |
145 * | 145 * |
146 * ## Other resources | 146 * ## Other resources |
147 * | 147 * |
148 * * HttpServer is a Stream. Refer to the [Stream] class for information | 148 * * HttpServer is a Stream. Refer to the [Stream] class for information |
149 * about the streaming qualities of an HttpServer. | 149 * about the streaming qualities of an HttpServer. |
150 * Pausing the subscription of the stream, pauses at the OS level. | 150 * Pausing the subscription of the stream, pauses at the OS level. |
151 * | 151 * |
152 * * The [http_server](https://pub.dartlang.org/packages/http_server) | 152 * * The [self](https://pub.dartlang.org/packages/shelf) |
dgrove
2016/10/06 04:14:09
shelf
kevmoo
2016/10/06 04:16:26
Done.
| |
153 * package on pub.dartlang.org contains a set of high-level classes that, | 153 * package on pub.dartlang.org contains a set of high-level classes that, |
154 * together with this class, makes it easy to provide content through HTTP | 154 * together with this class, makes it easy to provide content through HTTP |
155 * servers. | 155 * servers. |
156 */ | 156 */ |
157 abstract class HttpServer implements Stream<HttpRequest> { | 157 abstract class HttpServer implements Stream<HttpRequest> { |
158 /** | 158 /** |
159 * Get and set the default value of the `Server` header for all responses | 159 * Get and set the default value of the `Server` header for all responses |
160 * generated by this [HttpServer]. | 160 * generated by this [HttpServer]. |
161 * | 161 * |
162 * If [serverHeader] is `null`, no `Server` header will be added to each | 162 * If [serverHeader] is `null`, no `Server` header will be added to each |
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2024 class RedirectException implements HttpException { | 2024 class RedirectException implements HttpException { |
2025 final String message; | 2025 final String message; |
2026 final List<RedirectInfo> redirects; | 2026 final List<RedirectInfo> redirects; |
2027 | 2027 |
2028 const RedirectException(this.message, this.redirects); | 2028 const RedirectException(this.message, this.redirects); |
2029 | 2029 |
2030 String toString() => "RedirectException: $message"; | 2030 String toString() => "RedirectException: $message"; |
2031 | 2031 |
2032 Uri get uri => redirects.last.location; | 2032 Uri get uri => redirects.last.location; |
2033 } | 2033 } |
OLD | NEW |