[web-devel] [Wai] Sending partial files

Bardur Arantsson spam at scientician.net
Wed Feb 2 18:05:28 CET 2011

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?


More information about the web-devel mailing list