Instance Property

percentEncodedPath

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

Declaration

var percentEncodedPath: String? { get set }

Discussion

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

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 percentEncodedQuery: String?

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

var percentEncodedUser: String?

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