Skip to main content

normalize_uri

Function normalize_uri 

Source
pub fn normalize_uri(path: &str) -> String
Expand description

Normalize a path string to a valid URI: forward slashes and percent-encoded brackets.

Brackets ([, ]) are not valid in URI path segments per RFC 3986 and cause SARIF / CodeClimate validation warnings for framework routes such as Next.js dynamic segments.