(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`.
(utf8-bytes s)
Returns the UTF-8 bytes corresponding to the given string.
Returns the UTF-8 bytes corresponding to the given string.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close