url

URL parsing and percent-encoding utilities.

Import

import url

Functions

url.parse(str: str) -> map

Parse a URL string into a component map with keys like scheme, host, path, query, fragment.

url.encode(s: str) -> str

Percent-encode a string for use in a URL.

url.decode(s: str) -> str

Decode a percent-encoded URL string.

Examples

scratch.xs