Skip to main content

urlencode

Function urlencode 

Source
fn urlencode(s: &str) -> String
Expand description

Percent-encode everything outside the unreserved set.

Not a general URL encoder and not trying to be: this escapes a query-string value, so the conservative set is correct and the aggressive one is safe.