(failure-reason exception)
(http-endpoint-check-fn url)
(http-endpoint-check-fn
url
{:keys [method body headers query-params opts connection-request-timeout
connection-timeout socket-timeout connection-manager
response-result-fn exception-result-fn]
:or {method :get
connection-request-timeout (time/new-duration 5 :seconds)
connection-timeout (time/new-duration 5 :seconds)
socket-timeout (time/new-duration 5 :seconds)
response-result-fn
(fn [_ response]
(if (successful? response) (salutem/healthy) (salutem/unhealthy)))
exception-result-fn (fn [_ exception]
(salutem/unhealthy
{:salutem/reason (failure-reason exception)
:salutem/exception exception}))}})
(successful? {:keys [status]})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close