line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
19104
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
187
|
|
2
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
211
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Net::IMP::HTTP; |
5
|
5
|
|
|
5
|
|
685
|
use Net::IMP qw(:DEFAULT IMP_DATA ); |
|
5
|
|
|
|
|
4079
|
|
|
5
|
|
|
|
|
1109
|
|
6
|
5
|
|
|
5
|
|
27
|
use Exporter 'import'; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
575
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.522'; |
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__ |