Liking cljdoc? Tell your friends :D

simply-ux.http-api


->http-methodcljs

(->http-method http-method)

poll-untilcljs

(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})

requestcljs

(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-pollcljs

(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