Decode text using decode
. Returns the original text if it fails.
Decode path section of URL (consistent with encode_path for slash encoding).
Decodes query key (consistent with encode_query_key
for plus encoding).
Decode query value (consistent with encode_query_value
for plus encoding).
Encode characters that need to be encoded on the path, search and hash
sections of the URL.
Encode characters that need to be encoded on the hash section of the URL.
Encodes hostname with punycode encoding.
Encode characters that need to be encoded on the path section of the URL as a
param. This function encodes everything encode_path
does plus the
slash (/
) character.
Encode characters that need to be encoded on the path section of the URL.
Encodes a key-value pair into a URL query string parameter.
Encode characters that need to be encoded query values on the query
section of the URL and also encodes the =
character.
Encode characters that need to be encoded query values on the query
section of the URL.
Parse authentication string into username and password
Parse host string into hostname and port
Splits the input string into pathname, search, and hash components
Parses and decodes a query string into an object.
The input can be a query string with or without the leading ?
.
Parses a URL string into its components
Parses a URL with a default protocol
Converts a query object into an encoded query string.
Converts a Unicode string to ASCII Punycode