Liking cljdoc? Tell your friends :D

sparrows.http


async-requestclj

(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,

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

csclj


def-httpmethodcljmacro

(def-httpmethod method)

default-client-optionsclj


default-request-mapclj


default-uaclj


DELETEclj

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

GETclj

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

get-status-by-exceptioncljdeprecated

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

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

make-sslengineclj

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

OPTIONSclj

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

PATCHclj

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

POSTclj

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

PUTclj

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

send-emailclj

(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?`.
raw docstring

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

× close