public static class NetworkHostAndPort.Companion
public NetworkHostAndPort parse(java.lang.String str)
Parses a string of the form host:port into a
The host part may be a hostname or IP address. If it's an IPv6 address, it must be enclosed in square brackets.
Note this does not parse the toString of a resolved java.net.InetSocketAddress, which is of a host/IP:port form.