(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.
(delete url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(escape-special string)
Escape special characters -- for content-type.
Escape special characters -- for content-type.
(get url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(head url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(jsonp url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(move url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(options url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(parse-query-params s)
Parse s
as query params and return a hash map.
Parse `s` as query params and return a hash map.
(parse-url url)
Parse url
into a hash map.
Parse `url` into a hash map.
(patch url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(post url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
(put url & [req])
Like #'request, but sets the :method and :url as appropriate.
Like #'request, but sets the :method and :url as appropriate.
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:
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
(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.
(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)
(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.
(wrap-edn-response client)
Decode application/edn responses.
Decode application/edn responses.
(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.
(wrap-json-response client)
Decode application/json responses.
Decode application/json responses.
(wrap-oauth client)
Middleware converting the :oauth-token option into an Authorization header.
Middleware converting the :oauth-token option into an Authorization header.
(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
(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.
(wrap-transit-response client)
Decode application/transit+json responses.
Decode application/transit+json responses.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close