Thanks!

On Nov 23, 5:12 am, Poetro <poe...@gmail.com> wrote:
> Forgot, that the end is already triggered, so the streaming is just
> the following:
>
>         if (pathname === '/style.css') {
>                 // Open a file stream to the file
>                 stream = fs.createReadStream('style.css');
>                 response.writeHead(200, {
>                         'Content-type': 'text/css; charset=utf-8'
>                 });
>                 // Pipe the file stream to the response.
>                 stream.pipe(response);
>         }
>
> --
> Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to