Chromium Code Reviews| 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 #library("http"); | 5 #library("http"); |
| 6 #import("dart:io"); | 6 #import("dart:io"); |
| 7 #source("http_impl.dart"); | 7 #source("http_impl.dart"); |
| 8 #source("../../runtime/bin/buffer_list.dart"); | |
|
Anders Johnsen
2012/02/28 12:23:40
We don't expose these in dart:io?
Søren Gjesse
2012/02/28 13:03:42
No, they only contains private classes. When this
| |
| 9 #source("../../runtime/bin/stream_util.dart"); | |
| 8 | 10 |
| 9 /** | 11 /** |
| 10 * HTTP status codes. | 12 * HTTP status codes. |
| 11 */ | 13 */ |
| 12 interface HTTPStatus { | 14 interface HTTPStatus { |
| 13 static final int CONTINUE = 100; | 15 static final int CONTINUE = 100; |
| 14 static final int SWITCHING_PROTOCOLS = 101; | 16 static final int SWITCHING_PROTOCOLS = 101; |
| 15 static final int OK = 200; | 17 static final int OK = 200; |
| 16 static final int CREATED = 201; | 18 static final int CREATED = 201; |
| 17 static final int ACCEPTED = 202; | 19 static final int ACCEPTED = 202; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 361 */ | 363 */ |
| 362 void set dataEnd(void callback(String data)); | 364 void set dataEnd(void callback(String data)); |
| 363 } | 365 } |
| 364 | 366 |
| 365 | 367 |
| 366 class HTTPException implements Exception { | 368 class HTTPException implements Exception { |
| 367 const HTTPException([String this.message = ""]); | 369 const HTTPException([String this.message = ""]); |
| 368 String toString() => "HTTPException: $message"; | 370 String toString() => "HTTPException: $message"; |
| 369 final String message; | 371 final String message; |
| 370 } | 372 } |
| OLD | NEW |