Liking cljdoc? Tell your friends :D
All platforms.

dk.simongray.html-pieces.url

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.
raw docstring

resolveclj/s

(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"
sourceraw docstring

resolverclj/s

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close