Liking cljdoc? Tell your friends :D

clj-url.core


char-to-hexclj

(char-to-hex s)

emitclj

(emit u)

Takes a map containing any of the url keys listed in parse, and returns a url string. Recognized keys: :protocol :host :port :path :query.

If passed a URL string, this will parse and escape any characters as necessary.

(emit {:protocol "http" :host "google.com"}) => "http://www.google.com"

Takes a map containing any of the url keys listed in parse, and returns a url string. Recognized keys: :protocol :host :port :path :query. 

If passed a URL string, this will parse and escape any characters as necessary.

(emit {:protocol "http" :host "google.com"}) => "http://www.google.com"
raw docstring

emit*clj

(emit* m)

escape-charclj

(escape-char s)

escape-mapclj

(escape-map m)

escape-strclj

(escape-str s)

invalid-reasonclj

(invalid-reason m)

parseclj

(parse u)

Takes a URL string, such as http://www.google.com, and returns a map containing any of the following keys: :protocol, :host, :port, :path, :query. URLs missing one of those parts will not contain a key for that item, i.e. 'http://wwww.google.com' will contain a :protocol and :host key, but not a :path or :query key.

Takes a URL string, such as http://www.google.com, and returns a map containing any of the following keys: :protocol, :host, :port, :path, :query. URLs missing one of those parts will not contain a key for that item, i.e. 'http://wwww.google.com' will contain a :protocol and :host key, but not a :path or :query key.
raw docstring

valid-host?clj

(valid-host? host)

valid-ip-addr?clj

(valid-ip-addr? host)

valid-label?clj

(valid-label? label)

valid-map?clj

(valid-map? m)

valid?clj

(valid? url)

validation-fnsclj

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

× close