(client)(client
{:keys [address-resolution-timeout byte-buffer-capacity-factor
byte-buffer-heap-percent byte-buffer-max-queue-length client-name
connect-timeout executor follow-redirects? max-redirects idle-timeout
stop-timeout max-connections-per-destination
max-requests-queued-per-destination request-buffer-size
response-buffer-size scheduler user-agent cookie-store
remove-idle-destinations? dispatch-io? tcp-no-delay?
strict-event-ordering? ssl-context-factory transport]
:or {dispatch-io? true
transport (HttpClientTransportOverHTTP.)
response-buffer-size default-buffer-size
strict-event-ordering? false
follow-redirects? true
tcp-no-delay? true
ssl-context-factory (clojure.core/deref
default-insecure-ssl-context-factory)
request-buffer-size default-buffer-size
remove-idle-destinations? true}
:as r})(decode-chunk-xform as)(delete client url)(delete client url request-map)(fold-chunks+decode-xform as buffer-size)(get client url)(get client url request-map)(head client url)(head client url request-map)(post client url)(post client url request-map)(encode-body x)(encode-chunk x)(encode-content-type x)(put client url)(put client url request-map)(request client
{:keys [url method query-string form-params headers body trailers-fn
content-type abort-ch accept as idle-timeout timeout agent
follow-redirects? fold-chunked-response?
fold-chunked-response-buffer-size auth cookies multipart
version]
:or {method :get
as :string
follow-redirects? true
fold-chunked-response? true
fold-chunked-response-buffer-size Integer/MAX_VALUE}
:as request-map})(stop-client! cl)(trace client url)(trace client url request-map)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |