Index: runtime/bin/http.dart |
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart |
index 40bbc7a3c5cb75ee0e194a0ba21c9940de19677a..30671b1b4141849ed1295723ea09e947a3c1ef4d 100644 |
--- a/runtime/bin/http.dart |
+++ b/runtime/bin/http.dart |
@@ -177,6 +177,12 @@ interface HttpResponse default _HttpResponse { |
String reasonPhrase; |
/** |
+ * Gets and sets the expiry date. The value of this property will |
+ * reflect the "Expires" header |
+ */ |
+ Date expires; |
+ |
+ /** |
* 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. |
@@ -336,6 +342,14 @@ interface HttpClientResponse default _HttpClientResponse { |
bool get keepAlive(); |
/** |
+ * Returns the date value for the "Expires" header. Returns null if |
+ * the response has no "Expires" header. Throws a HttpException if |
+ * the response has an "Expires" header which is not formatted as a |
+ * valid HTTP date. |
+ */ |
+ Date get expires(); |
+ |
+ /** |
* Returns the response headers. |
*/ |
Map get headers(); |