* Splits string into host and port parts. * string must be in ( host ~ ":" ~ port ) format. * Port is optional * @param from string to parse * @return array of host and port strings
This method resolves the localhost in a 'lazy manner'.
* Creates HostAndPort instance from string. * string must be in ( host ~ ":" ~ port ) format. * Port is mandatory. Can convert host part. * @see #convertHost(string) * @param from string to parse * @return HostAndPort instance