Crop/HTTP/Request.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
Table
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Crop::HTTP::Request;
2 use base qw/ Crop::Object::Simple /;
3  
4 =begin nd
5 Class: Crop::HTTP::Request
6 HTTP request.
7  
8 Base class for particular gateways such FastCGI, PSGI, CGI.
9
10 Attributes contain start and finish time besides regular HTTP data.
11 =cut
12  
13 use v5.14;
14 use warnings;
15  
16 =begin nd
17 Variable: our %Attributes
18 Class attributes:
19
20 content_t - value of header Content-Type
21 cookie_in - cookie from client
22 cookie_out - cookie to client
23 fh - hash contains file descriptors for upload
24 headers - HTTP headers from client; multiline string
25 id_session - session
26 ip - client IP address, may be X-Real-IP from nginx
27 method - GET/POST/etc
28 param - parameters with their values, excluding upload fields; hashref
29 path - part of URL
30 qstring - Query String
31 referer - REFERER header separately
32 tik - start time mark as timestamp(6) with time zone
33 tok - finish time mark as timestamp(6) with time zone
34 =cut
35 our %Attributes = (
36 content_t => {mode => 'read', type => 'cache'},
37 cookie_in => {mode => 'read'},
38 cookie_out => {mode => 'read/write'},
39 fh => {default => {}, type => 'cache'},
40 headers => undef,
41 id_session => {mode => 'read/write'},
42 ip => undef,
43 method => undef,
44 param => {mode => 'read', default => {}, type=>'cache'},
45 path => undef,
46 qstring => undef,
47 referer => {mode => 'read'},
48 tik => {mode => 'read/write'},
49 tok => {mode => 'write'},
50 );
51  
52 =begin nd
53 Method: Table ( )
54 Table in Warehouse.
55  
56 Returns:
57 'httprequest' string
58 =cut
59 sub Table { 'http' }
60  
61 1;