Skip to main content

escape_component

Function escape_component 

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

encodeURIComponent escaping of one component.

Bytes of the UTF-8 encoding are kept literally when they are A-Z a-z 0-9 - _ . ! ~ * ' ( ) and percent-encoded with uppercase hex otherwise.