(with-fake-github spec & body)
A wrapper around with-fake-http
that sets up some defaults for GitHub access.
with-fake-http
is organized with the expectation that request and response specs
are values; any function calls used to generate the specs look to it as if they are
function values that will (for requests) match or (for responses) build the response from
the request map.
The ^:path metadata may precede a form to indicate that the form is an expression that computes the path.
The response may be any value supported by with-fake-http
(map, integer, string, function, etc.).
However, the response Content-Type header is forced to "application/json", so the body (if provided)
must be a JSON value encoded as string.
A wrapper around `with-fake-http` that sets up some defaults for GitHub access. `with-fake-http` is organized with the expectation that request and response specs are values; any function calls used to generate the specs look to it as if they are function values that will (for requests) match or (for responses) build the response from the request map. The ^:path metadata may precede a form to indicate that the form is an expression that computes the path. The response may be any value supported by `with-fake-http` (map, integer, string, function, etc.). However, the response Content-Type header is forced to "application/json", so the body (if provided) must be a JSON value encoded as string.
cljdoc builds & hosts documentation for Clojure/Script libraries
⌘+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
⌘+/ | Jump to the search field |