Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b181e26

Browse filesBrowse files
SequoiaMyles Borins
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 9accebe commit b181e26
Copy full SHA for b181e26

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/http.markdown‎

Copy file name to clipboardExpand all lines: doc/api/http.markdown
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.