DEP0109:http、https 和 tls 对无效 URL 的支持


¥DEP0109: http, https, and tls support for invalid URLs

类型:生命结束

¥Type: End-of-Life

通过 http.request()http.get()https.request()https.get()tls.checkServerIdentity() API 接受了一些以前支持(但严格无效)的 URL,因为这些 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.