lib/Drogo/Response.pm

filter: Statementstmt 41.1% 7 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 22.2% 2 / 9 Podpod 85.7% 6 / 7 totaltotal 45.4% 15 / 33 CC 1 SCAR 5.8
CC
1
Cov
41%
new
2.0
print
2.0
header_set
2.0
CRAP 1.8
« lib/Drogo/Request.pm ↑ Summary lib/Drogo/Cookie.pm »
1 package Drogo::Response;
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->print(...)
15  
16 Output via http.
17  
18 =cut
19  
20 0 ▶sub print { Drogo::Guts::print(@_) }
Subroutine print: not called CC=1 SCAR=6.9
Pod documented
21  
22 =head3 $self->header_set('header_type', 'value')
23  
24 Set output header.
25  
26 =cut
27  
28 0 ▶sub header_set { Drogo::Guts::header_set(@_) }
Subroutine header_set: not called CC=1 SCAR=6.9
Pod documented
29  
30 =head3 $self->header('content-type')
31  
32 Set content type.
33  
34 =cut
35  
36 0 ▶sub header { Drogo::Guts::header(@_) }
Subroutine header: not called CC=1 SCAR=6.9
Pod documented
37  
38  
39 =head3 $self->headers
40  
41 Returns hashref of response headers
42  
43 =cut
44  
45 0 ▶sub headers { Drogo::Guts::headers(@_) }
Subroutine headers: not called CC=1 SCAR=6.9
Pod documented
46  
47 =head3 $self->location('url')
48  
49 Redirect to a url (sets the Location header out).
50  
51 =cut
52  
53 0 ▶sub location { Drogo::Guts::location(@_) }
Subroutine location: not called CC=1 SCAR=6.9
Pod documented
54  
55 =head3 $self->status(...)
56  
57 Set output status... (200, 404, etc...)
58 If no argument given, returns status.
59  
60 =cut
61  
62 0 ▶sub status { Drogo::Guts::status(@_) }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
63  
64 =head1 AUTHORS
65  
66 Bizowie <http://bizowie.com>
67  
68 =head1 COPYRIGHT AND LICENSE
69  
70 Copyright (C) 2013 Bizowie
71  
72 This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
73  
74 =cut
75  
76 1 1;
« lib/Drogo/Request.pm ↑ Summary lib/Drogo/Cookie.pm »