parse
The bytes of an IPv4 or IPv6 literal, or null if text is none. The grammar is RFC 3986 §3.2.2's IPv4address and IPv6address: a decimal octet has no leading zero and a group is one to four hex digits, without a sign. Other text is a name, not an address: 010.0.0.1 is no literal, since RFC 3986 §7.4 warns that resolvers may read it as octal, an address other than 10.0.0.1.