luminus

jcb 2019-06-22T13:44:48.049300Z

@yogthos do you mean something like - ["/thing" {:get (fn [_] (-> (response/ok {:foo :bar}) (response/header "Content-Type" "application/json"))) }]

yogthos 2019-06-22T13:45:38.050300Z

right, except you don't need to set the content header by hand

yogthos 2019-06-22T13:45:47.050700Z

this is handled by the content negotiation middleware

yogthos 2019-06-22T13:46:02.051100Z

it checks the accept header on the request, and serializes the response accordingly

jcb 2019-06-22T13:47:35.051500Z

ah, I see thank you

lepistane 2019-06-22T14:46:27.051800Z

how does this affect luminus in the future? https://clojurians.slack.com/archives/C085AR8RE/p1560772063004300

yogthos 2019-06-22T15:09:59.052Z

if immutant doesn't get new maintainers, I'd remove it from Luminus as an option and switch to using either http-kit or Jetty as the default