Skip to main content

Module percent

Module percent 

Source
Expand description

Percent-encoding (RFC 3986, section 2.1), with uppercase digits as it recommends.

Functionsยง

decode
+ stays +, as in a path. None when a % is not followed by two hex digits.
decode_form
+ is a space, as in a form. None when a % is not followed by two hex digits.
encode
form
application/x-www-form-urlencoded (WHATWG URL, section 5.2): name=value pairs joined by &.
is_unreserved
RFC 3986, section 2.3: the bytes that never need escaping.
push_encoded
Every byte keep refuses as %XX; bytes outside ASCII always are.
push_form_encoded
One form name or value: a space as +, and only *-._ kept beside letters and digits.