blib/lib/OpusVL/AppKit/View/DownloadFile.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
process
2.0
BEGIN
2.0
CRAP 2.0
1 package OpusVL::AppKit::View::DownloadFile;
2  
3 use Moose;
4  
5 use namespace::autoclean;
6  
7 BEGIN { extends 'Catalyst::View::Download'; }
8  
9 sub process
10 {
11 my $self = shift;
12 my $c = shift;
13 my $args = shift;
14  
15 $c->res->content_type( $args->{content_type} );
16 $c->res->header( 'Content-Disposition' => 'filename='.$args->{header}.';' );
17 $c->res->body( $args->{body} );
18 $c->detach;
19 }
20  
21 ##
22 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 OpusVL::AppKit::View::DownloadFile
33  
34 =head1 VERSION
35  
36 version 2.22
37  
38 =head1 AUTHOR
39  
40 OpusVL - www.opusvl.com
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut