Doug MacEachern wrote:
> see the test i just committed. i'll read/reply rest of the message later,
> running late for dinner..
looks good, but it's quite big for copy-n-pasteing into each test that
needs this functionality and quite a few tests may want to use it. Do
you think it'd be a good idea to somehow move this into the core
functionality?
There are two parts to it.
1. the client part wants to do:
my $interpreter = init_interpreter();
# first request
http_raw_get_same($interpreter, $url, ...);
# second request
http_raw_get_same($interpreter, $url, ...);
this should be easy, just add a few methods into Apache::TestRequest.
2. the server part needs to setup the fixup handler that all it does is
init'ing the X-Int header if it's not found and returns NOT_FOUND if
found but is not matching.
The question is how do we transparently add the handler and the line:
PerlFixupHandler TestModperl::interp::fixup
I guess we can put
package Apache::TestRequest;
sub single_server_fixup {
the code from the current test
}
and in the test's .pm
PerlFixupHandler Apache::TestRequest::single_server_fixup
what do you think?
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]