Liking cljdoc? Tell your friends :D

cljs-http.client


decode-bodycljs

(decode-body response decode-fn content-type request-method)

Decocde the :body of response with decode-fn if the content type matches.

Decocde the :body of `response` with `decode-fn` if the content type matches.
sourceraw docstring

deletecljs

(delete url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

escape-specialcljs

(escape-special string)

Escape special characters -- for content-type.

Escape special characters -- for content-type.
sourceraw docstring

generate-form-datacljs

(generate-form-data params)
source

generate-query-stringcljs

(generate-query-string params)
source

getcljs

(get url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

(head url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

if-poscljs

(if-pos v)
source

jsonpcljs

(jsonp url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

movecljs

(move url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

optionscljs

(options url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

parse-query-paramscljs

(parse-query-params s)

Parse s as query params and return a hash map.

Parse `s` as query params and return a hash map.
sourceraw docstring

parse-urlcljs

(parse-url url)

Parse url into a hash map.

Parse `url` into a hash map.
sourceraw docstring

patchcljs

(patch url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

postcljs

(post url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

putcljs

(put url & [req])

Like #'request, but sets the :method and :url as appropriate.

Like #'request, but sets the :method and :url as appropriate.
sourceraw docstring

regex-char-esc-smapcljs

source

requestcljs

Executes the HTTP request corresponding to the given map and returns the response map for corresponding to the resulting HTTP response.

In addition to the standard Ring request keys, the following keys are also recognized:

  • :url
  • :method
  • :query-params
Executes the HTTP request corresponding to the given map and returns the
response map for corresponding to the resulting HTTP response.

In addition to the standard Ring request keys, the following keys are also
recognized:
* :url
* :method
* :query-params
sourceraw docstring

unexceptional-status?cljs

source

wrap-acceptcljs

(wrap-accept client & [accept])
source

wrap-basic-authcljs

(wrap-basic-auth client & [credentials])

Middleware converting the :basic-auth option or credentials into an Authorization header.

Middleware converting the :basic-auth option or `credentials` into
an Authorization header.
sourceraw docstring

wrap-channel-from-request-mapcljs

(wrap-channel-from-request-map client)

Pipe the response-channel into the request-map's custom channel (e.g. to enable transducers)

Pipe the response-channel into the request-map's
custom channel (e.g. to enable transducers)
sourceraw docstring

wrap-content-typecljs

(wrap-content-type client & [content-type])
source

wrap-default-headerscljs

(wrap-default-headers client & [default-headers])
source

wrap-edn-paramscljs

(wrap-edn-params client)

Encode :edn-params in the request :body and set the appropriate Content Type header.

Encode :edn-params in the `request` :body and set the appropriate
Content Type header.
sourceraw docstring

wrap-edn-responsecljs

(wrap-edn-response client)

Decode application/edn responses.

Decode application/edn responses.
sourceraw docstring

wrap-form-paramscljs

(wrap-form-params client)
source

wrap-json-paramscljs

(wrap-json-params client)

Encode :json-params in the request :body and set the appropriate Content Type header.

Encode :json-params in the `request` :body and set the appropriate
Content Type header.
sourceraw docstring

wrap-json-responsecljs

(wrap-json-response client)

Decode application/json responses.

Decode application/json responses.
sourceraw docstring

wrap-methodcljs

(wrap-method client)
source

wrap-multipart-paramscljs

(wrap-multipart-params client)
source

wrap-oauthcljs

(wrap-oauth client)

Middleware converting the :oauth-token option into an Authorization header.

Middleware converting the :oauth-token option into an Authorization header.
sourceraw docstring

wrap-query-paramscljs

(wrap-query-params client)
source

wrap-requestcljs

(wrap-request request)

Returns a batteries-included HTTP request function coresponding to the given core client. See client/request

Returns a batteries-included HTTP request function coresponding to the given
core client. See client/request
sourceraw docstring

wrap-server-namecljs

(wrap-server-name client server-name)
source

wrap-transit-paramscljs

(wrap-transit-params client)

Encode :transit-params in the request :body and set the appropriate Content Type header.

A :transit-opts map can be optionally provided with the following keys:

:encoding #{:json, :json-verbose} :decoding #{:json, :json-verbose} :encoding/decoding-opts appropriate map of options to be passed to transit writer/reader, respectively.

Encode :transit-params in the `request` :body and set the appropriate
Content Type header.

A :transit-opts map can be optionally provided with the following keys:

:encoding                #{:json, :json-verbose}
:decoding                #{:json, :json-verbose}
:encoding/decoding-opts  appropriate map of options to be passed to
                         transit writer/reader, respectively.
sourceraw docstring

wrap-transit-responsecljs

(wrap-transit-response client)

Decode application/transit+json responses.

Decode application/transit+json responses.
sourceraw docstring

wrap-urlcljs

(wrap-url client)
source

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

× close