line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::HTTPParser; |
2
|
39
|
|
|
39
|
|
347
|
use strict; |
|
39
|
|
|
|
|
115
|
|
|
39
|
|
|
|
|
2285
|
|
3
|
39
|
|
|
39
|
|
880
|
use parent qw(Exporter); |
|
39
|
|
|
|
|
391
|
|
|
39
|
|
|
|
|
1158
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our @EXPORT = qw( parse_http_request ); |
6
|
|
|
|
|
|
|
|
7
|
39
|
|
|
39
|
|
7657
|
use Try::Tiny; |
|
39
|
|
|
|
|
2355
|
|
|
39
|
|
|
|
|
17510
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
if (!$ENV{PLACK_HTTP_PARSER_PP} && try { require HTTP::Parser::XS; 1 }) { |
11
|
|
|
|
|
|
|
*parse_http_request = \&HTTP::Parser::XS::parse_http_request; |
12
|
|
|
|
|
|
|
} else { |
13
|
|
|
|
|
|
|
require Plack::HTTPParser::PP; |
14
|
|
|
|
|
|
|
*parse_http_request = \&Plack::HTTPParser::PP::parse_http_request; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |