-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
tls,http,https: replace url.parse() with WHATWG URL parser #20270
Closed
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4d78329
http: replace url.parse() with WHATWG URL parser
Hackzzila 7e8d81f
doc: fix order of links
Hackzzila 5c591ea
http,tls: switch to WHATWG URL parser and add url.parse() fallback
Hackzzila 3b20da1
test: add tests for invalid url deprecations and correct hostname checks
Hackzzila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,7 @@ changes: | |
Like [`http.get()`][] but for HTTPS. | ||
|
||
`options` can be an object, a string, or a [`URL`][] object. If `options` is a | ||
string, it is automatically parsed with [`url.parse()`][]. If it is a [`URL`][] | ||
string, it is automatically parsed with [`new URL()`][]. If it is a [`URL`][] | ||
object, it will be automatically converted to an ordinary `options` object. | ||
|
||
Example: | ||
|
@@ -174,7 +174,7 @@ The following additional `options` from [`tls.connect()`][] are also accepted: | |
`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext` | ||
|
||
`options` can be an object, a string, or a [`URL`][] object. If `options` is a | ||
string, it is automatically parsed with [`url.parse()`][]. If it is a [`URL`][] | ||
string, it is automatically parsed with [`new URL()`][]. If it is a [`URL`][] | ||
object, it will be automatically converted to an ordinary `options` object. | ||
|
||
Example: | ||
|
@@ -346,6 +346,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p | |
|
||
[`Agent`]: #https_class_https_agent | ||
[`URL`]: url.html#url_the_whatwg_url_api | ||
[`new URL()`]: url.html#url_constructor_new_url_input_base | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A nit: it seems this should go after There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, fixed in the latest commit. |
||
[`http.Agent`]: http.html#http_class_http_agent | ||
[`http.Server#keepAliveTimeout`]: http.html#http_server_keepalivetimeout | ||
[`http.Server#setTimeout()`]: http.html#http_server_settimeout_msecs_callback | ||
|
@@ -362,4 +363,3 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p | |
[`tls.connect()`]: tls.html#tls_tls_connect_options_callback | ||
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options | ||
[`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener | ||
[`url.parse()`]: url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nit: it seems this should go after
[`net.createConnection()`]:
ABC-wise.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, fixed in the latest commit.