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.
sourceraw docstring

ajax-requestclj/s

source

default-formatsclj/s

source

default-interceptorsclj/s

source

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
sourceraw docstring

detect-response-formatclj/s

source

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
sourceraw 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
sourceraw docstring

json-request-formatclj/s

source

json-response-formatclj/s

source

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
sourceraw 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
sourceraw 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
sourceraw 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
sourceraw 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
sourceraw docstring

raw-response-formatclj/s

source

ring-response-formatclj/s

source

success?clj/s

source

text-request-formatclj/s

source

text-response-formatclj/s

source

to-interceptorclj/s

source

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
sourceraw docstring

transit-request-formatclj/s

source

transit-response-formatclj/s

source

url-request-formatclj/s

source

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

× close