Liking cljdoc? Tell your friends :D
All platforms.

koine.http

Outbound HTTP, portable. One request shape, one response shape, every host.

Outbound HTTP, portable. One request shape, one response shape, every host.
raw docstring

post-jsonclj/s

(post-json url headers json-body)

POST a pre-encoded JSON string. Convenience over request.

POST a pre-encoded JSON string. Convenience over `request`.
raw docstring

requestclj/s

(request {:keys [method url headers body timeout-ms]
          :or {method :get timeout-ms 30000}})

Perform an HTTP request.

req: {:method :post :url "…" :headers {"k" "v"} :body "…" :timeout-ms 30000} -> {:status 200 :headers {…} :body "…"}

Header values are passed through verbatim and never logged — they routinely carry credentials.

Perform an HTTP request.

req: {:method :post :url "…" :headers {"k" "v"} :body "…" :timeout-ms 30000}
->   {:status 200 :headers {…} :body "…"}

Header values are passed through verbatim and never logged — they routinely
carry credentials.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close