Function normalize_request

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

Normalizes a /-separated request into a form that contains no leading /, no double /, and no “.” or “..” segments in the middle of the request.

A request might only start with a single “.” segment and no “..” segments, or any positive number of “..” segments but no “.” segment.