perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: bucketbrigades with html filter
Date Tue, 18 Oct 2005 20:55:30 GMT


Jeff Ambrosino wrote:
> The way to deal with this is to buffer as much content as you need
> (maybe the whole page) and then do your work on the buffer.

yikes!

>  Our
> application (HTTP output filter) buffers the stream as we go and
> stores it on the filter context ($f->ctx) across filter invocations. 
> When we've seen $f->eos, then we do our actual manipulations on the
> buffer, and we're done. 

right.  see

  http://search.cpan.org/~geoff/Apache-Clean-2.00_7/

for an example of this using the streaming API.

--Geoff

Mime
View raw message