Skip to main content

resolve_url

Function resolve_url 

Source
pub fn resolve_url(href: &str, base_url: Option<&Url>) -> Option<String>
Expand description

将 href 属性值解析为绝对 URL。

支持相对路径解析(基于 base_url)以及协议相对 URL(//example.com/path)。