Liking cljdoc? Tell your friends :D

reacl-c-basics.ajax


check-options-invariants!cljs

(check-options-invariants! options)
source

DELETEcljs

(DELETE uri & [options])
source

delivercljs

(deliver req & [info])

Returns an action to add the given request to the end of the next queue delivery-queue up in the element tree. An arbitrary info value can be attached, identifying or describing the request.

Returns an action to add the given request to the end of the next
queue [[delivery-queue]] up in the element tree. An arbitrary `info`
value can be attached, identifying or describing the request.
sourceraw docstring

delivery-jobcljs

(delivery-job req & [info])

Returns a new delivery job, that you can put into the state backing up a delivery-queue.

Returns a new delivery job, that you can put into the state backing
up a [[delivery-queue]].
sourceraw docstring

delivery-job-idcljs

(delivery-job-id rec__8892__auto__)
(delivery-job-id data__8893__auto__ v__8894__auto__)

Lens for the id field from a DeliveryJob record. See reacl-c-basics.ajax/make-delivery-job.

Lens for the `id` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-job-infocljs

(delivery-job-info rec__8892__auto__)
(delivery-job-info data__8893__auto__ v__8894__auto__)

Lens for the info field from a DeliveryJob record. See reacl-c-basics.ajax/make-delivery-job.

Lens for the `info` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-job-requestcljs

(delivery-job-request rec__8892__auto__)
(delivery-job-request data__8893__auto__ v__8894__auto__)

Lens for the req field from a DeliveryJob record. See reacl-c-basics.ajax/make-delivery-job.

Lens for the `req` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-job-responsecljs

(delivery-job-response rec__8892__auto__)
(delivery-job-response data__8893__auto__ v__8894__auto__)

Lens for the response field from a DeliveryJob record. See reacl-c-basics.ajax/make-delivery-job.

Lens for the `response` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-job-statuscljs

(delivery-job-status rec__8892__auto__)
(delivery-job-status data__8893__auto__ v__8894__auto__)

Lens for the status field from a DeliveryJob record. See reacl-c-basics.ajax/make-delivery-job.

Lens for the `status` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-job?cljs

(delivery-job? thing)

Is object a DeliveryJob record? See reacl-c-basics.ajax/make-delivery-job.

Is object a `DeliveryJob` record? See [[reacl-c-basics.ajax/make-delivery-job]].
sourceraw docstring

delivery-queuecljs

(delivery-queue e lens & [options])

Returns an element that manages a sequence of Ajax requests in its state, under the given lens. You can add delivery-job values to it, or use deliver to get an action that can be emitted by e. Jobs in the :pending state are executed in parallel, transitioning into the :running state, and end in the :completed state (irrespective of success or failure). When (:auto-cleanup? options) is true, sucessfully completed jobs are eventually removed from the queue automaticall.

Returns an element that manages a sequence of Ajax requests in its
state, under the given `lens`. You can add [[delivery-job]] values
to it, or use [[deliver]] to get an action that can be emitted by
`e`. Jobs in the :pending state are executed in parallel,
transitioning into the :running state, and end in the :completed
state (irrespective of success or failure). When `(:auto-cleanup?
options)` is true, sucessfully completed jobs are eventually removed
from the queue automaticall.
sourceraw docstring

DeliveryJobcljs

source

fetchcljs

(fetch req)
source

fetch-oncecljs

(fetch-once req f)

Returns an invisible element, that will execute the given Ajax request once, when mounted. When the request completes with an error or success, then (f response) is evaluated, which must return a [[reacl-c.core/return]] value.

Returns an invisible element, that will execute the given Ajax
request once, when mounted. When the request completes with an error
or success, then `(f response)` is evaluated, which
must return a [[reacl-c.core/return]] value.
sourceraw docstring

GETcljs

(GET uri & [options])
source

(HEAD uri & [options])
source

make-delivery-jobcljs

(make-delivery-job id req info status response)
Construct a `DeliveryJob` record.

`id`: access via [[reacl-c-basics.ajax/delivery-job-id]]
`req`: access via [[reacl-c-basics.ajax/delivery-job-request]]
`info`: access via [[reacl-c-basics.ajax/delivery-job-info]]
`status`: access via [[reacl-c-basics.ajax/delivery-job-status]]
`response`: access via [[reacl-c-basics.ajax/delivery-job-response]]
sourceraw docstring

maybe-show-response-valuecljs

(maybe-show-response-value lens e-pending f-ok & [f-error])
source

OPTIONScljs

(OPTIONS uri & [options])
source

PATCHcljs

(PATCH uri & [options])
source

POSTcljs

(POST uri & [options])
source

PURGEcljs

(PURGE uri & [options])
source

PUTcljs

(PUT uri & [options])
source

show-response-valuecljs

(show-response-value lens f-ok & [f-error])
source

throw-response-errorcljs

(throw-response-error response)
source

TRACEcljs

(TRACE uri & [options])
source

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

× close