| 1 | package Langertha::Request::HTTP; | ||
| 2 | # ABSTRACT: A HTTP Request inside of Langertha | ||
| 3 | 194 | our $VERSION = '0.505'; | |
| 4 | 194 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 194 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 194 | extends 'HTTP::Request'; | |
| 8 | |||
| 9 | |||
| 10 | 194 | has request_source => ( | |
| 11 | is => 'ro', | ||
| 12 | does => 'Langertha::Role::HTTP', | ||
| 13 | ); | ||
| 14 | |||
| 15 | |||
| 16 | 194 | has response_call => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => 'CodeRef', | ||
| 19 | ); | ||
| 20 | |||
| 21 | |||
| 22 | 3683 | ▶ | sub FOREIGNBUILDARGS { |
|
Subroutine
FOREIGNBUILDARGS: called CC=1 SCAR=1.2
Pod
undocumented
| |||
| 23 | 0 | ▶ | my ( $class, %args ) = @_; |
|
Subroutine
FOREIGNBUILDARGS: not called CC=1 SCAR=1.2
Pod
undocumented
| |||
| 24 | 0 | return @{$args{http}}; | |
| 25 | } | ||
| 26 | |||
| 27 | 3683 | ▶ | sub BUILDARGS { |
|
Subroutine
BUILDARGS: called CC=1 SCAR=1.2
Pod
documented
| |||
| 28 | 0 | ▶ | my ( $class, %args ) = @_; |
|
Subroutine
BUILDARGS: not called CC=1 SCAR=1.2
Pod
documented
| |||
| 29 | 0 | delete $args{http}; | |
| 30 | 0 | return { %args }; | |
| 31 | } | ||
| 32 | |||
| 33 | 194 | __PACKAGE__->meta->make_immutable; | |
| 34 | |||
| 35 | |||
| 36 | 194 | 1; | |
| 37 | |||
| 38 | __END__ | ||