(GET service route-name status-code)
(GET service route-name status-code request-body & options)
Perform an HTTP GET request to the given service
. Parse the return body as edn data.
Perform an HTTP GET request to the given `service`. Parse the return body as edn data.
(GET-raw service route-name status-code)
(GET-raw service route-name status-code request-body & options)
Perform an HTTP GET request to the given service
. Return the body as a raw string.
Perform an HTTP GET request to the given `service`. Return the body as a raw string.
(make-custom-with-system system-fn-sym macro-name)
Build a custom with-system
macro to supress the need of always saying the system building function.
Build a custom `with-system` macro to supress the need of always saying the system building function.
(POST service route-name status-code)
(POST service route-name status-code request-body & options)
Perform an HTTP POST request to the given service
. Parse the return body as edn data.
Perform an HTTP POST request to the given `service`. Parse the return body as edn data.
(POST-raw service route-name status-code)
(POST-raw service route-name status-code request-body & options)
Perform an HTTP POST request to the given service
. Return the body as a raw string.
Perform an HTTP POST request to the given `service`. Return the body as a raw string.
(query! service status-code query)
(request! method raw-response? service route-name status-code)
(request! method
raw-response?
service
route-name
status-code
request-body
&
options)
(url-for routes route-identifier)
(with-headers headers-map & body)
Bind *headers*
var to the custom received header map. Usually used in conjunction with with-system
.
(with-headers {"X-Header" "header value"} (with-system ...))
Bind `*headers*` var to the custom received header map. Usually used in conjunction with `with-system`. (with-headers {"X-Header" "header value"} (with-system ...))
(with-system system-fn system-under-test-var components-bindings & body)
(with-token token & body)
Adds a custom token to the authorization header.
(with-token "Bearer xxxxx" (with-system ...))
Adds a custom token to the authorization header. (with-token "Bearer xxxxx" (with-system ...))
(without-logs & body)
Disable pedestal logs inside the body. Useful for suppressing expected error messages when testing for specific cases of exceptions.
Disable pedestal logs inside the body. Useful for suppressing expected error messages when testing for specific cases of exceptions.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close