Liking cljdoc? Tell your friends :D

threatgrid.trapperkeeper.clj-http-fake-service

Use this service in tests.

Requires optional dependencies:

  • puppetlabs/trapperkeeper
  • org.clojure/math.combinatorics
  • ring/ring-codec
  • clj-http/clj-http
Use this service in tests.

Requires optional dependencies:
- puppetlabs/trapperkeeper
- org.clojure/math.combinatorics
- ring/ring-codec
- clj-http/clj-http
raw docstring

clj-http-fake-serviceclj

source

with-fake-routescljmacro

(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.
sourceraw docstring

with-fake-routes-in-isolationcljmacro

(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.
sourceraw docstring

with-global-fake-routescljmacro

(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).
sourceraw docstring

with-global-fake-routes-in-isolationcljmacro

(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).
sourceraw docstring

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

× close