[web-devel] [Wai] Sending partial files

Bardur Arantsson spam at scientician.net
Thu Feb 3 07:12:07 CET 2011

On 2011-02-02 18:44, Michael Snoyman wrote:
> On Wed, Feb 2, 2011 at 7:05 PM, Bardur Arantsson<spam at scientician.net>  wrote:
>> Hi all,
>> Is there a way to send a part of a file in response to a request using WAI?
>> I'm assuming it's possible, but I'm having a little trouble figuring out the
>> type signatures in Network.Wai.
>> I think I'll be able to adapt the Data.Enumerator.Binary.enumFile and
>> enumHandle functions to handle a range, so I guess the question is really:
>> How can I send a status + headers + arbitrary output from an enumerator in
>> WAI?
> Here's the short answer:

Thanks for the very thorough explanation -- hopefully it'll help in 
getting WAI/enumerators to "click". I'll give it another go during the 



More information about the web-devel mailing list