pub fn percent_encode<E: EncodeSet>(input: &[u8],
Percent-encode the given bytes with the given encode set.
The encode set define which bytes (in addition to non-ASCII and controls)
need to be percent-encoded.
The choice of this set depends on context.
? needs to be encoded in an URL path but not in a query string.
The return value is an iterator of
&str slices (so it has a
that also implements
The latter returns
Cow::Borrowed when none of the bytes in
are in the given encode set.