libdav::encoding

Function normalise_percent_encoded

Source
pub fn normalise_percent_encoded(
    input: &str,
) -> Result<Cow<'_, str>, NormalisationError>
Expand description

Normalise a percent encoded path.

Reserved characters shall remain percent encoded, but their hexadecimal representation normalised to uppercase. All other characters shall be decoded.

ยงErrors

Returns NormalisationError if the input string contains invalid percent-encoded data.