Liking cljdoc? Tell your friends :D

org.euandreh.http.test-aux


*headers*clj


GETclj

(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.
raw docstring

GET-rawclj

(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.
raw docstring

make-custom-with-systemcljmacro

(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.
raw docstring

POSTclj

(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.
raw docstring

POST-rawclj

(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.
raw docstring

query!clj

(query! service status-code query)

request!clj

(request! method raw-response? service route-name status-code)
(request! method
          raw-response?
          service
          route-name
          status-code
          request-body
          &
          options)

url-forclj

(url-for routes route-identifier)

with-headerscljmacro

(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 ...))
raw docstring

with-systemcljmacro

(with-system system-fn system-under-test-var components-bindings & body)

with-tokencljmacro

(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 ...))
raw docstring

without-logscljmacro

(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.
raw docstring

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

× close