Skip to content

Commit 9456f50

Browse files
Sequoiasilverwind
authored andcommitted
doc: document http's server.listen return value
The server method returns `self` in order to allow chaining. PR-URL: #4590 Fixes: #4571 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent adf41b9 commit 9456f50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/http.markdown

Lines changed: 2 additions & 0 deletions
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)