oliyh / martian

The HTTP abstraction library for Clojure/script, supporting OpenAPI, Swagger, Schema, re-frame and more
MIT License
525 stars 42 forks source link

Improve martian-test `respond-with-constant` #157

Closed oliyh closed 1 year ago

oliyh commented 1 year ago

It should accept values or functions, and if the latter then it should call it with the request to get the return value.

Also the cljs-http-responder should:

This should make the code much easier to use.