| 1 | package Spoon::Headers; | ||||||||||
| 2 | 3 | ▶ | use Spoon::Base -Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 3 | ▶ | |||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | field content_type => 'text/html'; | |||||||||
| 5 | 3 | field charset => 'UTF-8'; | |||||||||
| 6 | 3 | field expires => 'now'; | |||||||||
| 7 | 3 | field pragma => 'no-cache'; | |||||||||
| 8 | 3 | field cache_control => 'no-cache'; | |||||||||
| 9 | 3 | field redirect => ''; | |||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub print { | ||||||||
|
Subroutine
print: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 12 | 0 | my $headers = $self->get; | |||||||||
| 13 | 0 | $self->utf8_encode($headers); | |||||||||
| 14 | 0 | print $headers; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub get { | ||||||||
|
Subroutine
get: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 18 | 0 | ▶ | $self->redirect | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | ? CGI::redirect($self->redirect_value) | ||||||||||
| 20 | : CGI::header($self->value); | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub redirect_value { | ||||||||
|
Subroutine
redirect_value: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 24 | ( | ||||||||||
| 25 | 0 | $self->hub->cookie->set_cookie_headers, | |||||||||
| 26 | -location => $self->redirect, | ||||||||||
| 27 | ); | ||||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub value { | ||||||||
|
Subroutine
value: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | ( | ||||||||||
| 32 | 0 | $self->hub->cookie->set_cookie_headers, | |||||||||
| 33 | -charset => $self->charset, | ||||||||||
| 34 | -type => $self->content_type, | ||||||||||
| 35 | -expires => $self->expires, | ||||||||||
| 36 | -pragma => $self->pragma, | ||||||||||
| 37 | -cache_control => $self->cache_control, | ||||||||||
| 38 | -last_modified => $self->last_modified, | ||||||||||
| 39 | ); | ||||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub last_modified { | ||||||||
|
Subroutine
last_modified: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 43 | 0 | scalar gmtime; | |||||||||
| 44 | } | ||||||||||