lib/Drogo/Request.pm

filter: Statementstmt 35.0% 7 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 16.6% 2 / 12 Podpod 90.0% 9 / 10 totaltotal 42.8% 18 / 42 CC 1 SCAR 6.1
CC
1
Cov
35%
new
2.0
uri
2.0
header_in
2.0
CRAP 1.8
« blib/lib/Drogo.pm ↑ Summary lib/Drogo/Response.pm »
1 package Drogo::Request;
2  
3 1 ▶use Drogo::Guts;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub new
7 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my $class = shift;
9 0 my $self = {};
10 0 bless($self);
11 0 return $self;
12 }
13  
14 =head3 $self->uri
15  
16 Returns the uri.
17  
18 =cut
19  
20 0 ▶sub uri { Drogo::Guts::uri(@_) }
Subroutine uri: not called CC=1 SCAR=6.9
Pod documented
21  
22  
23 =head3 $self->header_in
24  
25 Return value of header_in.
26  
27 =cut
28  
29 0 ▶sub header_in { Drogo::Guts::header_in(@_) }
Subroutine header_in: not called CC=1 SCAR=6.9
Pod documented
30  
31 =head3 $self->request_body & $self->request
32
33 Returns request body.
34  
35 =cut
36  
37 0 ▶sub request_body { Drogo::Guts::request_body(@_) }
Subroutine request_body: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub request { Drogo::Guts::request(@_) }
Subroutine request: not called CC=1 SCAR=6.9
Pod documented
39  
40 =head3 $self->request_method
41  
42 Returns the request_method.
43  
44 =cut
45  
46 0 ▶sub request_method { Drogo::Guts::request_method(@_) }
Subroutine request_method: not called CC=1 SCAR=6.9
Pod documented
47  
48 =head3 $self->request_part(...)
49  
50 Returns reference for upload.
51  
52 {
53 'filename' => 'filename',
54 'tmp_file' => '/tmp/drogomp-23198-1330057261',
55 'fh' => \*{'Drogo::Guts::MultiPart::$request_part{...}'},
56 'name' => 'foo'
57 }
58  
59 =cut
60  
61 0 ▶sub request_part { Drogo::Guts::request_part(@_) }
Subroutine request_part: not called CC=1 SCAR=6.9
Pod documented
62  
63 =head3 $self->matches
64  
65 Returns array of post_arguments (matching path after a matched ActionMatch attribute)
66 Returns array of matching elements when used with ActionRegex.
67  
68 =cut
69  
70 0 ▶sub matches { Drogo::Guts::matches(@_) }
Subroutine matches: not called CC=1 SCAR=6.9
Pod documented
71  
72 =head3 $self->param(...)
73  
74 Return a parameter passed via CGI--works like CGI::param.
75  
76 =cut
77  
78 0 ▶sub param { Drogo::Guts::param(@_) }
Subroutine param: not called CC=1 SCAR=6.9
Pod documented
79  
80 =head3 $self->param_hash
81
82 Return a friendly hashref of CGI parameters.
83  
84 =cut
85  
86 0 ▶sub param_hash { Drogo::Guts::param_hash(@_) }
Subroutine param_hash: not called CC=1 SCAR=6.9
Pod documented
87  
88 =head1 AUTHORS
89  
90 Bizowie <http://bizowie.com>
91  
92 =head1 COPYRIGHT AND LICENSE
93  
94 Copyright (C) 2013 Bizowie
95  
96 This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
97  
98 =cut
99  
100 1 1;
« blib/lib/Drogo.pm ↑ Summary lib/Drogo/Response.pm »