(client)
(client
{:keys [address-resolution-timeout 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})
(encode-body x)
(encode-chunk x)
(encode-content-type x)
(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})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close