Module url

Module url 

Source

Statics§

LINK_FINDER 🔒

Traits§

ReqwestUrlExt 🔒

Functions§

find_links 🔒
is_root_relative_link 🔒
Returns whether the text represents a root-relative link. These look like /this and are resolved relative to a base URL’s origin. This can also be called “domain-relative URL” (by MDN) and “path-absolute-URL string” (by WHATWG). From MDN:
is_scheme_relative_link 🔒
Returns whether the text represents a scheme-relative link. These look like //example.com/subpath. From MDN:
parse_url_or_path 🔒
Attempts to parse a string which might represent a URL or a filesystem path. Returns Ok if it is unambiguously a valid URL, otherwise returns Err with the original input.