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.
(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.
(couchdb-request* method
url
&
{:keys [data data-length content-type headers] :as opts})
(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.
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close