Skip to main content

urljoin

Function urljoin 

Source
pub fn urljoin(
    base: &str,
    url: &str,
    allow_fragments: bool,
) -> Result<String, UrlError>
Expand description

Join a base URL and a possibly-relative URL into an absolute one. Port of urljoin.

Mirrors urllib.parse (which is intentionally not fully RFC 3986 compliant for backward compatibility), not the strict RFC algorithm.