Skip to main content

join_href

Function join_href 

Source
pub fn join_href(base: &Url, href: &str) -> AppResult<String>
Expand description

Join relative/absolute href against crate rustdoc base (same-origin).

Prefer resolve_hit_url in hit classification (soft-skip). This wrapper maps off-origin / join failure to crate::error::ErrorKind::Parse for callers that want a hard error.

ยงErrors

Returns crate::error::ErrorKind::Parse when the href is off-origin or not joinable.