Batteries-included HTTP client.
Batteries-included HTTP client.
(delete url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(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.
(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.
(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-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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close