FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: add localPort to http.request() options by lpinca · Pull Request #37586 · nodejs/node · GitHub

/ node Public

doc: add localPort to http.request() options - #37586

Closed
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:add/local-port-option
Closed

doc: add localPort to http.request() options#37586
lpinca wants to merge 1 commit into
nodejs:masterfrom
lpinca:add/local-port-option

Conversation

lpinca commented Mar 3, 2021
edited
Loading

Copy link
Copy Markdown
Member

Add documentation for the localPort option.

nodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. labels Mar 3, 2021
Comment thread doc/api/http.md
avoided. See [`--insecure-http-parser`][] for more information.
**Default:** `false`
* `localAddress` {string} Local interface to bind for network connections.
* `localPort` {number} Local port to connect from.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: add default value?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It's not a constant. Is "OS selected" ok?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If we add it, I think we should also add it here https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener.

Copy link
Copy Markdown
Member

Landed in 9092afd 🎉

benjamingr closed this Mar 10, 2021
benjamingr pushed a commit that referenced this pull request Mar 10, 2021
PR-URL: #37586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
lpinca deleted the add/local-port-option branch March 10, 2021 16:26
danielleadams pushed a commit that referenced this pull request Mar 16, 2021
PR-URL: #37586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
targos pushed a commit that referenced this pull request May 1, 2021
PR-URL: #37586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
danielleadams mentioned this pull request May 3, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL