[src]

Function url::encode_component

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

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

This function is compliant with RFC 3986.