Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index f0c4282a228cd635f03d1ffa32a6f99872271c64..360e0e028aba11e5190fe9d17cd0a3a05f084086 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -179,6 +179,20 @@ abstract class HttpServer implements Stream<HttpRequest> { |
HttpHeaders get defaultResponseHeaders; |
/** |
+ * Get and set if the [HttpServer] should auto-compress the content, when |
Lasse Reichstein Nielsen
2014/09/23 07:24:52
Other documentation doesn't use "get and set".
Thi
Anders Johnsen
2014/09/23 08:35:34
Done.
|
+ * possible. |
+ * |
+ * The [HttpServer] will only compress when the response is using chunked |
+ * Transfer-Encoding and the incoming request has `gzip` set in the |
+ * Accept-Encoding header. |
+ * |
+ * To disable, set to `false`. |
Lasse Reichstein Nielsen
2014/09/23 07:24:52
Combine the two short paragrahps?
"The default val
Anders Johnsen
2014/09/23 08:35:34
Done.
|
+ * |
+ * The default value is `true`. |
Søren Gjesse
2014/09/23 07:56:23
I know the current default is true, but we should
Anders Johnsen
2014/09/23 08:35:34
Done.
|
+ */ |
+ bool autoCompress; |
Lasse Reichstein Nielsen
2014/09/23 07:24:52
If you can enable and disable it, should it still
Anders Johnsen
2014/09/23 08:35:34
Done.
|
+ |
+ /** |
* Get or set the timeout used for idle keep-alive connections. If no further |
* request is seen within [idleTimeout] after the previous request was |
* completed, the connection is dropped. |