Instance Property

percentEncodedUser

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

Declaration

var percentEncodedUser: String? { get set }

Discussion

For example, in the URL http://username:password@www.example.com/index.html, the user is username.

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

var percentEncodedFragment: String?

The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present.

var percentEncodedHost: String?

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

var percentEncodedPassword: String?

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

var percentEncodedPath: String?

The path URL component expressed as a URL-encoded string, or nil if not present.

var percentEncodedQuery: String?

The query URL component expressed as a URL-encoded string, or nil if not present.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software