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

Unified Diff: runtime/bin/http.dart

Issue 10378046: Update HTTP server documentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: runtime/bin/http.dart
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
index 9061bee76cb68f901d360a2b13b150c44833641b..8d56dc6f5d5f61c386fd06d73b976a3dac2eb7fd 100644
--- a/runtime/bin/http.dart
+++ b/runtime/bin/http.dart
@@ -60,18 +60,18 @@ interface HttpServer default _HttpServer {
/**
* Start listening for HTTP requests on the specified [host] and
- * [port]. For each HTTP request the handler set through [onRequest]
- * will be invoked. If a [port] of 0 is specified the server will
- * choose an ephemeral port. The optional argument [backlog] can be
- * used to specify the listen backlog for the underlying OS listen
- * setup.
+ * [port]. If a [port] of 0 is specified the server will choose an
+ * ephemeral port. The optional argument [backlog] can be used to
+ * specify the listen backlog for the underlying OS listen
+ * setup. See [addRequestHandler] and [defaultRequestHandler] for
+ * information on how incoming HTTP requests are handled.
*/
void listen(String host, int port, [int backlog]);
/**
- * Attach the HTTP server to an existing ServerSocket. If the HttpServer is
- * closed, the HttpServer will just detach itself, and not close
- * [serverSocket].
+ * Attach the HTTP server to an existing [:ServerSocket:]. If the
+ * [HttpServer] is closed, the [HttpServer] will just detach itself,
+ * and not close [serverSocket].
*/
void listenOn(ServerSocket serverSocket);
@@ -271,7 +271,7 @@ interface HttpHeaders default _HttpHeaders {
/**
* Enumerate the headers applying the function [f] to each
- * header. The header names passed in [name] will be all lower
+ * header. The header name passed in [name] will be all lower
* case.
*/
void forEach(void f(String name, List<String> values));
« 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