| 1 | package HTTP::Response::Switch::Handler; | ||
| 2 | { | ||
| 3 | 3 | $HTTP::Response::Switch::Handler::VERSION = '1.1.1'; | |
| 4 | } | ||
| 5 | # ABSTRACT: handle one specific type of HTTP::Response | ||
| 6 | |||
| 7 | |||
| 8 | 3 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use HTTP::Response::Switch::HandlerDeclinedResponse (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | |||
| 13 | 3 | requires 'handle'; | |
| 14 | |||
| 15 | |||
| 16 | 3 | has 'response' => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => 'HTTP::Response', | ||
| 19 | required => 1, | ||
| 20 | ); | ||
| 21 | |||
| 22 | |||
| 23 | 5 | ▶ | sub decline { |
|
Subroutine
decline: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 5 | HTTP::Response::Switch::HandlerDeclinedResponse->throw; | |
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | 3 | 1; | |
| 29 | |||
| 30 | __END__ | ||