URLs resolved against a base URL as a browser resolves them, and checked against a set of allowed schemes.
A URL is resolved by whatwg-url, which implements the URL Standard, hosts and IDNA included.
URLs resolved against a base URL as a browser resolves them, and checked against a set of allowed schemes. A URL is resolved by whatwg-url, which implements the URL Standard, hosts and IDNA included.
(resolve base s)The URL s resolved against the absolute URL base, and normalized as
a browser normalizes it, or nil when it isn't valid. With no base, only
an absolute URL is valid.
(resolve "http://a/b/c/d;p?q" "../g")
;; => "http://a/b/g"
The URL `s` resolved against the absolute URL `base`, and normalized as
a browser normalizes it, or nil when it isn't valid. With no `base`, only
an absolute URL is valid.
(resolve "http://a/b/c/d;p?q" "../g")
;; => "http://a/b/g"(resolver base)A function of a URL that resolves it against the absolute URL base, as
resolve does, but reads the base only once.
A function of a URL that resolves it against the absolute URL `base`, as resolve does, but reads the base only once.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |