
3 Feb
2011
3 Feb
'11
1:12 a.m.
On 2011-02-02 18:44, Michael Snoyman wrote:
On Wed, Feb 2, 2011 at 7:05 PM, Bardur Arantsson
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:
[--snip--] Thanks for the very thorough explanation -- hopefully it'll help in getting WAI/enumerators to "click". I'll give it another go during the weekend. Cheers, Bárður