Dorian Taylor wrote:
I'm not getting very far with this, Dorian. Neither httpd-dev nor apr-dev are taking it anywhere. So at the moment ap_save_brigade is sort of an unstable API, so other developers think we shouldn't expose it in the core API. So at the moment you have two options:


hm, this is unfortunate.

Feel free to jump into the thread I've started on both apr-dev and httpd-dev list and ask for this to happen.


1) write an XS code in your module which will add this code.


as long as it's relatively straight-forward, i think i'd opt to do this.

May be Geoff's Apache-SSLLookup will help: http://search.cpan.org/dist/Apache-SSLLookup/

2) rewrite the code not to use this API, instead use a scalar buffer or an array and append the data their flattening the brigades on each invocation.


ap_save_brigade was unfortunately the only way i could come up with
for intercepting the body of a response so that it doesn't get sent
to the client, and that its contents may be used for other things.

Why? Take a look for example at t/filter/TestFilter/out_str_buffer.pm (I should rename it to out_bbs_buffer.pm)



-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to