| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 /** | 264 /** |
| 265 * Remove all values for the specified header name. Some headers | 265 * Remove all values for the specified header name. Some headers |
| 266 * have system supplied values and for these the system supplied | 266 * have system supplied values and for these the system supplied |
| 267 * values will still be added to the collection of values for the | 267 * values will still be added to the collection of values for the |
| 268 * header. | 268 * header. |
| 269 */ | 269 */ |
| 270 void removeAll(String name); | 270 void removeAll(String name); |
| 271 | 271 |
| 272 /** | 272 /** |
| 273 * Enumerate the headers applying the function [f] to each | 273 * Enumerate the headers applying the function [f] to each |
| 274 * header. The header names in passed in [name] will be all lower | 274 * header. The header names passed in [name] will be all lower |
| 275 * case. | 275 * case. |
| 276 */ | 276 */ |
| 277 void forEach(void f(String name, List<String> values)); | 277 void forEach(void f(String name, List<String> values)); |
| 278 | 278 |
| 279 /** | 279 /** |
| 280 * Gets and sets the date. The value of this property will | 280 * Gets and sets the date. The value of this property will |
| 281 * reflect the "Date" header | 281 * reflect the "Date" header |
| 282 */ | 282 */ |
| 283 Date date; | 283 Date date; |
| 284 | 284 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 Socket get socket(); | 590 Socket get socket(); |
| 591 List<int> get unparsedData(); | 591 List<int> get unparsedData(); |
| 592 } | 592 } |
| 593 | 593 |
| 594 | 594 |
| 595 class HttpException implements Exception { | 595 class HttpException implements Exception { |
| 596 const HttpException([String this.message = ""]); | 596 const HttpException([String this.message = ""]); |
| 597 String toString() => "HttpException: $message"; | 597 String toString() => "HttpException: $message"; |
| 598 final String message; | 598 final String message; |
| 599 } | 599 } |
| OLD | NEW |