Liking cljdoc? Tell your friends :D

ajax.core

This is the documented API for cljs-ajax. The only functions not exposed here that are documented are the deprecated features.

This is the documented API for cljs-ajax. The only functions not
exposed here that are documented are the deprecated features.
raw docstring

abortclj/s

(abort this)

Call this on the result of ajax-request to cancel the request.

Call this on the result of `ajax-request` to cancel the request.
raw docstring

ajax-requestclj/s


default-formatsclj/s


default-interceptorsclj/s


DELETEclj/s

(DELETE uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

detect-response-formatclj/s


GETclj/s

(GET uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

(HEAD uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

json-request-formatclj/s


json-response-formatclj/s


OPTIONSclj/s

(OPTIONS uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

PATCHclj/s

(PATCH uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

POSTclj/s

(POST uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

PURGEclj/s

(PURGE uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

PUTclj/s

(PUT uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

raw-response-formatclj/s


ring-response-formatclj/s


success?clj/s


text-request-formatclj/s


text-response-formatclj/s


to-interceptorclj/s


TRACEclj/s

(TRACE uri & opts)

accepts the URI and an optional map of options, options include: :handler - the handler function for successful operation should accept a single parameter which is the deserialized response :progress-handler - the handler function for progress events. this handler is only available when using the goog.net.XhrIo API :error-handler - the handler function for errors, should accept a map with keys :status and :status-text :format - the format for the request :response-format - the format for the response :params - a map of parameters that will be sent with the request

accepts the URI and an optional map of options, options include:
:handler - the handler function for successful operation
           should accept a single parameter which is the
           deserialized response
:progress-handler - the handler function for progress events.
                    this handler is only available when using the goog.net.XhrIo API
:error-handler - the handler function for errors, should accept a
                 map with keys :status and :status-text
:format - the format for the request
:response-format - the format for the response
:params - a map of parameters that will be sent with the request
raw docstring

transit-request-formatclj/s


transit-response-formatclj/s


url-request-formatclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close