Twiggy-Prefork
view release on metacpan or search on metacpan
t/anyevent_extensions.t view on Meta::CPAN
$write->([
200,
[ 'Content-Type' => 'text/plain', ],
[ 'Hello, ' . $env->{QUERY_STRING} ],
]);
}
},
],
[
'coderef streaming',
sub {
my $cb = shift;
my $res = $cb->(GET "http://127.0.0.1/?name=miyagawa");
is $res->code, 200;
is $res->header('content_type'), 'text/plain';
is $res->content, 'Hello, name=miyagawa';
},
sub {
my $env = shift;
( run in 0.241 second using v1.01-cache-2.11-cpan-4d50c553e7e )