Liking cljdoc? Tell your friends :D

barebuild.utils.request

The request value step hands the executor on a :fetch or a :write effect. Everything past :url is absent rather than nil when it does not apply, so two requests that mean the same compare equal.

The request value `step` hands the executor on a :fetch or a :write effect. Everything past
:url is absent rather than nil when it does not apply, so two requests that mean the same
compare equal.
raw docstring

merge-request-headerscljs

(merge-request-headers request extra)

Merge extra headers into a built request, more specific headers winning over the ones already there, and the protocol's content-type still winning over both on a bodied request.

Merge `extra` headers into a built request, more specific headers winning over the ones already
there, and the protocol's content-type still winning over both on a bodied request.
sourceraw docstring

normalize-headerscljs

(normalize-headers m)

m as wire-ready headers: names lowercased and trimmed, values stringified, blank entries dropped. Nil when m is not a map or nothing survives, so absent headers are absent rather than empty.

`m` as wire-ready headers: names lowercased and trimmed, values stringified, blank entries
dropped. Nil when `m` is not a map or nothing survives, so absent headers are absent rather
than empty.
sourceraw docstring

requestcljs

(request {:keys [endpoint segment method query body request-id credentials
                 headers timeout]})

The request value for the executor, e.g. {:request/id "tasks:1" :method "GET" :url "/api/tasks?requestId=tasks:1&sort=owner"}. credentials and headers say what it carries on the wire, timeout how long the executor may wait. The id rides the value as well as the URL, the executor naming every outcome by it.

The request value for the executor, e.g.
{:request/id "tasks:1" :method "GET" :url "/api/tasks?requestId=tasks:1&sort=owner"}.
`credentials` and `headers` say what it carries on the wire, `timeout` how long the executor
may wait. The id rides the value as well as the URL, the executor naming every outcome by it.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close