This will be called when errors occur if you don't supply an error handler to the easy API functions. If you don't want it writing errors to the console (or worse, flashing up alerts), make sure you always handle errors.
This will be called when errors occur if you don't supply an error handler to the easy API functions. If you don't want it writing errors to the console (or worse, flashing up alerts), make sure you always handle errors.
This gets called if you forget to attach a handler to an easy API function.
This gets called if you forget to attach a handler to an easy API function.
(keyword-request-format format format-params)
Converts an easy API request format specifier to an ajax-request
request format specifier.
Converts an easy API request format specifier to an `ajax-request` request format specifier.
(keyword-response-format format format-params)
Converts an easy API format specifier to an ajax-request
format specifier. Mostly this is just a case of replacing :json
with json-response-format
. However, it gets complex when you
specify a detection format such as [["application/madeup" :json]]
.
Converts an easy API format specifier to an `ajax-request` format specifier. Mostly this is just a case of replacing `:json` with `json-response-format`. However, it gets complex when you specify a detection format such as `[["application/madeup" :json]]`.
(transform-handler {:keys [handler error-handler finally]})
Converts easy API handlers to a ajax-request
handler
Converts easy API handlers to a `ajax-request` handler
(transform-opts {:keys [method format response-format params body] :as opts})
Note that if you call GET, POST et al, this function gets called and will include Transit code in your JS. If you don't want this to happen, use ajax-request directly (and use advanced optimisation).
Note that if you call GET, POST et al, this function gets called and will include Transit code in your JS. If you don't want this to happen, use ajax-request directly (and use advanced optimisation).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close