Skip to main content

decode_query_value

Function decode_query_value 

Source
pub fn decode_query_value(raw: &str) -> Cow<'_, str>
Expand description

The value of a query parameter as the client meant it, with its percent-encoding decoded. + stays a plus: that it stands for a space is a rule of html forms, not of urls. A value that does not decode to text is returned as it came.