Re: [Simpleweb-Support] Streaming?
                
                Brought to you by:
                
                    niallg
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Niall G. <gal...@ya...> - 2009-03-28 11:58:50
      
     
   | 
Hi, Yes you should be able to stream the response. There have been changes recently but streaming should still be fully supported. I'll run a couple of tests and let you know. If streaming is broken ill release an update with a fix. Regards, Niall --- On Fri, 3/27/09, Tom Robinson <tlr...@gm...> wrote: > From: Tom Robinson <tlr...@gm...> > Subject: [Simpleweb-Support] Streaming? > To: sim...@li... > Date: Friday, March 27, 2009, 7:16 PM > Is it possible to stream a response? > The Response documentation says > "A buffer size can be specified when acquiring the output > stream which > allows data to be buffered until it over flows or is > flushed explicitly" > > I tried setting the "Transfer-Encoding" header to "chunked" > and > flushing the output stream at the end of each "chunk", but > it didn't > seem to do anything, the client didn't receive any chunks > until the > whole response was complete. Doing this works in Jetty, for > example. > > Am I just missing something, or is this just not possible? > > Nice project, btw. I'm just using it as a basic webserver > with Rhino > in "jack" (jackjs.org, like Ruby's Rack but for > JavaScript), but I > prefer it over Jetty anyway due to it's small size and > simplicity, and > it seems little faster too. > > Thanks. > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >  |