Requires optional dependencies:
Requires optional dependencies: - org.clojure/math.combinatorics - ring/ring-codec - clj-http/clj-http
(try-intercept origfn deref-fake-routes request)
(try-intercept origfn deref-fake-routes request respond raise)
(with-fake-routes set-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.
Like clj-http.fake/with-fake-routes, except takes a setter function.
Local to the current thread.
Makes all wrapped clj-http requests first match against given routes. The actual HTTP request will be sent only if no matches are found. Like clj-http.fake/with-fake-routes, except takes a setter function. Local to the current thread.
(with-fake-routes-in-isolation set-fake-routes! routes & body)
Makes all wrapped clj-http requests first match against given routes. If no route matches, an exception is thrown.
Like clj-http.fake/with-fake-routes-in-isolation, except, except takes a setter function.
Local to the current thread.
Makes all wrapped clj-http requests first match against given routes. If no route matches, an exception is thrown. Like clj-http.fake/with-fake-routes-in-isolation, except, except takes a setter function. Local to the current thread.
(with-global-fake-routes set-fake-routes! routes & body)
Like clj-http.fake/with-global-fake-routes, except takes a setter function.
Like clj-http.fake/with-global-fake-routes, except takes a setter function.
(with-global-fake-routes-in-isolation set-fake-routes! routes & body)
Like clj-http.fake/with-global-fake-routes-in-isolation, except takes a setter function.
Like clj-http.fake/with-global-fake-routes-in-isolation, except takes a setter function.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close