1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
https://john.doe@www.example.com:123/forum/questions
ftp://ftp.is.co.za/rfc/rfc1808.txt
ldap://[2001:db8::7]/
https://[v1.foo]/
//192.0.2.16:80/
//example.com/path/resource.txt
----------------------------------------------------
[
["scheme", [
"https",
["scheme-delimiter", ":"]
]],
["authority", [
["authority-delimiter", "//"],
["user-info-segment", [
["user-info", "john.doe"],
["user-info-delimiter", "@"]
]],
["host", ["www.example.com"]],
["port-segment", [
["port-delimiter", ":"],
["port", "123"]
]]
]],
["path", [
["path-separator", "/"],
"forum",
["path-separator", "/"],
"questions"
]],
["scheme", [
"ftp",
["scheme-delimiter", ":"]
]],
["authority", [
["authority-delimiter", "//"],
["host", ["ftp.is.co.za"]]
]],
["path", [
["path-separator", "/"],
"rfc",
["path-separator", "/"],
"rfc1808.txt"
]],
["scheme", [
"ldap",
["scheme-delimiter", ":"]
]],
["authority", [
["authority-delimiter", "//"],
["host", [
["ip-literal", [
["ip-literal-delimiter", "["],
["ipv6-address", "2001:db8::7"],
["ip-literal-delimiter", "]"]
]]
]]
]],
["path", [
["path-separator", "/"]
]],
["scheme", [
"https",
["scheme-delimiter", ":"]
]],
["authority", [
["authority-delimiter", "//"],
["host", [
["ip-literal", [
["ip-literal-delimiter", "["],
["ipv-future", "v1.foo"],
["ip-literal-delimiter", "]"]
]]
]]
]],
["path", [
["path-separator", "/"]
]],
["authority", [
["authority-delimiter", "//"],
["host", [
["ipv4-address", "192.0.2.16"]
]],
["port-segment", [
["port-delimiter", ":"],
["port", "80"]
]]
]],
["path", [
["path-separator", "/"]
]],
["authority", [
["authority-delimiter", "//"],
["host", ["example.com"]]
]],
["path", [
["path-separator", "/"],
"path",
["path-separator", "/"],
"resource.txt"
]]
]