Re: [Kepler-Project] Using different handler in Xavante

2010-06-03 Thread Luís Eduardo Jason Santos
Thanks, Fabio Worked like a charm. On Wed, Jun 2, 2010 at 11:08 AM, Fabio Mascarenhas wrote: > Hi Jason, > > See http://github.com/keplerproject/mk/blob/master/src/mk.lua. The > serve_file method takes a WSAPI environment and a filename and returns > a WSAPI response (a status, headers, iterator

Re: [Kepler-Project] Using different handler in Xavante

2010-06-02 Thread Fabio Mascarenhas
Hi Jason, See http://github.com/keplerproject/mk/blob/master/src/mk.lua. The serve_file method takes a WSAPI environment and a filename and returns a WSAPI response (a status, headers, iterator triple) that sends the file one block at a time, generating an ETag for it. -- Fabio Mascarenhas 2010

[Kepler-Project] Using different handler in Xavante

2010-06-01 Thread Luís Eduardo Jason Santos
Hi, I am serving a very simple application using Xavante and at a certain point I need to send a very large file to the client. I believe the filehandler.lua does what I need -- but its functions are not accessible from the .lua file in the application. I thought about copy-pasting the source fr