The original clj-http.fake API.
Requires optional dependencies:
The original clj-http.fake API. Requires optional dependencies: - robert/hooke - ring/ring-codec - org.clojure/math.combinatorics - clj-http/clj-http
(with-fake-routes routes & body)
Makes all wrapped clj-http requests first match against given routes. The actual HTTP request will be sent only if no matches are found.
Thread local.
Makes all wrapped clj-http requests first match against given routes. The actual HTTP request will be sent only if no matches are found. Thread local.
(with-fake-routes-in-isolation routes & body)
Makes all wrapped clj-http requests first match against given routes. If no route matches, an exception is thrown.
Thread local.
Makes all wrapped clj-http requests first match against given routes. If no route matches, an exception is thrown. Thread local.
(with-global-fake-routes routes & body)
Like with-fake-routes, but visible to all threads.
Like with-fake-routes, but visible to all threads.
(with-global-fake-routes-in-isolation routes & body)
Like with-fake-routes-in-isolation, but visible to all threads.
Like with-fake-routes-in-isolation, but visible to all threads.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close