(ajax-xhrio-handler on-success on-failure xhrio [success? response])
ajax-request only provides a single handler for success and errors
ajax-request only provides a single handler for success and errors
(register-events {:keys [start-interceptors done-interceptors reset-interceptors
request-interceptors transit-read-handlers
transit-write-handlers]
:or {start-interceptors []
done-interceptors []
reset-interceptors []
request-interceptors []
transit-read-handlers {}
transit-write-handlers {}}})
(request->xhrio-options {:as request :keys [on-success on-failure]})
Formats the xhr options
Formats the xhr options
(track-request! name request-time)
Kicks off the request tracking process
Kicks off the request tracking process
(wrap-failure! on-failure name request-time)
Wraps the passed in on-failure callback
Wraps the passed in on-failure callback
(wrap-progress! on-progress _ _)
Wraps progress event
Wraps progress event
(wrap-success! on-success name request-time)
Wraps the passed in on-success callback
Wraps the passed in on-success callback
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close