From 537f33351e3473f10eb9cecff2d01542533c0616 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 3 Jul 2016 22:55:23 -0700 Subject: [PATCH] doc: fix minor style issues in http.md PR-URL: https://github.com/nodejs/node/pull/7528 Reviewed-By: Anna Henningsen --- doc/api/http.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 3ea67e7ac27efa..4723ebfcd1c12d 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -523,8 +523,8 @@ already been bound to a port or domain socket. Listening on a file descriptor is not supported on Windows. -This function is asynchronous. The last parameter `callback` will be added as -a listener for the `'listening'` event. See also [`net.Server.listen()`][]. +This function is asynchronous. `callback` will be added as a listener for the +`'listening'` event. See also [`net.Server.listen()`][]. Returns `server`. @@ -532,8 +532,8 @@ Returns `server`. Start a UNIX socket server listening for connections on the given `path`. -This function is asynchronous. The last parameter `callback` will be added as -a listener for the `'listening'` event. See also [`net.Server.listen(path)`][]. +This function is asynchronous. `callback` will be added as a listener for the +`'listening'` event. See also [`net.Server.listen(path)`][]. ### server.listen(port[, hostname][, backlog][, callback]) @@ -549,8 +549,8 @@ The actual length will be determined by your OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on linux. The default value of this parameter is 511 (not 512). -This function is asynchronous. The last parameter `callback` will be added as -a listener for the `'listening'` event. See also [`net.Server.listen(port)`][]. +This function is asynchronous. `callback` will be added as a listener for the +`'listening'` event. See also [`net.Server.listen(port)`][]. ### server.maxHeadersCount @@ -783,8 +783,8 @@ be called multiple times to provide successive parts of the body. `chunk` can be a string or a buffer. If `chunk` is a string, the second parameter specifies how to encode it into a byte stream. -By default the `encoding` is `'utf8'`. The last parameter `callback` -will be called when this chunk of data is flushed. +By default the `encoding` is `'utf8'`. `callback` will be called when this chunk +of data is flushed. **Note**: This is the raw HTTP body and has nothing to do with higher-level multi-part body encodings that may be used. @@ -1010,7 +1010,7 @@ $ node } ``` -If you would like to extract the params from the query string, +If you would like to extract the parameters from the query string, you can use the `require('querystring').parse` function, or pass `true` as the second argument to `require('url').parse`. Example: