Skip to main content
Version: 0.12

url

The url module contains functions to work on urls

Functions

decode(str)

Returns a decoded UTF-8 url encoded string

"beep:snot/foobar" == url::decode("beep%3Asnot%2Ffoobar")

Returns a string

encode(str)

Returns a url encoded UTF-8 string

use std::url;

"beep%3Asnot%2Ffoobar" == url::encode("beep:snot/foobar")

Returns a string