Skip to content

Commit e42869f

Browse files
SequoiaMichael Scovetta
authored and
Michael Scovetta
committed
doc: document http's server.listen return value
The server method returns `self` in order to allow chaining. PR-URL: nodejs#4590 Fixes: nodejs#4571 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 6e099fd commit e42869f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/http.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ Listening on a file descriptor is not supported on Windows.
511511
This function is asynchronous. The last parameter `callback` will be added as
512512
a listener for the `'listening'` event. See also [`net.Server.listen()`][].
513513

514+
Returns `server`.
515+
514516
### server.listen(path[, callback])
515517

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

0 commit comments

Comments
 (0)