[web-devel] Upcoming WAI changes
michael at snoyman.com
Wed Mar 16 13:27:29 CET 2011
On Wed, Mar 16, 2011 at 3:10 AM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
>> I wanted to bring up for discussion some planned changes to the WAI.
>> You can see what I'm proposing on Github. The first thing you might
>> notice is that the Network.Wai module is significantly smaller than it
>> used to be. This is because a number of the constants and data types
>> previously defined in WAI are now provided by the http-types
>> package. Besides the smaller code base, the following changes are also
> As I personally said to you, I would like to have a way to send
> a PART of file. So, I hope that ResponseFile is enhanced.
Good idea. Please look at the most recent commit. It adds a new datatype:
data FilePart = FilePart Integer Integer -- offset and count
And modified the ResponseFile constructor to also take a Maybe
FilePart value. I chose Integer for the offset and count since that is
what the sendfile package uses. Does this sound reasonable to
Note: I still need to implement the enumFilePart function in Network.Wai.
More information about the web-devel