[web-devel] questions about ResponseEnumerator

Michael Snoyman michael at snoyman.com
Wed Oct 5 21:43:20 CEST 2011

On Wed, Oct 5, 2011 at 9:08 AM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
> 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?


[1] https://github.com/yesodweb/wai/commit/d2b6c66abef939bb1396d576e7541b711a6db67b

More information about the web-devel mailing list