Expand description
Public Suffix List Lexer
All this library does is provide methods for fetching and parsing
Mozilla’s Public Suffix List. You may be interested in higher level
libraries like psl
.
§Examples
use psl_lexer::List;
// Fetch the list from the official URL,
let list = List::fetch()?;
// from your own URL
let list = List::from_url("https://example.com/path/to/public_suffix_list.dat")?;
// or from a local file.
let list = List::from_path("/path/to/public_suffix_list.dat")?;
Re-exports§
Modules§
- errors
- Errors returned by this library
Structs§
Enums§
Constants§
- LIST_
URL - The official URL of the list
Traits§
- IntoUrl
- Converts a type into a Url object