Classes
The following classes are available globally.
-
TLDExtract is a class that extracts the top-level domain (TLD) from a given hostname. It can fetch the public suffix list from a remote source or use a frozen dataset.
Throws
Throws:
- TLDExtractError.pslParseError if there is an error while parsing the public suffix list.
Declaration
Swift
public class TLDExtract
Parameters
useFrozenData
A Boolean value indicating whether to use a pre-fetched public suffix list.