(connect {:keys [protocol host port timeout version auth request-fn]
:or {protocol :http
request-fn client/request
timeout default-timeout
version 7}})
Inputs: [{:keys [protocol host port timeout version auth request-fn], :or {protocol :http, request-fn client/request, timeout default-timeout, version 7}} :- ConnectParams] Returns: ESConn
Instantiate an ES conn from ConnectParams props.
To intercept all ES HTTP requests, set :request-fn
to function with the same interface as the 1-argument
arity of clj-http.client/request
.
Inputs: [{:keys [protocol host port timeout version auth request-fn], :or {protocol :http, request-fn client/request, timeout default-timeout, version 7}} :- ConnectParams] Returns: ESConn Instantiate an ES conn from ConnectParams props. To intercept all ES HTTP requests, set :request-fn to function with the same interface as the 1-argument arity of `clj-http.client/request`.
(make-http-opts conn opts)
(make-http-opts conn opts query-params-keys)
(make-http-opts {:keys [cm auth]} opts query-params-keys form-params body)
Inputs: ([{:keys [cm auth]} :- (s/maybe ESConn) opts :- (s/pred map?) query-params-keys :- (s/maybe (s/pred coll?)) form-params :- (s/maybe (s/pred map?)) body :- s/Any] [conn opts query-params-keys] [conn opts]) Returns: (s/pred map?)
Inputs: ([{:keys [cm auth]} :- (s/maybe ESConn) opts :- (s/pred map?) query-params-keys :- (s/maybe (s/pred coll?)) form-params :- (s/maybe (s/pred map?)) body :- s/Any] [conn opts query-params-keys] [conn opts]) Returns: (s/pred map?)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close