Chromium Code Reviews| Index: runtime/bin/http.dart |
| diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart |
| index 2969b76a98cb6fc2ebed7ebc6a351cf1754762af..67541f78879e0bb13788d0fa829c12925273c464 100644 |
| --- a/runtime/bin/http.dart |
| +++ b/runtime/bin/http.dart |
| @@ -166,6 +166,21 @@ interface HttpResponse default _HttpResponse { |
| bool get keepAlive(); |
| /** |
| + * Gets and sets the status code. Any integer value is accepted, but |
| + * for the official HTTP status codes use the fields from |
| + * [HttpStatus]. |
| + */ |
| + int get statusCode(); |
|
Mads Ager (google)
2012/02/29 12:34:12
These in the interface should just be
int statusC
Søren Gjesse
2012/02/29 12:50:07
Good point. Did the same for contentLength and kee
|
| + void set statusCode(int statusCode); |
| + |
| + /** |
| + * Gets and sets the reason phrase. If no reason phrase is explicitly |
| + * set a default reason phrase is provided. |
| + */ |
| + String get reasonPhrase(); |
| + void set reasonPhrase(String reasonPhrase); |
| + |
| + /** |
| * Sets a header on the response. NOTE: If the same header name is |
| * set more than once only the last value will be part of the |
| * response. |