| permalink | /url/ |
|---|
local url = import "github.com/jsonnet-libs/xtd/url.libsonnet"url provides functions to deal with URLs
encodeQuery(params)encodeQuery takes an object of query parameters and returns them as an escaped key=value string
escapeString(str, excludedChars=[])escapeString escapes the given string so it can be safely placed inside an URL, replacing special characters with %XX sequences
join(splitObj)join joins URLs from the object generated from parse
parse(url)parse parses absolute and relative URLs.
:///;parameters?#
Inspired by Python's urllib.urlparse, following several RFC specifications.