DEP0109:对无效 URL 的 http、https 和 tls 支持
【DEP0109: http, https, and tls support for invalid URLs】
类型:寿命终止
【Type: End-of-Life】
以前一些曾被支持过(但严格来说无效的)URL 可以通过 http.request()、http.get()、https.request()、https.get() 和 tls.checkServerIdentity() API 被接受,这是因为这些 URL 在旧版的 url.parse() API 中是被接受的。上述 API 现在使用要求严格有效 URL 的 WHATWG URL 解析器。传递无效 URL 已被弃用,未来将取消支持。
【Some previously supported (but strictly invalid) URLs were accepted through the
http.request(), http.get(), https.request(),
https.get(), and tls.checkServerIdentity() APIs because those were
accepted by the legacy url.parse() API. The mentioned APIs now use the WHATWG
URL parser that requires strictly valid URLs. Passing an invalid URL is
deprecated and support will be removed in the future.】