| 1 | package Plack::App::FakeApache::Connection; | ||
| 2 | $Plack::App::FakeApache::Connection::VERSION = '0.1'; | ||
| 3 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 0 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 5 | use Types::Standard qw/Str/; | ||
| 6 | use Plack::App::FakeApache::Log; | ||
| 7 | |||
| 8 | has remote_ip => ( | ||
| 9 | is => 'rw', | ||
| 10 | isa => Str, | ||
| 11 | ); | ||
| 12 | |||
| 13 | has log => ( | ||
| 14 | is => 'rw', | ||
| 15 | default => sub { Plack::App::FakeApache::Log->new() }, | ||
| 16 | handles => [qw(log_error log_serror warn)], | ||
| 17 | ); | ||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | __END__ | ||