Crate psl_lexer

Crate psl_lexer 

Source
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§

pub use errors::Error;
pub use errors::Result;

Modules§

errors
Errors returned by this library

Structs§

List
Stores the public suffix list
Suffix

Enums§

Type

Constants§

LIST_URL
The official URL of the list

Traits§

IntoUrl
Converts a type into a Url object

Functions§

request