Liking cljdoc? Tell your friends :D

ajax.interceptors

This file contains the standard interceptors used by cljs-ajax to implement most of the 'magic'. There are four of them:

  • ProcessGet, which handles the fact that GETs do not have bodies and so need treating separately.
  • ApplyRequestFormat, which takes the request format key and applies it to the params key.
  • ResponseFormat, which is a parameterised interceptor dynamically added to the interceptor list. Note that the response format routines return one of these.
  • DirectSubmission, which spots that you're using a type that doesn't need format processing and sends it immediately.

There are no functions forming part of the public API in this file, so unless you're working on, studying or debugging cljs-ajax, you're probably in the wrong place.

This file contains the standard interceptors used by cljs-ajax to implement
most of the 'magic'. There are four of them: 
  
  * ProcessGet, which handles the fact that GETs do not have bodies and so need treating separately.
  * ApplyRequestFormat, which takes the request format key and applies it to the params key.
  * ResponseFormat, which is a parameterised interceptor dynamically added to the interceptor list. Note that the response format routines return one of these.
  * DirectSubmission, which spots that you're using a type that doesn't need format processing and sends it immediately.

There are no functions forming part of the public API in this file, so
unless you're working on, studying or debugging cljs-ajax, you're 
probably in the wrong place.
raw docstring

apply-request-formatcljs

(apply-request-format write params)
source

ApplyRequestFormatcljs

source

content-type-to-request-headercljs

(content-type-to-request-header content-type)
source

DirectSubmissioncljs

source

exception-messagecljs

(exception-message e)
source

failcljs

(fail status status-text failure & params)
source

get-request-formatcljs

(get-request-format format)
source

get-response-formatcljs

(get-response-format interpret-vector {:keys [response-format] :as opts})
source

is-response-format?cljs

(is-response-format? response-format)
source

ProcessUrlParameterscljs

source

request-interceptorscljs

source

ResponseFormatcljs

source

StandardInterceptorcljs

source

to-interceptorcljs

(to-interceptor m)
source

uri-with-paramscljs

(uri-with-params {:keys [vec-strategy params method url-params]})
(uri-with-params {:keys [vec-strategy params method url-params]} uri)
source

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

× close