Skip to main content

is_plain_path

Function is_plain_path 

Source
pub fn is_plain_path(path: &str) -> bool
Expand description

Whether a raw URL path survives URL parsing as written.

It holds only RFC 3986 path bytes and no dot segment, even once percent-decoded. A URL parser rewrites anything else: it turns a backslash into a separator and resolves dot segments, so a path failing this can land elsewhere than it reads.