pub fn encode<S: AsRef<str>>(input: S) -> String
Encodes a URI component by using the UrlComponentEncode alphabet for percent-encoding. This function wraps encode_uri_component_with with the default alphabet.
UrlComponentEncode
encode_uri_component_with
input
A String representing the encoded URI component.
String