doc: document http's server.listen return value
authorSequoia McDowell <sequoia.mcdowell@gmail.com>
Fri, 8 Jan 2016 18:27:44 +0000 (13:27 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:37 +0000 (11:52 -0800)
The server method returns `self` in order to allow chaining.

PR-URL: https://github.com/nodejs/node/pull/4590
Fixes: https://github.com/nodejs/node/issues/4571
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
doc/api/http.markdown

index 5540dc6..3904dd2 100644 (file)
@@ -506,6 +506,8 @@ Listening on a file descriptor is not supported on Windows.
 This function is asynchronous. The last parameter `callback` will be added as
 a listener for the `'listening'` event. See also [`net.Server.listen()`][].
 
+Returns `server`.
+
 ### server.listen(path[, callback])
 
 Start a UNIX socket server listening for connections on the given `path`.