(add-query-params url query-params)
Takes a URL and a map of query params and returns a URL with query params attached.
Takes a URL and a map of query params and returns a URL with query params attached.
(request u & [method headers cookies body])
Perform an HTTP request on URL u.
Perform an HTTP request on URL u.
(set-system-proxy! host port)
Java's HttpURLConnection cannot do per-request proxying. Instead, system properties are used. This function mutates the global setting. For per-request proxying, use the Apache HTTP client.
Java's HttpURLConnection cannot do per-request proxying. Instead, system properties are used. This function mutates the global setting. For per-request proxying, use the Apache HTTP client.
(url u)
If u is an instance of java.net.URL then returns it without modification, otherwise tries to instantiate a java.net.URL with url as its sole argument.
If u is an instance of java.net.URL then returns it without modification, otherwise tries to instantiate a java.net.URL with url as its sole argument.
(url-encode arg)
Wrapper around java.net.URLEncoder returning a (UTF-8) URL encoded representation of argument, either a string or map.
Wrapper around java.net.URLEncoder returning a (UTF-8) URL encoded representation of argument, either a string or map.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close