| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
| 6 * HTTP status codes. | 6 * HTTP status codes. |
| 7 */ | 7 */ |
| 8 interface HttpStatus { | 8 interface HttpStatus { |
| 9 static final int CONTINUE = 100; | 9 static final int CONTINUE = 100; |
| 10 static final int SWITCHING_PROTOCOLS = 101; | 10 static final int SWITCHING_PROTOCOLS = 101; |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 /** | 271 /** |
| 272 * Remove all values for the specified header name. Some headers | 272 * Remove all values for the specified header name. Some headers |
| 273 * have system supplied values and for these the system supplied | 273 * have system supplied values and for these the system supplied |
| 274 * values will still be added to the collection of values for the | 274 * values will still be added to the collection of values for the |
| 275 * header. | 275 * header. |
| 276 */ | 276 */ |
| 277 void removeAll(String name); | 277 void removeAll(String name); |
| 278 | 278 |
| 279 /** | 279 /** |
| 280 * Gets and sets the date. The value of this property will |
| 281 * reflect the "Date" header |
| 282 */ |
| 283 Date date; |
| 284 |
| 285 /** |
| 280 * Gets and sets the expiry date. The value of this property will | 286 * Gets and sets the expiry date. The value of this property will |
| 281 * reflect the "Expires" header | 287 * reflect the "Expires" header |
| 282 */ | 288 */ |
| 283 Date expires; | 289 Date expires; |
| 284 | 290 |
| 285 /** | 291 /** |
| 286 * Gets and sets the host part of the "Host" header for the | 292 * Gets and sets the host part of the "Host" header for the |
| 287 * connection. | 293 * connection. |
| 288 */ | 294 */ |
| 289 String host; | 295 String host; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 */ | 541 */ |
| 536 InputStream get inputStream(); | 542 InputStream get inputStream(); |
| 537 } | 543 } |
| 538 | 544 |
| 539 | 545 |
| 540 class HttpException implements Exception { | 546 class HttpException implements Exception { |
| 541 const HttpException([String this.message = ""]); | 547 const HttpException([String this.message = ""]); |
| 542 String toString() => "HttpException: $message"; | 548 String toString() => "HttpException: $message"; |
| 543 final String message; | 549 final String message; |
| 544 } | 550 } |
| OLD | NEW |