Structs§
- HasProtocol
Options - Parsed
Auth - Represents authentication information parsed from a URL
- Parsed
Host - Represents host information parsed from a URL
- ParsedURL
- ParsedURL
Config
Functions§
- clean_
double_ slashes - decode
- Decode text using
decode
. Returns the original text if it fails. - decode_
path - Decode path section of URL (consistent with encode_path for slash encoding).
- decode_
query_ key - Decodes query key (consistent with
encode_query_key
for plus encoding). - decode_
query_ value - Decode query value (consistent with
encode_query_value
for plus encoding). - encode
- Encode characters that need to be encoded on the path, search and hash sections of the URL.
- encode_
hash - Encode characters that need to be encoded on the hash section of the URL.
- encode_
host - Encodes hostname with punycode encoding.
- encode_
param - 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_
path - Encode characters that need to be encoded on the path section of the URL.
- encode_
query_ item - Encodes a key-value pair into a URL query string parameter.
- encode_
query_ key - Encode characters that need to be encoded query values on the query
section of the URL and also encodes the
=
character. - encode_
query_ value - Encode characters that need to be encoded query values on the query section of the URL.
- has_
leading_ slash - has_
protocol - has_
trailing_ slash - is_
empty_ url - is_
relative - join_
relative_ url - join_
url - parse_
auth - Parse authentication string into username and password
- parse_
host - Parse host string into hostname and port
- parse_
path - Splits the input string into pathname, search, and hash components
- parse_
query - Parses and decodes a query string into an object.
The input can be a query string with or without the leading
?
. - parse_
url - Parses a URL string into its components
- parse_
url_ with_ protocol - Parses a URL with a default protocol
- stringify_
query - Converts a query object into an encoded query string.
- to_
ascii - Converts a Unicode string to ASCII Punycode
- with_
base - with_
leading_ slash - with_
query - with_
trailing_ slash - without_
base - without_
leading_ slash - without_
trailing_ slash