Skip to content

Commit b181e26

Browse files
SequoiaMyles Borins
authored and
Myles Borins
committedJan 12, 2016
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 <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 9accebe commit b181e26

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
@@ -506,6 +506,8 @@ Listening on a file descriptor is not supported on Windows.
506506
This function is asynchronous. The last parameter `callback` will be added as
507507
a listener for the `'listening'` event. See also [`net.Server.listen()`][].
508508

509+
Returns `server`.
510+
509511
### server.listen(path[, callback])
510512

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

0 commit comments

Comments
 (0)
Please sign in to comment.