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.
raw 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.
raw docstring

escape-specialcljs

(escape-special string)

Escape special characters -- for content-type.

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

generate-form-datacljs

(generate-form-data params)

generate-query-stringcljs

(generate-query-string params)

getcljs

(get url & [req])

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

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

(head url & [req])

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

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

if-poscljs

(if-pos v)

jsonpcljs

(jsonp url & [req])

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

Like #'request, but sets the :method and :url as appropriate.
raw 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.
raw 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.
raw 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.
raw docstring

parse-urlcljs

(parse-url url)

Parse url into a hash map.

Parse `url` into a hash map.
raw 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.
raw 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.
raw 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.
raw docstring

regex-char-esc-smapcljs


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
raw docstring

unexceptional-status?cljs


wrap-acceptcljs

(wrap-accept client & [accept])

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.
raw 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)
raw docstring

wrap-content-typecljs

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

wrap-default-headerscljs

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

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.
raw docstring

wrap-edn-responsecljs

(wrap-edn-response client)

Decode application/edn responses.

Decode application/edn responses.
raw docstring

wrap-form-paramscljs

(wrap-form-params client)

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.
raw docstring

wrap-json-responsecljs

(wrap-json-response client)

Decode application/json responses.

Decode application/json responses.
raw docstring

wrap-methodcljs

(wrap-method client)

wrap-multipart-paramscljs

(wrap-multipart-params client)

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.
raw docstring

wrap-query-paramscljs

(wrap-query-params client)

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
raw docstring

wrap-server-namecljs

(wrap-server-name client server-name)

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.
raw docstring

wrap-transit-responsecljs

(wrap-transit-response client)

Decode application/transit+json responses.

Decode application/transit+json responses.
raw docstring

wrap-urlcljs

(wrap-url client)

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

× close