pub fn percent_encode_byte(byte: u8) -> &'static strExpand description
Return the percent-encoding of the given byte.
This is unconditional, unlike percent_encode() which has an AsciiSet parameter.
ยงExamples
use percent_encoding::percent_encode_byte;
assert_eq!("foo bar".bytes().map(percent_encode_byte).collect::<String>(),
"%66%6F%6F%20%62%61%72");