@@ -994,6 +994,18 @@ because it also made sense to interpret the value as the number of bytes
994
994
read by the engine, but is inconsistent with other streams in Node.js that
995
995
expose values under these names.
996
996
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
+
997
1009
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
998
1010
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
999
1011
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array
@@ -1035,6 +1047,10 @@ expose values under these names.
1035
1047
[`fs.read()`]: fs.html#fs_fs_read_fd_buffer_offset_length_position_callback
1036
1048
[`fs.readSync()`]: fs.html#fs_fs_readsync_fd_buffer_offset_length_position
1037
1049
[`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
1038
1054
[`os.networkInterfaces`]: os.html#os_os_networkinterfaces
1039
1055
[`os.tmpdir()`]: os.html#os_os_tmpdir
1040
1056
[`process.env`]: process.html#process_process_env
@@ -1046,6 +1062,7 @@ expose values under these names.
1046
1062
[`tls.SecureContext`]: tls.html#tls_tls_createsecurecontext_options
1047
1063
[`tls.SecurePair`]: tls.html#tls_class_securepair
1048
1064
[`tls.TLSSocket`]: tls.html#tls_class_tls_tlssocket
1065
+ [`tls.checkServerIdentity()`]: tls.html#tls_tls_checkserveridentity_host_cert
1049
1066
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
1050
1067
[`util._extend()`]: util.html#util_util_extend_target_source
1051
1068
[`util.debug()`]: util.html#util_util_debug_string
0 commit comments