Crate urlable

Source

Structs§

HasProtocolOptions
ParsedAuth
Represents authentication information parsed from a URL
ParsedHost
Represents host information parsed from a URL
ParsedURL
ParsedURLConfig

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

Type Aliases§

QueryObject
QueryValue