Liking cljdoc? Tell your friends :D

clj-http.fake


*fake-routes*clj

source

*in-isolation*clj

source

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

url-encodeclj

(url-encode string)

encodes string into valid URL string

encodes string into valid URL string
sourceraw docstring

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-fake-routescljmacro

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

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-fake-routes-in-isolationcljmacro

(with-fake-routes-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

with-global-fake-routescljmacro

(with-global-fake-routes routes & body)
source

with-global-fake-routes-in-isolationcljmacro

(with-global-fake-routes-in-isolation routes & body)
source

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

× close