[Catalyst] Streaming?

John Napiorkowski jjn1056 at yahoo.com
Wed Jun 21 12:27:29 CEST 2006


This is exactly what I was looking for!  Thanks! 
--john

--- Andreas Marienborg <omega at palle.net> wrote:

>
http://dev.catalyst.perl.org/browser/trunk/examples/Streaming
> 
> might be something to look at.
> 
> 
> andreas
> 
> On 21. jun. 2006, at 05.00, John Napiorkowski wrote:
> 
> > This wouldn't support http partial content, would
> it?
> > I can't find anything in the source to support it.
> > Does anyone have any ideas how I could support
> > something like the following:
> >
> >        HTTP/1.1 206 Partial content
> >        Date: Wed, 15 Nov 1995 06:25:24 GMT
> >        Last-Modified: Wed, 15 Nov 1995 04:58:08
> GMT
> >        Content-Range: bytes 21010-47021/47022
> >        Content-Length: 26012
> >        Content-Type: image/gif
> >
> > I need it for a streaming video service I'm
> building.
> > I could take it out of catalyst but for
> consistency
> > reasons I've rather stay inside.  If anyone has
> any
> > thoughts about where in the source code I'd patch
> to
> > support seeks on the filehandles I'd appreciate
> some
> > pointers.
> >
> > --john
> >
> > --- Matt S Trout <dbix-class at trout.me.uk> wrote:
> >
> >> Michael Giambalvo wrote:
> >>> Is streaming possible within catalyst?  I've run
> >> into a couple cases
> >>> now where I need to stream data to the client. 
> Is
> >> there a way for me
> >>> to write data to the pipe and then flush it, or
> is
> >> that not exposed in
> >>> Catalyst?
> >>
> >> $c->write($chunk)
> >>
> >> or
> >>
> >> $c->res->body($filehandle_object)
> >>
> >>
> >>> I'm not even sure where this would be
> implemented,
> >> but I guess I'd
> >>> have to make a custom view.  Any ideas or
> examples
> >> of this?
> >>>
> >>> _______________________________________________
> >>> List: Catalyst at lists.rawmode.org
> >>> Listinfo:
> >>
> http://lists.rawmode.org/mailman/listinfo/catalyst
> >>> Searchable archive:
> >>
> >
>
http://www.mail-archive.com/[email protected]/
> >>> Dev site: http://dev.catalyst.perl.org/
> >>
> >>
> >> --  
> >>       Matt S Trout       Offering custom
> >> development, consultancy and support
> >>    Technical Director    contracts for Catalyst,
> >> DBIx::Class and BAST. Contact
> >> Shadowcat Systems Ltd.  mst (at)
> >> shadowcatsystems.co.uk for more information
> >>
> >> + Help us build a better perl ORM:
> >> http://dbix-class.shadowcatsystems.co.uk/ +
> >>
> >> _______________________________________________
> >> List: Catalyst at lists.rawmode.org
> >> Listinfo:
> >>
> http://lists.rawmode.org/mailman/listinfo/catalyst
> >> Searchable archive:
> >>
> >
>
http://www.mail-archive.com/[email protected]/
> >> Dev site: http://dev.catalyst.perl.org/
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > _______________________________________________
> > List: Catalyst at lists.rawmode.org
> > Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> > Searchable archive: http://www.mail-archive.com/ 
> > catalyst at lists.rawmode.org/
> > Dev site: http://dev.catalyst.perl.org/
> 
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
>
http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Catalyst mailing list