Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Unified Diff: sdk/lib/io/http.dart

Issue 277783002: dart:io HttpServer.serverHeader - tweaks to doc comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 371543fa505218bff53794166aa9ea4a4292729d..21b177d84eaf5a41d1b6daf9e5904a4a2b41326f 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -94,9 +94,9 @@ abstract class HttpStatus {
* Use [bindSecure] to create an HTTPS server.
*
* The server presents a certificate to the client. In the following
- * example, the certificate is named `localhost_cert` and comes from
+ * example, the certificate is named `localhost_cert` and comes from
* the database found in the `pkcert` directory.
- *
+ *
* import 'dart:io';
* import "dart:isolate";
*
@@ -145,7 +145,7 @@ abstract class HttpStatus {
* * HttpServer is a Stream. Refer to the [Stream] class for information
* about the streaming qualities of an HttpServer.
* Pausing the subscription of the stream, pauses at the OS level.
- *
+ *
* * The [http_server](https://pub.dartlang.org/packages/http_server)
* package on pub.dartlang.org contains a set of high-level classes that,
* together with this class, makes it easy to provide content through HTTP
@@ -153,11 +153,13 @@ abstract class HttpStatus {
*/
abstract class HttpServer implements Stream<HttpRequest> {
/**
- * Set and get the default value of the `Server` header for all responses
- * generated by this [HttpServer]. By default, it's disabled.
+ * Get and set the default value of the `Server` header for all responses
+ * generated by this [HttpServer].
+ *
+ * If [serverHeader] is `null`, no `Server` header will be added to each
+ * response.
*
- * If the serverHeader is set to `null`, no default `Server` header will be
- * added to each response.
+ * The default value is `null`.
*/
String serverHeader;
@@ -987,7 +989,7 @@ abstract class HttpRequest implements Stream<List<int>> {
* The server sends its response to the client by writing to the
* HttpResponse object.
*
- * ## Writing the response
+ * ## Writing the response
*
* This class implements [IOSink].
* After the header has been set up, the methods
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698