Build a URL string from a parts map ({:scheme :userinfo :host :port :path :query :fragment}). nil parts are omitted; :query and :fragment are emitted verbatim (already-encoded).
Percent-decode a URL-encoded string. %XX sequences are decoded as UTF-8 bytes, + becomes a space, and a % not followed by two hex digits is kept literally.
Percent-encode a string for use in a URL component. Everything outside RFC 3986 unreserved characters is encoded; non-ASCII characters are encoded as their UTF-8 bytes (e.g. "é" → "%C3%A9").
Resolve ref against base, RFC 3986 style. An absolute ref replaces base; an absolute path replaces base's path; a relative path resolves against the directory of base's path (with ./.. normalization). Base's query and fragment are dropped; ref's are kept.
Parse a URL into {:scheme :userinfo :host :port :path :query :fragment}. Absent parts are nil; path defaults to "/". :port is an integer — a non-numeric port raises an error. IPv6 host literals are not supported.
Parse a query string like "a=1&b=2" into a map of decoded strings. nil or "" gives {}. A key without = gets value ""; when a key repeats, the last value wins.