Module extra::url

Types/fns concerning URLs (see RFC 3986)

Functions

decode

Decode a string encoded with percent encoding.

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

Parse a str to a url

get_scheme
query_to_str
to_str

Format a url as a string

Type Definitions

Query