1
package TestFilter::in_str_declined_read;
4
use warnings FATAL => 'all';
9
use Apache2::RequestRec ();
10
use Apache2::RequestIO ();
12
use Apache2::Filter ();
14
use TestCommon::Utils ();
16
use Apache2::Const -compile => qw(OK DECLINED M_POST);
18
# a filter must not return DECLINED after calling $r->read, since the
19
# latter already fetches the bucket brigade in which case it's up to
20
# the user to complete reading it and send it out
21
# thefore this filter must fail
25
# this causes a fetch of bb
26
$filter->read(my $buffer, 10);
28
return Apache2::Const::DECLINED;
36
$r->content_type('text/plain');
38
if ($r->method_number == Apache2::Const::M_POST) {
39
# this should fail, because of the failing filter
40
eval { TestCommon::Utils::read_post($r) };
49
PerlModule TestFilter::in_str_declined_read
50
PerlResponseHandler TestFilter::in_str_declined_read::response