http1::uri::url_encoding

Function encode

source
pub fn encode<S: AsRef<str>>(input: S) -> String
Expand description

Encodes a URI component by using the UrlComponentEncode alphabet for percent-encoding. This function wraps encode_uri_component_with with the default alphabet.

§Parameters

  • input: The string to be encoded.

§Returns

A String representing the encoded URI component.