Liking cljdoc? Tell your friends :D

com.ashafa.clutch.http-client


*configuration-defaults*clj

source

*default-data-type*clj

source

*response*clj

When thread-bound to any value, will be reset! to the complete HTTP response of the last couchdb request.

When thread-bound to any value, will be reset! to the
complete HTTP response of the last couchdb request.
sourceraw docstring

couchdb-requestclj

(couchdb-request & args)

Same as couchdb-request*, but returns only the :body of the HTTP response.

Same as couchdb-request*, but returns only the :body of the HTTP response.
sourceraw docstring

couchdb-request*clj

(couchdb-request* method
                  url
                  &
                  {:keys [data data-length content-type headers] :as opts})
source

fail-on-404cljmacro

(fail-on-404 db expr)
source

lazy-view-seqclj

(lazy-view-seq response-body header?)

Given the body of a view result or _changes feed (should be an InputStream), returns a lazy seq of each row of data therein.

header? should be true when the result is expected to include additional information in an additional header line, e.g. total_rows, offset, etc. — in other words, header? should always be true, unless the response-body is from a continuous _changes feed (which only include data, no header info). This header info is added as metadata to the returned lazy seq.

Given the body of a view result or _changes feed (should be an InputStream),
returns a lazy seq of each row of data therein.

header? should be true
when the result is expected to include additional information in an additional
header line, e.g. total_rows, offset, etc. — in other words, header? should
always be true, unless the response-body is from a continuous _changes feed
(which only include data, no header info).  This header info is added as
metadata to the returned lazy seq.
sourceraw docstring

view-requestclj

(view-request method url & opts)

Accepts the same arguments as couchdb-request*, but processes the result assuming that the requested resource is a view (using lazy-view-seq).

Accepts the same arguments as couchdb-request*, but processes the result assuming that the
requested resource is a view (using lazy-view-seq).
sourceraw docstring

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

× close