CFURLCopyHostName(_:)
Returns the host name of a given URL.
Declaration
func CFURLCopyHostName(_ anURL: CFURL!) -> CFString!Parameters
- anURL:
The
CFURLobject to examine.
Return Value
The host name of anURL. Ownership follows the create rule. See The Create Rule.
See Also
Accessing the Parts of a URL
CFURLCanBeDecomposed(_:)CFURLCopyFileSystemPath(_:_:)CFURLCopyFragment(_:_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyQueryString(_:_:)CFURLCopyResourceSpecifier(_:)CFURLCopyScheme(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)CFURLGetPortNumber(_:)