line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenFrame::Response; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
26578
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
42
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings::register; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
208
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
7
|
use Exporter; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
49
|
|
7
|
1
|
|
|
1
|
|
429
|
use OpenFrame::Object; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Pipeline::Production; |
9
|
|
|
|
|
|
|
use base qw ( OpenFrame::Object Pipeline::Production Exporter ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION=3.05; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use constant ofOK => 1; |
14
|
|
|
|
|
|
|
use constant ofREDIRECT => 2; |
15
|
|
|
|
|
|
|
use constant ofDECLINE => 4; |
16
|
|
|
|
|
|
|
use constant ofERROR => 8; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
## |
19
|
|
|
|
|
|
|
## we export this because its good |
20
|
|
|
|
|
|
|
## |
21
|
|
|
|
|
|
|
our @EXPORT = qw ( ofOK ofREDIRECT ofDECLINE ofERROR ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub last_modified { } |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub cookies { |
26
|
|
|
|
|
|
|
my $self = shift; |
27
|
|
|
|
|
|
|
my $cookies = shift; |
28
|
|
|
|
|
|
|
if (defined( $cookies )) { |
29
|
|
|
|
|
|
|
$self->{cookies} = $cookies; |
30
|
|
|
|
|
|
|
return $self; |
31
|
|
|
|
|
|
|
} else { |
32
|
|
|
|
|
|
|
return $self->{cookies}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub mimetype { |
37
|
|
|
|
|
|
|
my $self = shift; |
38
|
|
|
|
|
|
|
my $mime = shift; |
39
|
|
|
|
|
|
|
if (defined( $mime )) { |
40
|
|
|
|
|
|
|
$self->{mimetype} = lc $mime; |
41
|
|
|
|
|
|
|
return $self; |
42
|
|
|
|
|
|
|
} else { |
43
|
|
|
|
|
|
|
return $self->{mimetype}; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub contents { |
48
|
|
|
|
|
|
|
my $self = shift; |
49
|
|
|
|
|
|
|
return $self; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub message { |
53
|
|
|
|
|
|
|
my $self = shift; |
54
|
|
|
|
|
|
|
my $mesg = shift; |
55
|
|
|
|
|
|
|
if (defined( $mesg )) { |
56
|
|
|
|
|
|
|
$self->{ mesg } = $mesg ; |
57
|
|
|
|
|
|
|
return $self; |
58
|
|
|
|
|
|
|
} else { |
59
|
|
|
|
|
|
|
my $msg = $self->{ mesg }; |
60
|
|
|
|
|
|
|
return ref($msg) ? $$msg |
61
|
|
|
|
|
|
|
: $msg; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub code { |
66
|
|
|
|
|
|
|
my $self = shift; |
67
|
|
|
|
|
|
|
my $code = shift; |
68
|
|
|
|
|
|
|
if (defined( $code )) { |
69
|
|
|
|
|
|
|
$self->{ code } = $code; |
70
|
|
|
|
|
|
|
return $self; |
71
|
|
|
|
|
|
|
} else { |
72
|
|
|
|
|
|
|
return $self->{ code } |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
## |
78
|
|
|
|
|
|
|
## for backwards compatibility we have a package called |
79
|
|
|
|
|
|
|
## OpenFrame::Constants |
80
|
|
|
|
|
|
|
## |
81
|
|
|
|
|
|
|
package OpenFrame::Constants; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
__END__ |