Skip to main content

parse_join_base

Function parse_join_base 

Source
fn parse_join_base(url: &str) -> Result<Url, ParseError>
Expand description

Parses a Url::join base, adding the trailing slash one needs: joining onto a base without it replaces the base’s last path segment instead of extending it.

On the parsed path, never the raw string: a slash appended to the string lands inside any query or fragment the value carries, and makes trailing whitespace the parser would have trimmed interior, where it percent-encodes instead.