urlHostAllowed
Returns the character set for characters allowed in a host URL subcomponent.
Declaration
class var urlHostAllowed: CharacterSet { get }Discussion
The host component of a URL is usually the component immediately after the first two leading slashes. If the URL contains a username and password, the host component is the component after the @ sign. For example, in the URL http://username:password@www.example.com/index.html, the host component is www.example.com.