Re: Flow control in Clojure

2015-12-14 Thread dmichulke
The ring middleware has and solves this problem by using functions like this: (defn wrap-params [handler] (fn [req] (handler req))) So, basically you just have a function that takes a request and returns a response. This function is called a handler

Re: Flow control in Clojure

2015-12-09 Thread Juan A. Ruz @tangrammer
Hi Ditlev, I was struggling with same flow-control logic and I reached to this (alpha) solution based in describing logic flows https://github.com/DEEP-IMPACT-AG/flowgic so far It worked fine in my current code and i think that it also answers the 2 points that Daniel Compton mentioned > 1)

Flow control in Clojure

2015-12-08 Thread Ditlev Tøjner
In designing our (by now) two clojure-based REST services we are struggling with managing flow-control. (Disclaimer: earlier backgrounds are with Python, C, Javascript and once upon a time Java/C# etc) What we'd like is to accomplish a series of steps which we feel are universal to

Re: Flow control in Clojure

2015-12-08 Thread Daniel Compton
Hi Ditlev I'm answering a question you're not quite asking, but have you tried looking at http://clojure-liberator.github.io/liberator/? It is built around the kind of flow control you're trying to apply to HTTP requests, but is much richer and designed to follow RFC2616. With respect to your