CGI::Application::Plugin::CompressGzip - Add gzip compression to CGI::Application
version 1.02
package My::App; use base qw/CGI::Application/; use CGI::Application::Plugin::CompressGzip; sub some_run_mode { my $self = shift; my $query = $self->query; }
This plugin automatically enables gzip content encoding in your CGI::Application program where appropriate. This reduces bandwidth, which is good for your server, and for your site's responsiveness. You "use" it once in your base class, and the rest is transparent.
It does its work by overriding cgiapp_get_query, which returns a new CGI::Compress::Gzip object instead of the default CGI object.
Returns a subclassed CGI object.
CGI::Application, CGI::Compress::Gzip
Rhesa Rozendaal <rhesa@cpan.org>
Copyright (C) 2005 by Rhesa Rozendaal
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
To install CGI::Application::Plugin::CompressGzip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Application::Plugin::CompressGzip
CPAN shell
perl -MCPAN -e shell install CGI::Application::Plugin::CompressGzip
For more information on module installation, please visit the detailed CPAN module installation guide.