Batteries-included HTTP client.
Batteries-included HTTP client.
(accept-encoding-value accept-encoding)
(basic-auth-value basic-auth)
(content-type-value type)
(delete url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(follow-redirect client req resp)
(generate-query-string params)
(get url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(head url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(parse-url url)
(parse-user-info user-info)
(post url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(put url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
Executes the HTTP request corresponding to the given map and returns the response map for corresponding to the resulting HTTP response.
In addition to the standard Ring request keys, the following keys are also recognized:
The following additional behaviors over also automatically enabled:
Executes the HTTP request corresponding to the given map and returns the response map for corresponding to the resulting HTTP response. In addition to the standard Ring request keys, the following keys are also recognized: * :url * :method * :query-params * :basic-auth * :content-type * :accept * :accept-encoding * :as The following additional behaviors over also automatically enabled: * Exceptions are thrown for status codes other than 200-207, 300-303, or 307 * Gzip and deflate responses are accepted and decompressed * Input and output bodies are coerced as required and indicated by the :as option.
(update m k f & args)
(when-pos v)
(with-connection-pool _opts & body)
This macro is a no-op, but left in to support backward-compatibility with clj-http.
This macro is a no-op, but left in to support backward-compatibility with clj-http.
(wrap-accept client)
(wrap-accept-encoding client)
(wrap-basic-auth client)
(wrap-content-type client)
(wrap-decompression client)
(wrap-exceptions client)
(wrap-form-params client)
(wrap-input-coercion client)
(wrap-method client)
(wrap-output-coercion client)
(wrap-query-params client)
(wrap-redirects client)
(wrap-request request)
Returns a battaries-included HTTP request function coresponding to the given core client. See client/client.
Returns a battaries-included HTTP request function coresponding to the given core client. See client/client.
(wrap-unknown-host client)
(wrap-url client)
(wrap-user-info client)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close