Liking cljdoc? Tell your friends :D

nsfw.http-client


requestclj

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

with-connection-poolcljmacro

(with-connection-pool & body)
source

wrap-input-coercionclj

(wrap-input-coercion client)
source

wrap-requestclj

(wrap-request request)

Everything in default except exceptions on non 2xx responses. See clj-http.client.

Everything in default except exceptions on non 2xx responses. See
clj-http.client.
sourceraw docstring

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

× close