Liking cljdoc? Tell your friends :D

cutty-sark.http-client


asyncclj

(async method location opts on-success on-failure)

A wrapper around clj-http that adds:

  • logs response code and duration of the call
  • reports per-endpoint metrics about rates and latency

Additional arguments that could be passed through opts:

  • ::http/service-name will be used for logging and tracing (if not set, a service name will be extracted from the url)
  • ::http/route-name will be used for logging, tracing and for metrics (surrounded with common prefix and status)
  • ::http/circuit-breaker to enable the pattern
  • ::http/fallback to call when circuit is open or exception happened (timeout)
  • ::http/retries if you want to retry on failure
A wrapper around clj-http that adds:
- logs response code and duration of the call
- reports per-endpoint metrics about rates and latency

Additional arguments that could be passed through opts:
- ::http/service-name will be used for logging and tracing (if not set, a service name will be extracted from the url)
- ::http/route-name will be used for logging, tracing and for metrics (surrounded with common prefix and status)
- ::http/circuit-breaker to enable the pattern
- ::http/fallback to call when circuit is open or exception happened (timeout)
- ::http/retries if you want to retry on failure
sourceraw docstring

chanclj

(chan method location)
(chan method location opts)
source

circuit-closed?clj

(circuit-closed? breaker)
source

metric-prefixclj

source

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

× close