Re: Upgrading chained response handlers to mod_perl2

2010-03-13 Thread Adam Prime
Iain Kennedy wrote: Hi, Is there a data structure that gets passed to each response handler in the chain that the processed file can be stored in (like $f->ctx)? Can the old mod_perl1 ->filter_input behaviour be done by manipulating the input_filter or output_filter stacks? Is what I'm trying

Re: Upgrading chained response handlers to mod_perl2

2010-03-13 Thread Iain Kennedy
Hi, Is there a data structure that gets passed to each response handler in the chain that the processed file can be stored in (like $f->ctx)? Can the old mod_perl1 ->filter_input behaviour be done by manipulating the input_filter or output_filter stacks? Is what I'm trying to do vaguely sane, ev

Upgrading chained response handlers to mod_perl2

2010-03-11 Thread Iain Kennedy
Hi, I'm in the process of upgrading an application to mod_perl2. The application currently relies on chained content handlers. Each PerlResponseHandler in the chain uses the following mechanism to get (and then process) the requested file: $r->filter_register; my ($fh, $status) = $self->{'r'}->fi