Catalyst-Runtime
view release on metacpan or search on metacpan
lib/Catalyst/Request.pm view on Meta::CPAN
sub _build_io_fh {
my $self = shift;
return $self->env->{'psgix.io'}
|| (
$self->env->{'net.async.http.server.req'} &&
$self->env->{'net.async.http.server.req'}->stream) ## Until I can make ioasync cabal see the value of supportin psgix.io (jnap)
|| die "Your Server does not support psgix.io";
};
has data_handlers => ( is=>'ro', isa=>'HashRef', default=>sub { +{} } );
has body_data => (
is=>'ro',
lazy=>1,
builder=>'_build_body_data');
sub _build_body_data {
my ($self) = @_;
# Not sure if these returns should not be exceptions...
t/psgi-log.t view on Meta::CPAN
use TestApp;
use Plack::Builder;
use Plack::Test;
use HTTP::Request::Common;
{
package MockHandle;
use Moose;
has 'log' => (is => 'ro', isa => 'ArrayRef', traits => ['Array'], default => sub { [] },
handles => {
'logs' => 'elements',
'print' => 'push',
}
);
no Moose;
}
my $cmp = TestApp->debug ? '>=' : '==';
( run in 0.779 second using v1.01-cache-2.11-cpan-5f2e87ce722 )