Liking cljdoc? Tell your friends :D

dgknght.app-lib.web-mocks


install-mock-dispatcher!clj

(install-mock-dispatcher! v)

Ensures the root binding of the given http request Var is a thread-aware dispatcher, installed at most once. Threads with no registered mocks fall through to the Var's original implementation, so real requests from unrelated threads are unaffected.

Ensures the root binding of the given http request Var is a
thread-aware dispatcher, installed at most once. Threads with no
registered mocks fall through to the Var's original implementation, so
real requests from unrelated threads are unaffected.
raw docstring

parse-query-stringclj/s

(parse-query-string {:keys [query-string] :as m})

register-mocks!clj

(register-mocks! calls mocks)

request-handlerclj/s

(request-handler calls mocks)

unregister-mocks!clj

(unregister-mocks!)

with-web-mocksclj/smacro

(with-web-mocks bindings mocks-map & body)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close