The path, conforming to RFC 1808. (read-only)
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
This property contains the path, unescaped using the
replacing method. If the receiver does not conform to RFC 1808, this property contains
If the receiver contains a file or file reference URL (as determined with
is), this property’s value is suitable for input into methods of
NSPath. If the path has a trailing slash, it is stripped.
If the receiver contains a file reference URL, this property’s value provides the current path for the referenced resource, which may be
nil if the resource no longer exists.
parameter property contains a non-
nil value, the path may be incomplete. If the receiver contains an unencoded semicolon, the path property ends at the character before the semicolon. The remainder of the URL is provided in the
To obtain the complete path, if
parameter contains a non-
nil value, append a semicolon, followed by the parameter string.
Per RFC 3986, the leading slash after the authority (host name and port) portion is treated as part of the path. For example, in the URL
http://www, the path is