Outbound HTTP, portable. One request shape, one response shape, every host.
Outbound HTTP, portable. One request shape, one response shape, every host.
(post-json url headers json-body)POST a pre-encoded JSON string. Convenience over request.
POST a pre-encoded JSON string. Convenience over `request`.
(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.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 |