Skip to main content

encode_path

Function encode_path 

Source
pub fn encode_path(raw: &str) -> String
Expand description

Percent-encode characters in a path segment that would cause URL parsing issues

Preserves / as path separators; encodes ?, #, %, spaces, and control chars