Use this service in tests.
Requires optional dependencies:
Use this service in tests. Requires optional dependencies: - puppetlabs/trapperkeeper - org.clojure/math.combinatorics - ring/ring-codec - clj-http/clj-http
(with-fake-routes app 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 an app, and requires the use of CljHttpClientService.
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 an app, and requires the use of CljHttpClientService. Local to the current thread.
(with-fake-routes-in-isolation app 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 takes an app, and requires the use of CljHttpClientService.
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 takes an app, and requires the use of CljHttpClientService. Local to the current thread.
(with-global-fake-routes app routes & body)
Like clj-http.fake/with-global-fake-routes, except takes an app, requires the use of CljHttpClientService, and is app-local. Different apps calling this function may be interleaved without interference (but only one should probably be in effect per app at any one time).
Like clj-http.fake/with-global-fake-routes, except takes an app, requires the use of CljHttpClientService, and is app-local. Different apps calling this function may be interleaved without interference (but only one should probably be in effect per app at any one time).
(with-global-fake-routes-in-isolation app routes & body)
Like clj-http.fake/with-global-fake-routes-in-isolation, except takes an app, requires the use of CljHttpClientService, and is app-local. Different apps calling this function may be interleaved without interference (but only one should probably be in effect per app at any one time).
Like clj-http.fake/with-global-fake-routes-in-isolation, except takes an app, requires the use of CljHttpClientService, and is app-local. Different apps calling this function may be interleaved without interference (but only one should probably be in effect per app at any one time).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close