Liking cljdoc? Tell your friends :D

ajax.protocols


AjaxImplclj/sprotocol

An abstraction for a javascript class that implements Ajax calls.

An abstraction for a javascript class that implements
Ajax calls.

-js-ajax-requestclj/s

(-js-ajax-request this request handler)

Makes an actual ajax request. All parameters except opts are in JS format. Should return an AjaxRequest.

Makes an actual ajax request.  All parameters except opts
are in JS format.  Should return an AjaxRequest.
sourceraw docstring

AjaxRequestclj/sprotocol

An abstraction for a running ajax request.

An abstraction for a running ajax request.

-abortclj/s

(-abort this)

Aborts a running ajax request, if possible.

Aborts a running ajax request, if possible.
sourceraw docstring

AjaxResponseclj/sprotocol

An abstraction for an ajax response.

An abstraction for an ajax response.

-bodyclj/s

(-body this)

Returns the response body as a string or as type specified in response-format such as a blob or arraybuffer.

Returns the response body as a string or as type specified in response-format such as a blob or arraybuffer.

-get-all-headersclj/s

(-get-all-headers this)

Returns all headers as a map.

Returns all headers as a map.

-get-response-headerclj/s

(-get-response-header this header)

Gets the specified response header (specified by a string) as a string.

Gets the specified response header (specified by a string) as a string.

-statusclj/s

(-status this)

Returns the HTTP Status of the response as an integer.

Returns the HTTP Status of the response as an integer.

-status-textclj/s

(-status-text this)

Returns the HTTP Status Text of the response as a string.

Returns the HTTP Status Text of the response as a string.

-was-abortedclj/s

(-was-aborted this)

Was the response aborted.

Was the response aborted.
sourceraw docstring

Interceptorclj/sprotocol

An abstraction for something that processes requests and responses.

An abstraction for something that processes requests and responses.

-process-requestclj/s

(-process-request this request)

Transforms the opts

Transforms the opts

-process-responseclj/s

(-process-response this response)

Transforms the raw response (an implementation of AjaxResponse)

Transforms the raw response (an implementation of AjaxResponse)
sourceraw docstring

Responseclj/s

source

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

× close