Skip to main content

Module links

Module links 

Source
Expand description

URL and link processing utilities.

Available with the url feature flag.

Functionsยง

filter
Filter links based on predicate.
get_domain
Extract domain from URL.
is_absolute
Check if URL is absolute (has scheme).
is_valid_url
Check if URL is valid (has scheme and host).
make_absolute
Make all relative URLs in document absolute.
normalize_url
Normalize URL (remove fragments, trailing slashes).
resolve
Resolve relative URL against base.
strip_all
Remove all links (keep text content).
urls_match
Check if two URLs point to same resource.