
On Thu, Aug 25, 2011 at 4:40 AM, Kazu Yamamoto
Greg,
Thanks a lot, Kazu! This is a great building block for any web framework. We are going to make sure it integrates well with Yesod, although not necessarily with the 0.9 release that we already have a release candidate for.
Please check if we can make wai-logger as a WAI middleware. In my opinion, it is possible if we change WAI a bit. But I guess people do not want to change WAI.
Hi Kazu, It's not that I'm opposed to changing WAI, but if I know the change you're referring to (changing ResponseEnumerator), it probably won't happen. ResponseEnumerator was designed the way it is specifically to allow things like proxy servers, where you don't know the status code or headers until you've initiated the response enumerator. I still think it will be possible to implement the API you're hoping for with the current WAI. Do you want to sketch out the initial work and then be in touch with me so we can develop it more fully? Michael