| 1 | # ABSTRACT: Base class for responders | ||
| 2 | |||
| 3 | package Pinto::Server::Responder; | ||
| 4 | |||
| 5 | 16 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 16 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 16 | ▶ | use Pinto::Types qw(Dir); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | #------------------------------------------------------------------------------- | ||
| 12 | |||
| 13 | 16 | our $VERSION = '0.14'; # VERSION | |
| 14 | |||
| 15 | #------------------------------------------------------------------------------- | ||
| 16 | |||
| 17 | 16 | has request => ( | |
| 18 | is => 'ro', | ||
| 19 | isa => 'Plack::Request', | ||
| 20 | required => 1, | ||
| 21 | ); | ||
| 22 | |||
| 23 | 16 | has root => ( | |
| 24 | is => 'ro', | ||
| 25 | isa => Dir, | ||
| 26 | required => 1, | ||
| 27 | ); | ||
| 28 | |||
| 29 | #------------------------------------------------------------------------------- | ||
| 30 | |||
| 31 | |||
| 32 | 0 | ▶ | sub respond { croak 'abstract method' } |
|
Subroutine
respond: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | #------------------------------------------------------------------------------- | ||
| 35 | |||
| 36 | 16 | __PACKAGE__->meta->make_immutable; | |
| 37 | |||
| 38 | #------------------------------------------------------------------------------- | ||
| 39 | |||
| 40 | 16 | 1; | |
| 41 | |||
| 42 | __END__ | ||