Liking cljdoc? Tell your friends :D

exoscale.ok-http


clientclj

(client opts)
(client client opts)

Creates new client from opts or creates a new client from a client, copying it's settings and extra opts. Returned client can be used with request.

Options:

  • :call-timeout (in ms)
  • :read-timeout (in ms)
  • :write-timeout (in ms)
  • :connect-timeout (in ms)
  • :protocols - one of "http/1.0", "http/1.1", "h2", "h2_prior_knowledge", "quic", "spdy/3.1", "h3"
  • :dispatcher : map of :executor, :max-requests, :max-requests-per-host
  • :retry-on-connection-failure
  • :follow-redirects
  • :ssl-socket-factory
  • :follow-ssl-redirects
  • :add-network-interceptors
  • :add-interceptors
Creates new `client` from `opts` or creates a new `client` from a `client`,
copying it's settings and extra `opts`. Returned client can be used with
`request`.

Options:

* `:call-timeout` (in ms)
* `:read-timeout` (in ms)
* `:write-timeout` (in ms)
* `:connect-timeout` (in ms)
* `:protocols` - one of "http/1.0", "http/1.1", "h2", "h2_prior_knowledge", "quic", "spdy/3.1", "h3"
* `:dispatcher` : map of `:executor`, `:max-requests`, `:max-requests-per-host`
* `:retry-on-connection-failure`
* `:follow-redirects`
* `:ssl-socket-factory`
* `:follow-ssl-redirects`
* `:add-network-interceptors`
* `:add-interceptors`
raw docstring

client-optionsclj


requestclj

(request client request-map)

Performs a http request via client, using request-map as payload. Returns a ring response map

Performs a http request via `client`, using `request-map` as payload.
Returns a ring response map
raw docstring

request-optionsclj


set-client-option!cljmultimethod


set-client-options!clj

(set-client-options! builder opts)

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

× close