X Tutup
The Wayback Machine - https://web.archive.org/web/20220423231944/https://github.com/nodejs/node/pull/37586
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

Copy link
Member

@lpinca lpinca commented Mar 3, 2021

Add documentation for the localPort option.

@nodejs-github-bot nodejs-github-bot added doc http labels Mar 3, 2021
@@ -2447,6 +2447,7 @@ changes:
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
Member

@Trott Trott Mar 3, 2021

Choose a reason for hiding this comment

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

Nit: add default value?

Copy link
Member Author

@lpinca lpinca Mar 3, 2021

Choose a reason for hiding this comment

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

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

Copy link
Member Author

@lpinca lpinca Mar 3, 2021

Choose a reason for hiding this comment

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

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

@benjamingr
Copy link
Member

@benjamingr benjamingr commented Mar 10, 2021

Landed in 9092afd 🎉

@benjamingr benjamingr closed this Mar 10, 2021
benjamingr pushed a commit that referenced this issue Mar 10, 2021
PR-URL: #37586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@lpinca lpinca deleted the add/local-port-option branch Mar 10, 2021
danielleadams pushed a commit that referenced this issue 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 issue May 1, 2021
PR-URL: #37586
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@danielleadams danielleadams mentioned this pull request May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc http
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants
X Tutup