
30 Mar
2012
30 Mar
'12
9:47 a.m.
On 30 March 2012 11:36, Lennart Kolmodin
Before I saw happstack-wai I had a quick look at the happstack API and saw that the Request keeps the request body as a (lazy?) String. I'm curious to the rationale for this, as one could expect a lazy bytestring would be more efficient, and some kind of stream would better support error handling (given that the String is indeed lazy).
The rationale is probably that Happstack has been around for years. :) Part of the Happstack 8 roadmap is a new HTTP backend, likely using Pipes, possibly with support for SPDY, and including a new Request datatype and quite probably much fewer uses of String.