On Sun, Aug 5, 2012 at 11:38 AM, Oliver Leics <[email protected]> wrote:
> On Sun, Aug 5, 2012 at 11:31 AM, Felix E. Klee <[email protected]> wrote:
>> On Sun, Aug 5, 2012 at 1:23 AM, Oliver Leics <[email protected]>
>> wrote:
>>> Maybe it is useful for you.
>>
>> Thanks - looks definitely interesting, although for serving files still
>> a lot of code has to be written.
>
> The code to serve files is in examples/server.js. Maybe it is a good
> idea to put that example into a node-package.

I just released v0.2.0 that adds .httpHandler(options), returning a
handler for http-requests: handler(req, res [, next])

Again, please see
https://github.com/oleics/node-filecache/blob/master/examples/server.js
for a working example of a http-server serving static files cached in memory.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to