@@ -523,17 +523,17 @@ already been bound to a port or domain socket.
523
523
524
524
Listening on a file descriptor is not supported on Windows.
525
525
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() ` ] [ ] .
528
528
529
529
Returns ` server ` .
530
530
531
531
### server.listen(path[ , callback] )
532
532
533
533
Start a UNIX socket server listening for connections on the given ` path ` .
534
534
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) ` ] [ ] .
537
537
538
538
### server.listen(port[ , hostname] [ , backlog ] [ , callback] )
539
539
@@ -549,8 +549,8 @@ The actual length will be determined by your OS through sysctl settings such as
549
549
` tcp_max_syn_backlog ` and ` somaxconn ` on linux. The default value of this
550
550
parameter is 511 (not 512).
551
551
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) ` ] [ ] .
554
554
555
555
### server.maxHeadersCount
556
556
@@ -783,8 +783,8 @@ be called multiple times to provide successive parts of the body.
783
783
784
784
` chunk ` can be a string or a buffer. If ` chunk ` is a string,
785
785
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.
788
788
789
789
** Note** : This is the raw HTTP body and has nothing to do with
790
790
higher-level multi-part body encodings that may be used.
@@ -1010,7 +1010,7 @@ $ node
1010
1010
}
1011
1011
```
1012
1012
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,
1014
1014
you can use the ` require('querystring').parse ` function, or pass
1015
1015
` true ` as the second argument to ` require('url').parse ` . Example:
1016
1016
0 commit comments