Skip to main content

Module url

Module url 

Source
Expand description

Percent-encoding and query-string handling.

Functionsยง

decode
Decode %XX escapes and + (which means a space in query strings).
encode
Percent-encode everything outside the unreserved set.
normalize_path
Collapse . and .. segments and reject anything that escapes the root.
parse_query
Parse a=1&b=2 into pairs, decoding both sides.
split_target
Split a request target into its path and raw query string.