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


类型: 生命结束

一些以前支持(但严格无效)的 URL 已通过 http.request()http.get()https.request()https.get()tls.checkServerIdentity() API 接受,因为它们已被旧版的 url.parse() API 接受。 上述 API 现在使用 WHATWG URL 解析器,它需要严格有效的 URL。 传入无效的 URL 已被弃用,未来将删除支持。

Type: End-of-Life

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.