[src]

Crate url

Types/fns concerning URLs (see RFC 3986)

Path
Url

A Uniform Resource Locator (URL). A URL is a form of URI (Uniform Resource Identifier) that includes network location information, such as hostname or port number.

UserInfo

An optional subcomponent of a URI authority component.

decode

Decodes a percent-encoded string representing a URI.

decode_component

Decode a string encoded with percent encoding.

decode_form_urlencoded

Decode a string encoded with the 'application/x-www-form-urlencoded' media type into a hashmap.

encode

Encodes a URI by replacing reserved characters with percent-encoded character sequences.

encode_component

Encodes a URI component by replacing reserved characters with percent encoded character sequences.

encode_form_urlencoded

Encode a hashmap to the 'application/x-www-form-urlencoded' media type.

from_str

Parses a URL, converting it from a string to Url representation.

get_scheme

Returns a tuple of the URI scheme and the rest of the URI, or a parsing error.

path_from_str
query_to_str

Converts an instance of a URI Query type to a string.

Query

Represents the query component of a URI.