Liking cljdoc? Tell your friends :D

cljs-rest.core


async->cljmacro

(async-> x & forms)

Like clojure.core/-> except it returns a channel, and each step may be a channel as well.

Like clojure.core/-> except it returns a channel, and each step
may be a channel as well.
sourceraw docstring

async-form->fnclj

(async-form->fn form)
source

configcljs

source

configure-formatcljs

(configure-format config format)
source

configure-format!cljs

(configure-format! format)
source

ensure-channelcljs

(ensure-channel x)
source

expand-headerscljs

(expand-headers headers)
source

(expand-link link)
source

format->params-keycljs

source

format-request-defaultscljs

source

InfersRequestOptionscljsprotocol

Provides extension semantics for generating request options for arbitrary types passed as body params. Example:

(extend-protocol InfersRequestOptions MyTransitType (-opts [_] {:accept "application/transit+json"}) (-params [this] {:transit-params this}))

Provides extension semantics for generating request options for arbitrary
types passed as body params. Example:

(extend-protocol InfersRequestOptions
  MyTransitType
  (-opts [_] {:accept "application/transit+json"})
  (-params [this] {:transit-params this}))

-paramscljs

(-params _)

Returns a map of cljs-http params for request options

Returns a map of cljs-http params for request options

-optscljs

(-opts _)

Returns arbitrary request options for params type

Returns arbitrary request options for params type
sourceraw docstring

Initializablecljsprotocol

-initcljs

(-init _)
source

Matches a link-value according to https://tools.ietf.org/html/rfc5988#section-5, capturing URI-Reference, capturing link-param for further processing.

Matches a `link-value` according to https://tools.ietf.org/html/rfc5988#section-5,
capturing `URI-Reference`, capturing `link-param` for further processing.
sourceraw docstring

multipart-paramscljs

source

MultipartParamscljs

source

ordered-multipart-paramscljs

(ordered-multipart-params xs)
source

OrderedMultipartParamscljs

source

parse-url-query-paramscljs

(parse-url-query-params url)
source

put-error!cljs

(put-error! opts error)
source

rel-patterncljs

Matches a rel link-param, capturing its value

Matches a `rel` `link-param`, capturing its value
sourceraw docstring

requestcljs

(request url)
(request url opts)
source

request-defaultscljs

(request-defaults x)
source

request-optionscljs

(request-options url opts)
source

request-restfulcljs

(request-restful constructor url opts)
source

resourcecljs

source

Resourcecljs

source

resource-headcljs

source

resource-listingcljs

source

resource-optionscljs

source

ResourceHeadcljs

source

ResourceListingcljs

source

ResourceOptionscljs

source

Restfulcljsprotocol

optionscljs

(options _)

patch!cljs

(patch! _ data)

getcljs

(get _)
(get _ params)

post!cljs

(post! _ data)

headcljs

(head _)

delete!cljs

(delete! _)

put!cljs

(put! _ data)
source

RestfulListingcljsprotocol

first-resourcecljs

(first-resource _)
(first-resource _ params)
source

with-keywordscljs

(with-keywords m)

Given a map m, returns a map preserving the original keys and appending keywords for each non-keyword field. Example:

(with-keywords {"a" "b"}) ;;=> {"a" "b" ;; :a "b"}

Given a map `m`, returns a map preserving the original keys and appending
keywords for each non-keyword field. Example:

(with-keywords {"a" "b"})
;;=> {"a" "b"
;;    :a "b"}
sourceraw docstring

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

× close