Skip to content

Commit 537f333

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: fix minor style issues in http.md
PR-URL: #7528 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 33a08b0 commit 537f333

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/api/http.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -523,17 +523,17 @@ already been bound to a port or domain socket.
523523

524524
Listening on a file descriptor is not supported on Windows.
525525

526-
This function is asynchronous. The last parameter `callback` will be added as
527-
a listener for the `'listening'` event. See also [`net.Server.listen()`][].
526+
This function is asynchronous. `callback` will be added as a listener for the
527+
`'listening'` event. See also [`net.Server.listen()`][].
528528

529529
Returns `server`.
530530

531531
### server.listen(path[, callback])
532532

533533
Start a UNIX socket server listening for connections on the given `path`.
534534

535-
This function is asynchronous. The last parameter `callback` will be added as
536-
a listener for the `'listening'` event. See also [`net.Server.listen(path)`][].
535+
This function is asynchronous. `callback` will be added as a listener for the
536+
`'listening'` event. See also [`net.Server.listen(path)`][].
537537

538538
### server.listen(port[, hostname][, backlog][, callback])
539539

@@ -549,8 +549,8 @@ The actual length will be determined by your OS through sysctl settings such as
549549
`tcp_max_syn_backlog` and `somaxconn` on linux. The default value of this
550550
parameter is 511 (not 512).
551551

552-
This function is asynchronous. The last parameter `callback` will be added as
553-
a listener for the `'listening'` event. See also [`net.Server.listen(port)`][].
552+
This function is asynchronous. `callback` will be added as a listener for the
553+
`'listening'` event. See also [`net.Server.listen(port)`][].
554554

555555
### server.maxHeadersCount
556556

@@ -783,8 +783,8 @@ be called multiple times to provide successive parts of the body.
783783

784784
`chunk` can be a string or a buffer. If `chunk` is a string,
785785
the second parameter specifies how to encode it into a byte stream.
786-
By default the `encoding` is `'utf8'`. The last parameter `callback`
787-
will be called when this chunk of data is flushed.
786+
By default the `encoding` is `'utf8'`. `callback` will be called when this chunk
787+
of data is flushed.
788788

789789
**Note**: This is the raw HTTP body and has nothing to do with
790790
higher-level multi-part body encodings that may be used.
@@ -1010,7 +1010,7 @@ $ node
10101010
}
10111011
```
10121012

1013-
If you would like to extract the params from the query string,
1013+
If you would like to extract the parameters from the query string,
10141014
you can use the `require('querystring').parse` function, or pass
10151015
`true` as the second argument to `require('url').parse`. Example:
10161016

0 commit comments

Comments
 (0)