(_encode-path path)
Escapes input as URI path
Escapes input as URI path
(as-map input)
Returns a map of components (:protocol, :host, :port, :user-info, :path, :query, :fragment, :tld) for given input
Returns a map of components (:protocol, :host, :port, :user-info, :path, :query, :fragment, :tld) for given input
(encode-path s)
Escapes input as URI path
Escapes input as URI path
(encode-query input)
URL encodes query if a given input has one
URL encodes query if a given input has one
(maybe-mutate-query-with input f)
Mutates query string with given function if query string exists
Mutates query string with given function if query string exists
(mutate-fragment input s)
Mutates fragment with given value
Mutates fragment with given value
(mutate-query input s)
Mutates query string with given value
Mutates query string with given value
(mutate-query-with input f)
Mutates query string with given function
Mutates query string with given function
(without-fragment input)
Strips off fragment (#hash). Returns value of the same type as input.
Strips off fragment (#hash). Returns value of the same type as input.
(without-query-string input)
Strips off query string. Returns value of the same type as input.
Strips off query string. Returns value of the same type as input.
(without-query-string-and-fragment input)
Strips off query string and fragment. Returns value of the same type as input.
Strips off query string and fragment. Returns value of the same type as input.
(query-of input)
Returns query string of given input
Returns query string of given input
(path-of input)
Returns path of given input
Returns path of given input
(tld-of input)
Returns top-level domain (public suffix) name of given input
Returns top-level domain (public suffix) name of given input
(protocol-of input)
Returns protocol of given input
Returns protocol of given input
(fragment-of input)
Returns fragment of given input
Returns fragment of given input
(host-of input)
Returns host of given input
Returns host of given input
(authority-of input)
Returns authority ([ userinfo "@" ] host [ ":" port ]) of given input
Returns authority ([ userinfo "@" ] host [ ":" port ]) of given input
(port-of input)
Returns port of given input
Returns port of given input
(user-info-of input)
Returns user information of given input
Returns user information of given input
(absolute? input)
Returns true if this URI/URL is absolute
Returns true if this URI/URL is absolute
(domain-root? input)
Returns true if given URL/URI is site root (normalized path is a slash)
Returns true if given URL/URI is site root (normalized path is a slash)
(count-segments input)
Returns number of slash-separated segments in the path
Returns number of slash-separated segments in the path
(url-like input)
Instantiates a new UrlLike object
Instantiates a new UrlLike object
(absolutize rel base)
Resolves relative URLs against base
Resolves relative URLs against base
(normalize-url input)
Normalizes URL by lowercasing host name, adding trailing slash at the end and so on, if necessary
Normalizes URL by lowercasing host name, adding trailing slash at the end and so on, if necessary
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close