Liking cljdoc? Tell your friends :D

clj-http.clj_stub


body-bytesclj

(body-bytes obj)

If obj is a byte-array, return it, otherwise use utf8-bytes.

If `obj` is a byte-array, return it, otherwise use `utf8-bytes`.
sourceraw docstring

initialize-request-hookclj

(initialize-request-hook)
source

RouteMatchercljprotocol

matchesclj

(matches address method request)
source

try-interceptclj

(try-intercept origfn request)
(try-intercept origfn request respond raise)
source

utf8-bytesclj

(utf8-bytes s)

Returns the UTF-8 bytes corresponding to the given string.

Returns the UTF-8 bytes corresponding to the given string.
sourceraw docstring

with-global-http-stubcljmacro

(with-global-http-stub routes & body)
source

with-global-http-stub-in-isolationcljmacro

(with-global-http-stub-in-isolation routes & body)
source

with-http-stubcljmacro

(with-http-stub 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.

Makes all wrapped clj-http requests first match against given routes.
The actual HTTP request will be sent only if no matches are found.
sourceraw docstring

with-http-stub-in-isolationcljmacro

(with-http-stub-in-isolation routes & body)

Makes all wrapped clj-http requests first match against given routes. If no route matches, an exception is thrown.

Makes all wrapped clj-http requests first match against given routes.
If no route matches, an exception is thrown.
sourceraw docstring

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

× close