(->http-method http-method)
(poll-until {:keys [url http-method params polling-successful-when
polling-interval try-count max-tries on-poll
on-polling-success on-polling-timeout on-polling-error]
:or {http-method :get
params {}
polling-interval 2
try-count 0
max-tries 5
on-poll (fn [])
on-polling-timeout (fn [])
on-polling-error (fn [_])}
:as polling-params})
(request {:keys [url http-method params on-request-start on-successful-request
on-request-error]
:or {http-method :post
params {}
on-request-start (fn [])
on-successful-request (fn [])
on-request-error (fn [_])}})
(request-then-poll &
{{:keys [on-successful-request]
:or {on-successful-request (fn [])}
:as initial-request}
:initial-request
polling-params :polling})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close