什么是对URL(字符串:)有效但对URLComponents(字符串:)无效的字符串示例?

时间:2017-12-25 22:23:28

标签: swift url foundation rfc3986

如果字符串不代表RFC 1808中定义的URL,则

Foundation's URL(string:) initializer可能会失败。

如果字符串不代表RFC 3986中定义的URL,则

The URLComponents(string:) initializer可能会失败。

URL(string:)返回URLURLComponents(string:)返回nil的字符串示例是什么? (是否存在根据RFC 1808有效但根据RFC 3986无效的URL字符串?)

0 个答案:

没有答案
相关问题