line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::HTTPParser; |
2
|
39
|
|
|
39
|
|
269
|
use strict; |
|
39
|
|
|
|
|
79
|
|
|
39
|
|
|
|
|
1200
|
|
3
|
39
|
|
|
39
|
|
968
|
use parent qw(Exporter); |
|
39
|
|
|
|
|
335
|
|
|
39
|
|
|
|
|
675
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our @EXPORT = qw( parse_http_request ); |
6
|
|
|
|
|
|
|
|
7
|
39
|
|
|
39
|
|
4750
|
use Try::Tiny; |
|
39
|
|
|
|
|
1876
|
|
|
39
|
|
|
|
|
13430
|
|
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__ |