POE-Component-Server-HTTP
view release on metacpan or search on metacpan
t/20_stream.t view on Meta::CPAN
282930313233343536373839404142434445464748# stop kernel from griping
${
$poe_kernel
->[POE::Kernel::KR_RUN]} |=
POE::Kernel::KR_RUN_CALLED;
STDERR
"$$: Sleep 2..."
;
sleep
2;
STDERR
"continue\n"
;
if
(
@ARGV
) {
STDERR
"Please connect to http://localhost:$PORT/ with your browser and make sure everything works\n"
;
local
@ARGV
=();
{}
while
<>;
}
my
$UA
= LWP::UserAgent->new;
##################################### welcome
my
$resp
=
$UA
->request(
$req
);
ok((
$resp
->is_success and
$resp
->content_type eq
'text/html'
),
( run in 0.416 second using v1.01-cache-2.11-cpan-95122f20152 )