Contents

percentEncodedHost

The host URL subcomponent expressed as a URL-encoded string, or nil if not present.

Declaration

var percentEncodedHost: String? { get set }

Discussion

For example, in the URL http://www.example.com/index.html, the host is www.example.com.

If you set this value to something that is not a valid, percent-encoded string, this class throws an exception.

See Also

Accessing components in URL-encoded format