Catalyst::View::Reproxy - Reproxing View for lighty and perlbal.
Version 0.05
In your view class
package MyApp::View::MyReproxy; use base qw/Catalyst::View::Reproxy/; __PACKAGE__->config( perlbal => 1 );
In your controller class
sub index: Private { my ($self, $c) = @_; $c->forward('View::MyReproxy', {}); }
Constructor
If the frontend web server is lighttpd, the value would be 1. (default 0)
If the frontend web server is perlbal, the value would be 1. (default 0)
Using mime magic. (depend on File::MMagic)
Using external magic file (see File::MMagic)
Emulating "X-REPROXY-URL" without using perlbal, LWP::UserAgent's timeout setting. (see LWP::UserAgent)
Override Catalyst::View process method.
Using 'X-REPROXY-FILE' or 'X-Sendfile' header,
sub index: Private { my ($self, $c) = @_; $c->forward('View::MyReproxy', [reproxy_file => '/path/to/file']) }
Using 'X-REPROXY-URL',
sub index: Private { my ($self, $c) = @_; $c->view('MyReproxy')->process($c, 'reproxy_file' => $c->path_to('DUMMY') ); }
The url or path can be substituted to $c->stash instead of arguments,
sub index: Private { my ($self, $c) = @_; $c->stash->{reproxy_file} = '/path/to/file'; $c->forward('View::MyReproxy'); }
processing file.
processing urls.
Translating http header name.
Setting extra http response headers.
Toru Yamaguchi, <zigorou at cpan.org>
<zigorou at cpan.org>
Please report any bugs or feature requests to bug-catalyst-view-reproxy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-View-Reproxy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalyst-view-reproxy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Catalyst::View::Reproxy
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Catalyst-View-Reproxy
CPAN Ratings
http://cpanratings.perl.org/d/Catalyst-View-Reproxy
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-View-Reproxy
Search CPAN
http://search.cpan.org/dist/Catalyst-View-Reproxy
Copyright 2006 Toru Yamaguchi, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::View::Reproxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::Reproxy
CPAN shell
perl -MCPAN -e shell install Catalyst::View::Reproxy
For more information on module installation, please visit the detailed CPAN module installation guide.