Fork me on GitHub
#ring-swagger
<
2016-12-16
>
prepor06:12:24

Hello! Anyone tried to use async features of servers with compojure-api stack? For example with-channel of httpkit? Thank you

csm19:12:00

I’ve had success with immutant.web, which is similar

csm19:12:57

what I ended up doing is putting in a custom middleware that conditionally invoked ring.middleware.format-response/wrap-restful-response — if it was a route that used an async handler, it wouldn’t defer to the response wrapping