| 1 | package IO::Lambda::HTTP; | ||
| 2 | 1 | ▶ | use vars qw(@ISA @EXPORT_OK); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | @ISA = qw(Exporter); | |
| 4 | 1 | @EXPORT_OK = qw(http_request http_server); | |
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use IO::Lambda qw(:lambda); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use IO::Lambda::HTTP::Client; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | sub http_request(&) | ||
| 12 | { | ||
| 13 | # Carp::carp "IO::Lambda::HTTP is deprecated, use IO::Lambda::HTTP::Client instead"; | ||
| 14 | 0 | ▶ | IO::Lambda::HTTP::Client-> new(context)-> |
|
Subroutine
http_request: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | condition(shift, \&http_request, 'http_request') | ||
| 16 | } | ||
| 17 | |||
| 18 | sub new { | ||
| 19 | 0 | ▶ | shift; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | # Carp::carp "IO::Lambda::HTTP is deprecated, use IO::Lambda::HTTP::Client instead"; | ||
| 21 | 0 | IO::Lambda::HTTP::Client->new(@_); | |
| 22 | } | ||
| 23 | 1 | 1; | |
| 24 | |||
| 25 | __DATA__ | ||