Function url::encode_component[src]

pub fn encode_component(s: &str) -> String

Encodes a URI component by replacing reserved characters with percent- encoded character sequences.

This function is compliant with RFC 3986.