(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.
(generate-form-data params)
(generate-query-string params)
(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.
(if-pos v)
(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.
(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-accept client & [accept])
(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-content-type client & [content-type])
(wrap-default-headers client & [default-headers])
(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-form-params client)
(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-method client)
(wrap-multipart-params client)
(wrap-oauth client)
Middleware converting the :oauth-token option into an Authorization header.
Middleware converting the :oauth-token option into an Authorization header.
(wrap-query-params client)
(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-server-name client server-name)
(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.
(wrap-url client)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close