Type Property

URLHostAllowedCharacterSet

Returns the character set for characters allowed in a host URL subcomponent.

Declaration

@property(class, readonly, copy) NSCharacterSet *URLHostAllowedCharacterSet;

Discussion

The host component of a URL is usually the component immediately after the first two leading slashes. If the URL contains a username and password, the host component is the component after the @ sign. For example, in the URL http://username:password@www.example.com/index.html, the host component is www.example.com.

See Also

Getting Character Sets for URL Encoding

URLFragmentAllowedCharacterSet

Returns the character set for characters allowed in a fragment URL component.

URLPasswordAllowedCharacterSet

Returns the character set for characters allowed in a password URL subcomponent.

URLPathAllowedCharacterSet

Returns the character set for characters allowed in a path URL component.

URLQueryAllowedCharacterSet

Returns the character set for characters allowed in a query URL component.

URLUserAllowedCharacterSet

Returns the character set for characters allowed in a user URL subcomponent.

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