Returns the character set for characters allowed in a user URL subcomponent.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
class var urlUserAllowed: Character Set { get }
Discussion
The user component of a URL is an optional component that precedes the host component, and ends at either a colon (if a password is specified) or an @
sign (if no password is specified). For example, in the URL http://username:
, the user component is username
.