(async-request {:keys [method url params body query-params form-params
request-map content-type insecure? sslengine multipart
headers]})
Send an async http-kit request.
When request-map is not provided,
params, body, query-params, form-params
will be merged into the default-client-options and used as the request map.headers
will be merged into the default headers in default-client-options
Send an async http-kit request. When request-map is not provided, - the provided options, i.e.,`params, body, query-params, form-params` will be merged into the default-client-options and used as the request map. - the provided `headers` will be merged into the default headers in `default-client-options`
(def-httpmethod method)
(DELETE url & [request-map])
Issues an client/DELETE request which is wrapped in a try-catch block.
Issues an client/DELETE request which is wrapped in a try-catch block.
(GET url & [request-map])
Issues an client/GET request which is wrapped in a try-catch block.
Issues an client/GET request which is wrapped in a try-catch block.
(get-status-by-exception e)
Get http status code from an exception of client/request.
Get http status code from an exception of client/request.
(HEAD url & [request-map])
Issues an client/HEAD request which is wrapped in a try-catch block.
Issues an client/HEAD request which is wrapped in a try-catch block.
(make-sslengine {:keys [pass cert keystore-type]})
For certificate type and info, see https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers
See also make-ssl-context
for server ssl context
For certificate type and info, see https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers See also `make-ssl-context` for server ssl context
(OPTIONS url & [request-map])
Issues an client/OPTIONS request which is wrapped in a try-catch block.
Issues an client/OPTIONS request which is wrapped in a try-catch block.
(PATCH url & [request-map])
Issues an client/PATCH request which is wrapped in a try-catch block.
Issues an client/PATCH request which is wrapped in a try-catch block.
(POST url & [request-map])
Issues an client/POST request which is wrapped in a try-catch block.
Issues an client/POST request which is wrapped in a try-catch block.
(PUT url & [request-map])
Issues an client/PUT request which is wrapped in a try-catch block.
Issues an client/PUT request which is wrapped in a try-catch block.
(send-email {:keys [from to subject html text attachment smtp-host smtp-port
smtp-user smtp-pass ssl?]
:or {ssl? true}})
Send email. Note that target is a seq of email
addresses. attachment
is an instance of EmailAttachment. Refer to
http://commons.apache.org/proper/commons-email/userguide.html for
examples. Note that to is a collection of recipients
For self-signed mail servers, set the value to false
for :ssl?
.
Send email. Note that target is a seq of email addresses. `attachment` is an instance of EmailAttachment. Refer to http://commons.apache.org/proper/commons-email/userguide.html for examples. Note that to is a collection of recipients For self-signed mail servers, set the value to `false` for `:ssl?`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close