host
The host, conforming to RFC 1808. (read-only)
Declaration
var host: String? { get }Discussion
This property contains the host, unescaped using the replacingPercentEscapes(using:) method. If the receiver does not conform to RFC 1808, this property contains nil. For example, in the URL http://www.example.com/index.html, the host is www.example.com.