Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index 4ea77f72d75e5591bcb105d792c70036babb3d83..ea6527d9a7a403f8e4ff3c1ccf8108c51c6998f0 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -171,6 +171,14 @@ abstract class HttpServer implements Stream<HttpRequest> { |
* current connections handled by the server. |
*/ |
HttpConnectionsInfo connectionsInfo(); |
+ |
+ /** |
+ * Set and get the version of the [:HttpServer:]. The string will be set as |
Søren Gjesse
2013/06/11 11:02:00
Change
Set and get the version of the [:HttpSer
Anders Johnsen
2013/06/11 11:37:55
Done.
|
+ * the [:Server:] header field for all [HttpResponse]s. |
Søren Gjesse
2013/06/11 11:02:00
You can use ` ` instead of [: :].
Anders Johnsen
2013/06/11 11:37:55
Done.
|
+ * |
+ * If the version is set to [:null:]. the field won't be set. |
Søren Gjesse
2013/06/11 11:02:00
the field won't be set -> no default `Server` head
Anders Johnsen
2013/06/11 11:37:55
Done.
|
+ */ |
+ String version; |
Søren Gjesse
2013/06/11 11:02:00
This should be called serverHeader (or maybe even
Anders Johnsen
2013/06/11 11:37:55
Done.
|
} |
@@ -879,6 +887,14 @@ abstract class HttpClient { |
*/ |
Duration idleTimeout; |
+ /** |
+ * Set and get the user agent of the [:HttpClient:]. The string will be set as |
+ * the [:User-Agent:] header field for all [HttpClientRequest]s. |
+ * |
+ * If the version is set to [:null:]. the field won't be set. |
+ */ |
+ String userAgent; |
+ |
factory HttpClient() => new _HttpClient(); |
/** |