Liking cljdoc? Tell your friends :D

threatgrid.clj-http-fake

Requires optional dependencies:

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

*local-config*clj

source

RouteMatchercljprotocol

matchesclj

(matches address method request)
source

try-interceptclj

(try-intercept origfn deref-fake-routes request)
(try-intercept origfn deref-fake-routes request respond raise)
source

with-fake-routescljmacro

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

with-fake-routes-in-isolationcljmacro

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

with-global-fake-routescljmacro

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

with-global-fake-routes-in-isolationcljmacro

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

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

× close