@@ -994,6 +994,18 @@ because it also made sense to interpret the value as the number of bytes
994994read by the engine, but is inconsistent with other streams in Node.js that
995995expose values under these names.
996996
997+ <a id="DEP0109"></a>
998+ ### DEP0109: http, https, and tls support for invalid URLs
999+
1000+ Type: Runtime
1001+
1002+ Some previously supported (but strictly invalid) URLs were accepted through the
1003+ [`http.request()`][], [`http.get()`][], [`https.request()`][],
1004+ [`https.get()`][], and [`tls.checkServerIdentity()`][] APIs because those were
1005+ accepted by the legacy `url.parse()` API. The mentioned APIs now use the WHATWG
1006+ URL parser that requires strictly valid URLs. Passing an invalid URL is
1007+ deprecated and support will be removed in the future.
1008+
9971009[`--pending-deprecation`]: cli.html#cli_pending_deprecation
9981010[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
9991011[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array
@@ -1035,6 +1047,10 @@ expose values under these names.
10351047[`fs.read()`]: fs.html#fs_fs_read_fd_buffer_offset_length_position_callback
10361048[`fs.readSync()`]: fs.html#fs_fs_readsync_fd_buffer_offset_length_position
10371049[`fs.stat()`]: fs.html#fs_fs_stat_path_callback
1050+ [`http.get()`]: http.html#http_http_get_options_callback
1051+ [`http.request()`]: http.html#http_http_request_options_callback
1052+ [`https.get()`]: https.html#https_https_get_options_callback
1053+ [`https.request()`]: https.html#https_https_request_options_callback
10381054[`os.networkInterfaces`]: os.html#os_os_networkinterfaces
10391055[`os.tmpdir()`]: os.html#os_os_tmpdir
10401056[`process.env`]: process.html#process_process_env
@@ -1046,6 +1062,7 @@ expose values under these names.
10461062[`tls.SecureContext`]: tls.html#tls_tls_createsecurecontext_options
10471063[`tls.SecurePair`]: tls.html#tls_class_securepair
10481064[`tls.TLSSocket`]: tls.html#tls_class_tls_tlssocket
1065+ [`tls.checkServerIdentity()`]: tls.html#tls_tls_checkserveridentity_host_cert
10491066[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
10501067[`util._extend()`]: util.html#util_util_extend_target_source
10511068[`util.debug()`]: util.html#util_util_debug_string
0 commit comments