Liking cljdoc? Tell your friends :D

clojurewerkz.urly.core


_encode-pathclj

(_encode-path path)

Escapes input as URI path

Escapes input as URI path
sourceraw docstring

as-mapclj

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

eliminate-extra-protocol-prefixesclj

(eliminate-extra-protocol-prefixes s)
source

encode-pathclj

(encode-path s)

Escapes input as URI path

Escapes input as URI path
sourceraw docstring

extra-protocol-re-strclj

source

extra-protocol-regexpclj

source

Mutationcljprotocol

encode-queryclj

(encode-query input)

URL encodes query if a given input has one

URL encodes query if a given input has one

maybe-mutate-query-withclj

(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-fragmentclj

(mutate-fragment input s)

Mutates fragment with given value

Mutates fragment with given value

mutate-queryclj

(mutate-query input s)

Mutates query string with given value

Mutates query string with given value

mutate-query-withclj

(mutate-query-with input f)

Mutates query string with given function

Mutates query string with given function

without-fragmentclj

(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-stringclj

(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-fragmentclj

(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.
source

PartsAccessorscljprotocol

query-ofclj

(query-of input)

Returns query string of given input

Returns query string of given input

path-ofclj

(path-of input)

Returns path of given input

Returns path of given input

tld-ofclj

(tld-of input)

Returns top-level domain (public suffix) name of given input

Returns top-level domain (public suffix) name of given input

protocol-ofclj

(protocol-of input)

Returns protocol of given input

Returns protocol of given input

fragment-ofclj

(fragment-of input)

Returns fragment of given input

Returns fragment of given input

host-ofclj

(host-of input)

Returns host of given input

Returns host of given input

authority-ofclj

(authority-of input)

Returns authority ([ userinfo "@" ] host [ ":" port ]) of given input

Returns authority ([ userinfo "@" ] host [ ":" port ]) of given input

port-ofclj

(port-of input)

Returns port of given input

Returns port of given input

user-info-ofclj

(user-info-of input)

Returns user information of given input

Returns user information of given input
source

Predicatescljprotocol

absolute?clj

(absolute? input)

Returns true if this URI/URL is absolute

Returns true if this URI/URL is absolute

domain-root?clj

(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)
source

relative?clj

source

resolvecljmultimethod

source

SegmentablePathcljprotocol

count-segmentsclj

(count-segments input)

Returns number of slash-separated segments in the path

Returns number of slash-separated segments in the path
source

slash-reclj

source

UrlLikeFactorycljprotocol

url-likeclj

(url-like input)

Instantiates a new UrlLike object

Instantiates a new UrlLike object
source

URLNormalizationcljprotocol

absolutizeclj

(absolutize rel base)

Resolves relative URLs against base

Resolves relative URLs against base

normalize-urlclj

(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
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close