HTTP.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« HTTP/Request.pm ↑ Summary HTTP/Example/AddXFooHeader.pm »
1 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Net::IMP::HTTP;
5 5 ▶use Net::IMP qw(:DEFAULT IMP_DATA );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 our $VERSION = '0.521';
9 our @EXPORT;
10  
11 # create and export NET_IMP_HTTP* constants
12 push @EXPORT, IMP_DATA( 'http',
13 'header' => +1,
14 'body' => -2, # message body: streaming
15 'chkhdr' => +3,
16 'chktrailer' => +4,
17 'data' => -5, # encapsulated data (websocket etc): streaming
18 'junk' => -6, # junk data (leading empty lines..): streaming
19 );
20  
21 push @EXPORT, IMP_DATA( 'httprq[http+10]',
22 'header' => +1,
23 'content' => -2, # unchunked, uncompressed content: streaming
24 'data' => -3, # encapsulated data (websocket etc): streaming
25 );
26  
27  
28 __END__
« HTTP/Request.pm ↑ Summary HTTP/Example/AddXFooHeader.pm »