
On Wed, Oct 5, 2011 at 9:08 AM, Kazu Yamamoto
Hello Michael,
The ResponseEnumerator itself is in charge of the entire process, including running the Iteratee. So in pseudo-code, you'd do something like:
ResponseEnumerator $ \mkiter -> do handle <- getHandle run_ $ enumHandler handle $ mkiter status headers hClose handle
Understood. Thanks.
I think we could make that functionality optional, based on an extra setting parameter. Would this just be boolean, or is more sophisticated control required?
What I want to do is to prevent a bad guy abusing CGI. So, I guess that boolean is enough.
Alright, here's a first stab[1]. What do you think? Michael [1] https://github.com/yesodweb/wai/commit/d2b6c66abef939bb1396d576e7541b711a6db...