lib/HTML/Mason/Apache/Request.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 2 SCAR 12.0
CC
2
Cov
0%
send_http_header
6.0
new
2.0
BEGIN
2.0
CRAP 3.3
1 # -*- cperl-indent-level: 4; cperl-continued-brace-offset: -4; cperl-continued-statement-offset: 4 -*-
2  
3 # Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the same terms as Perl itself.
6  
7 package HTML::Mason::Apache::Request;
8 $HTML::Mason::Apache::Request::VERSION = '1.60';
9 use strict;
10 use warnings;
11  
12 use base 'Apache::Request';
13  
14  
15 sub new
16 {
17 my $class = shift;
18 my $r = Apache::Request->instance(shift);
19  
20 return bless { r => $r }, $class;
21 }
22  
23 sub send_http_header
24 {
25 my $self = shift;
26  
27 return if $self->notes('sent_http_header');
28  
29 $self->SUPER::send_http_header(@_);
30  
31 $self->notes( 'sent_http_header' => 1 );
32 }
33  
34  
35 1;